diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-05-12 09:34:57 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-05-12 09:34:57 +0300 |
commit | d3c8fb77055ff6c07f156bc7a098054301349a30 (patch) | |
tree | b254a4280d85f338bb7208c74bfaef36f22d967b /src/eldap_utils.erl | |
parent | Gracefully process malformed passwords during password change (diff) |
Check presence of some files during option validation
Diffstat (limited to 'src/eldap_utils.erl')
-rw-r--r-- | src/eldap_utils.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eldap_utils.erl b/src/eldap_utils.erl index 3704d2ce5..1dcdf0b48 100644 --- a/src/eldap_utils.erl +++ b/src/eldap_utils.erl @@ -367,7 +367,7 @@ opt_type(ldap_rootdn) -> fun iolist_to_binary/1; opt_type(ldap_servers) -> fun (L) -> [iolist_to_binary(H) || H <- L] end; opt_type(ldap_tls_cacertfile) -> - fun(S) -> binary_to_list(iolist_to_binary(S)) end; + fun(S) -> binary_to_list(misc:try_read_file(S)) end; opt_type(ldap_tls_depth) -> fun (I) when is_integer(I), I >= 0 -> I end; opt_type(ldap_tls_verify) -> |