$NetBSD: patch-ad,v 1.2 2008/11/12 13:13:59 martti Exp $ Modified to use IPv6/v4 patch (https://support.process-one.net/browse/EJAB-389) --- src/ejabberd.cfg.example.orig 2008-11-12 15:15:04.000000000 +0200 +++ src/ejabberd.cfg.example @@ -107,10 +107,9 @@ [ {5222, ejabberd_c2s, [ - %% %% If TLS is compiled and you installed a SSL - %% certificate, put the correct path to the + %% certificate, put the correct path to the %% file and uncomment this line: %% %%{certfile, "/path/to/ssl.pem"}, starttls, @@ -123,12 +122,12 @@ %% %% To enable the old SSL connection method in port 5223: %% - %%{5223, ejabberd_c2s, [ - %% {access, c2s}, - %% {shaper, c2s_shaper}, - %% {certfile, "/path/to/ssl.pem"}, tls, - %% {max_stanza_size, 65536} - %% ]}, + {5223, ejabberd_c2s, [ + {access, c2s}, + {shaper, c2s_shaper}, + {certfile, "/path/to/ssl.pem"}, tls, + {max_stanza_size, 65536} + ]}, {5269, ejabberd_s2s_in, [ {shaper, s2s_shaper}, @@ -138,14 +137,14 @@ %% %% ejabberd_service: Interact with external components (transports...) %% - %%{8888, ejabberd_service, [ - %% {access, all}, - %% {shaper_rule, fast}, - %% {ip, {127, 0, 0, 1}}, - %% {hosts, ["icq.example.org", "sms.example.org"], - %% [{password, "secret"}] - %% } - %% ]}, + %%{{8888, "127.0.0.1"}, + %% ejabberd_service, [ + %% {access, all}, + %% {shaper_rule, fast}, + %% {hosts, ["icq.example.org", "sms.example.org"], + %% [{password, "secret"}] + %% } + %% ]}, {5280, ejabberd_http, [ http_poll, @@ -224,17 +223,26 @@ %% List of LDAP servers: %%{ldap_servers, ["localhost"]}. %% -%% LDAP attribute that holds user ID: -%%{ldap_uids, [{"mail", "%u@mail.example.org"}]}. +%% Encryption of connection to LDAP servers: +%%{ldap_encrypt, tls}. %% -%% Search base of LDAP directory: -%%{ldap_base, "dc=example,dc=com"}. +%% Port connect to LDAP server: +%%{ldap_port, 636}. %% %% LDAP manager: -%%{ldap_rootdn, "dc=example,dc=com"}. +%%{ldap_rootdn, "dc=example,dc=com"}. %% %% Password to LDAP manager: -%%{ldap_password, "******"}. +%%{ldap_password, "******"}. +%% +%% Search base of LDAP directory: +%%{ldap_base, "dc=example,dc=com"}. +%% +%% LDAP attribute that holds user ID: +%%{ldap_uids, [{"mail", "%u@mail.example.org"}]}. +%% +%% LDAP filter: +%%{ldap_filter, "(objectClass=shadowAccount)"}. %% %% Anonymous login support: