mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Check presence of some files during option validation
This commit is contained in:
parent
9fe16a29e1
commit
d3c8fb7705
14 changed files with 56 additions and 77 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue