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/mod_shared_roster_ldap.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mod_shared_roster_ldap.erl') diff --git a/src/mod_shared_roster_ldap.erl b/src/mod_shared_roster_ldap.erl index bc7694fe4..24bd3233c 100644 --- a/src/mod_shared_roster_ldap.erl +++ b/src/mod_shared_roster_ldap.erl @@ -603,9 +603,9 @@ mod_opt_type(ldap_rootdn) -> fun iolist_to_binary/1; mod_opt_type(ldap_servers) -> fun (L) -> [iolist_to_binary(H) || H <- L] end; mod_opt_type(ldap_tls_cacertfile) -> - fun iolist_to_binary/1; + fun misc:try_read_file/1; mod_opt_type(ldap_tls_certfile) -> - fun iolist_to_binary/1; + fun misc:try_read_file/1; mod_opt_type(ldap_tls_depth) -> fun (I) when is_integer(I), I >= 0 -> I end; mod_opt_type(ldap_tls_verify) -> -- cgit v1.2.3