From d3c8fb77055ff6c07f156bc7a098054301349a30 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Fri, 12 May 2017 09:34:57 +0300 Subject: Check presence of some files during option validation --- src/eldap_utils.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/eldap_utils.erl') 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) -> -- cgit v1.2.3