ejabberd - Comments for "Can&amp;#039;t auth via LDAP" https://www.ejabberd.im/node/1454 en ldap_uidattr has changed!!! https://www.ejabberd.im/node/1454#comment-4282 <p>ldap_uidattr has been removed. Use ldap_uids instead.</p> <p>You need to replace something like this<br /> {ldap_uidattr, "sAMAccountName"}.</p> <p>...with something like this<br /> {ldap_uids, [{"sAMAccountName", "%u"}]}.</p> Wed, 23 May 2007 17:23:46 +0000 Alex Mol comment 4282 at https://www.ejabberd.im could help https://www.ejabberd.im/node/1454#comment-3491 <p>check this, at least i was hving the problem with 1.1.3 while everything works for 1.1.2:</p> <p><a href="http://www.ejabberd.im/node/1364" title="http://www.ejabberd.im/node/1364">http://www.ejabberd.im/node/1364</a></p> Fri, 06 Apr 2007 23:33:15 +0000 mepal comment 3491 at https://www.ejabberd.im Why? https://www.ejabberd.im/node/1454#comment-3485 <p>Why do you do chaos with your conf in my thread? :(</p> Fri, 06 Apr 2007 07:15:39 +0000 petr.mat comment 3485 at https://www.ejabberd.im My conf https://www.ejabberd.im/node/1454#comment-3484 <p>I have problem with domain2.com, domain1.com is ok.<br /> Thanks!</p> <p>% $Id: ejabberd.cfg.example 577 2006-06-07 08:38:37Z mremond $</p> <p>%override_acls.</p> <p>% Users that have admin access. Add line like one of the following after you<br /> % will be successfully registered on server to get admin access:<br /> {acl, admin, {user, "admin", "domain1.com"}}.</p> <p>% Blocked users:<br /> %{acl, blocked, {user, "test"}}.</p> <p>% Local users:<br /> {acl, local, {user_regexp, ""}}.</p> <p>% Another examples of ACLs:<br /> %{acl, jabberorg, {server, "jabber.org"}}.<br /> %{acl, aleksey, {user, "aleksey", "jabber.ru"}}.<br /> %{acl, test, {user_regexp, "^test"}}.<br /> %{acl, test, {user_glob, "test*"}}.</p> <p>% Everybody can create pubsub nodes<br /> {access, pubsub_createnode, [{allow, all}]}.</p> <p>% Only admins can use configuration interface:<br /> {access, configure, [{allow, admin}]}.</p> <p>% Every username can be registered via in-band registration:<br /> % You could replace {allow, all} with {deny, all} to prevent user from using<br /> % in-band registration<br /> {access, register, [{allow, all}]}.</p> <p>% After successful registration user will get message with following subject<br /> % and body:<br /> {welcome_message,<br /> {"Welcome!",<br /> "Welcome to Jabber Service. "<br /> "For information about Jabber visit http://jabber.org"}}.<br /> % Replace them with 'none' if you don't want to send such message:<br /> %{welcome_message, none}.</p> <p>% List of people who will get notifications about registered users<br /> %{registration_watchers, ["admin1@localhost",<br /> % "admin2@localhost"]}.</p> <p>% Only admins can send announcement messages:<br /> {access, announce, [{allow, admin}]}.</p> <p>% Only non-blocked users can use c2s connections:<br /> {access, c2s, [{deny, blocked},<br /> {allow, all}]}.</p> <p>% Set shaper with name "normal" to limit traffic speed to 1000B/s<br /> {shaper, normal, {maxrate, 1000}}.</p> <p>% Set shaper with name "fast" to limit traffic speed to 50000B/s<br /> {shaper, fast, {maxrate, 50000}}.</p> <p>% For all users except admins used "normal" shaper<br /> {access, c2s_shaper, [{none, admin},<br /> {normal, all}]}.</p> <p>% For all S2S connections used "fast" shaper<br /> {access, s2s_shaper, [{fast, all}]}.</p> <p>% Admins of this server are also admins of MUC service:<br /> {access, muc_admin, [{allow, admin}]}.</p> <p>% All users are allowed to use MUC service:<br /> {access, muc, [{allow, all}]}.</p> <p>% This rule allows access only for local users:<br /> {access, local, [{allow, local}]}.</p> <p>% Authentication method. If you want to use internal user base, then use<br /> % this line:<br /> %{auth_method, internal}.</p> <p>% For LDAP authentication use these lines instead of above one:<br /> {auth_method, ldap}.<br /> {ldap_servers, ["localhost"]}. % List of LDAP servers<br /> {ldap_uidattr, "uid"}. % LDAP attribute that holds user ID<br /> {ldap_base, "dc=example,dc=com"}. % Search base of LDAP directory<br /> {ldap_rootdn, "cn=Manager,dc=example,dc=com"}. % LDAP manager<br /> {ldap_password, "mypass"}. % Password to LDAP manager</p> <p>% For authentication via external script use the following:<br /> %{auth_method, external}.<br /> %{extauth_program, "/path/to/authentication/script"}.</p> <p>% For authentication via ODBC use the following:<br /> %{auth_method, odbc}.<br /> %{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}.</p> <p>% Host name:<br /> {hosts, ["localhost", "domain1.com", "domain2.com"]}.</p> <p>%% Define the maximum number of time a single user is allowed to connect:<br /> {max_user_sessions, 10}.</p> <p>%% Anonymous login support:<br /> %% auth_method: anonymous<br /> %% anonymous_protocol: sasl_anon|login_anon|both<br /> %% allow_multiple_connections: true|false<br /> %%{host_config, "public.example.org", [{auth_method, anonymous},<br /> %% {allow_multiple_connections, false},<br /> %% {anonymous_protocol, sasl_anon}]}.<br /> %% To use both anonymous and internal authentication:<br /> %%{host_config, "public.example.org", [{auth_method, [anonymous, internal]}]}.</p> <p>{host_config, "domain1.com", [{auth_method, internal}]}.</p> <p>% Default language for server messages<br /> {language, "en"}.</p> <p>% Listened ports:<br /> {listen,<br /> [{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper},<br /> {max_stanza_size, 65536},<br /> starttls, {certfile, "/hostdata/ejabberd/certs/ejabberd.pem"}]},<br /> {5223, ejabberd_c2s, [{access, c2s},<br /> {max_stanza_size, 65536},<br /> tls, {certfile, "/hostdata/ejabberd/certs/ejabberd.pem"}]},<br /> % Use these two lines instead if TLS support is not compiled<br /> %{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper}]},<br /> %{5223, ejabberd_c2s, [{access, c2s}, ssl, {certfile, "./ssl.pem"}]},<br /> {5269, ejabberd_s2s_in, [{shaper, s2s_shaper},<br /> {max_stanza_size, 131072}<br /> ]},<br /> {5280, ejabberd_http, [http_poll, web_admin]},<br /> {8888, ejabberd_service, [{access, all},<br /> {hosts, ["icq.localhost", "sms.localhost"],<br /> [{password, "secret"}]}]}<br /> ]}.</p> <p>% Use STARTTLS+Dialback for S2S connections<br /> {s2s_use_starttls, true}.<br /> {s2s_certfile, "/hostdata/ejabberd/certs/ejabberd.pem"}.<br /> %{domain_certfile, "example.org", "./example_org.pem"}.<br /> %{domain_certfile, "example.com", "./example_com.pem"}.</p> <p>% If SRV lookup fails, then port 5269 is used to communicate with remote server<br /> {outgoing_s2s_port, 5269}.</p> <p>% Used modules:<br /> {modules,<br /> [<br /> {mod_register, [{access, register}]},<br /> {mod_roster, []},<br /> {mod_privacy, []},<br /> {mod_adhoc, []},<br /> {mod_configure, []}, % Depends on mod_adhoc<br /> {mod_configure2, []},<br /> {mod_disco, []},<br /> {mod_stats, []},<br /> {mod_vcard, []},<br /> {mod_offline, []},<br /> {mod_announce, [{access, announce}]}, % Depends on mod_adhoc<br /> {mod_echo, [{host, "echo.localhost"}]},<br /> {mod_private, []},<br /> {mod_irc, []},<br /> % Default options for mod_muc:<br /> % host: "conference." ++ ?MYNAME<br /> % access: all<br /> % access_create: all<br /> % access_admin: none (only room creator has owner privileges)<br /> {mod_muc, [{access, muc},<br /> {access_create, muc},<br /> {access_admin, muc_admin}]},<br /> % {mod_muc_log, []},<br /> % {mod_shared_roster, []},<br /> {mod_pubsub, [{access_createnode, pubsub_createnode}]},<br /> {mod_time, []},<br /> {mod_last, []},<br /> {mod_version, []}<br /> ]}.</p> <p>% Local Variables:<br /> % mode: erlang<br /> % End:</p> Fri, 06 Apr 2007 07:12:54 +0000 petr.mat comment 3484 at https://www.ejabberd.im Please help to configure ejabberd.conf https://www.ejabberd.im/node/1454#comment-3483 <p>Dear<br /> Ejabberd team.</p> <p>Please help me to configure my ejabberd.conf. for my local network.<br /> The name of local server is gultom (windows xp).<br /> My existed ejabberd.conf as bellow</p> <p>Thank's and regard's</p> <p>% $Id: $</p> <p>%override_acls.</p> <p>% Users that have admin access. Add line like one of the following after you<br /> % will be successfully registered on server to get admin access:<br /> {acl, admin, {user, "admin"}}.</p> <p>% Blocked users:<br /> %{acl, blocked, {user, "test"}}.</p> <p>% Local users:<br /> {acl, local, {user_regexp, ""}}.</p> <p>% Another examples of ACLs:<br /> %{acl, jabberorg, {server, "jabber.org"}}.<br /> %{acl, aleksey, {user, "aleksey", "jabber.ru"}}.<br /> %{acl, test, {user_regexp, "^test"}}.<br /> %{acl, test, {user_glob, "test*"}}.</p> <p>% Everybody can create pubsub nodes<br /> {access, pubsub_createnode, [{allow, all}]}.</p> <p>% Only admins can use configuration interface:<br /> {access, configure, [{allow, admin}]}.</p> <p>% Every username can be registered via in-band registration:<br /> % You could replace {allow, all} with {deny, all} to prevent user from using<br /> % in-band registration<br /> {access, register, [{allow, all}]}.</p> <p>% After successful registration user will get message with following subject<br /> % and body:<br /> %{welcome_message,<br /> % {"Welcome!",<br /> % "Welcome to Instant Messaging server localhost. "<br /> % "For information about ejabberd visit http://www.process-one.net/"}}.<br /> % Replace them with 'none' if you don't want to send such message:<br /> {welcome_message, none}.</p> <p>% List of people who will get notifications about registered users<br /> %{registration_watchers, ["admin1@gultom",<br /> % "admin2@gultom"]}.</p> <p>% Only admins can send announcement messages:<br /> {access, announce, [{allow, admin}]}.</p> <p>% Only non-blocked users can use c2s connections:<br /> {access, c2s, [{deny, blocked},<br /> {allow, all}]}.</p> <p>% Set shaper with name "normal" to limit traffic speed to 1000B/s<br /> {shaper, normal, {maxrate, 1000}}.</p> <p>% Set shaper with name "fast" to limit traffic speed to 50000B/s<br /> {shaper, fast, {maxrate, 50000}}.</p> <p>% For all users except admins used "normal" shaper<br /> {access, c2s_shaper, [{none, admin},<br /> {normal, all}]}.</p> <p>% For all S2S connections used "fast" shaper<br /> {access, s2s_shaper, [{fast, all}]}.</p> <p>% Admins of this server are also admins of MUC service:<br /> {access, muc_admin, [{allow, admin}]}.</p> <p>% All users are allowed to use MUC service:<br /> {access, muc, [{allow, all}]}.</p> <p>% This rule allows access only for local users:<br /> {access, local, [{allow, local}]}.</p> <p>% Authentication method. If you want to use internal user base, then use<br /> % this line:<br /> {auth_method, internal}.</p> <p>% For LDAP authentication use these lines instead of above one:<br /> %{auth_method, ldap}.<br /> %{ldap_servers, ["gultom"]}. % List of LDAP servers<br /> %{ldap_uidattr, "uid"}. % LDAP attribute that holds user ID<br /> %{ldap_base, "dc=example,dc=com"}. % Search base of LDAP directory<br /> %{ldap_rootdn, "dc=example,dc=com"}. % LDAP manager<br /> %{ldap_password, "******"}. % Password to LDAP manager</p> <p>% For authentication via external script use the following:<br /> %{auth_method, external}.<br /> %{extauth_program, "/path/to/authentication/script"}.</p> <p>% For authentication via ODBC use the following:<br /> %{auth_method, odbc}.<br /> %{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}.</p> <p>% Host name:<br /> {hosts, ["gultom"]}.</p> <p>%% Define the maximum number of time a single user is allowed to connect:<br /> {max_user_sessions, 10}.</p> <p>%% Anonymous login support:<br /> %% auth_method: anonymous<br /> %% anonymous_protocol: sasl_anon|login_anon|both<br /> %% allow_multiple_connections: true|false<br /> %%{host_config, "public.example.org", [{auth_method, anonymous},<br /> %% {allow_multiple_connections, false},<br /> %% {anonymous_protocol, sasl_anon}]}.<br /> %% To use both anonymous and internal authentication:<br /> %%{host_config, "public.example.org", [{auth_method, [anonymous, internal]}]}.</p> <p>% Default language for server messages<br /> % TODO: Use installer selection<br /> {language, "en"}.</p> <p>% Listened ports:<br /> {listen, [<br /> {5222, ejabberd_c2s, [{access, c2s}, {max_stanza_size, 65536}, {shaper, c2s_shaper}]},<br /> %% Use this line to enable SSL:<br /> %%{5223, ejabberd_c2s, [{access, c2s}, {max_stanza_size, 65536}, tls, {certfile, "C:\Program Files\ejabberd-1.1.3/conf/server.pem"}]},<br /> %%<br /> %% Use those lines instead for TLS support:<br /> %%{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper}, starttls, {certfile, "C:\Program Files\ejabberd-1.1.3/conf/server.pem"}]},<br /> %%{5223, ejabberd_c2s, [{access, c2s}, tls, {certfile, "C:\Program Files\ejabberd-1.1.3/conf/server.pem"}]},</p> <p> %% Remove this line if you want to prevent s2s connections:<br /> {5269, ejabberd_s2s_in, [{shaper, s2s_shaper}, {max_stanza_size, 131072}]},</p> <p> %% remove http_poll to remove support for http polling<br /> %% remove web_admin to disable admin interface:<br /> {5280, ejabberd_http, [http_poll, web_admin]}<br /> %% This is an example on how to define an external service/transport:<br /> %%{8888, ejabberd_service, [{access, all},<br /> %% {hosts, ["icq.gultom", "sms.gultom"],<br /> %% [{password, "secret"}]}]}<br /> ]}.</p> <p>% If SRV lookup fails, then port 5269 is used to communicate with remote server<br /> {outgoing_s2s_port, 5269}.</p> <p>% Used modules:<br /> {modules,<br /> [<br /> {mod_register, [{access, register}]},<br /> {mod_roster, []},<br /> {mod_privacy, []},<br /> {mod_adhoc, []},<br /> {mod_configure, []}, % Depends on mod_adhoc<br /> {mod_configure2, []},<br /> {mod_disco, []},<br /> {mod_stats, []},<br /> {mod_vcard, []},<br /> {mod_offline, []},<br /> {mod_announce, [{access, announce}]}, % Depends on mod_adhoc<br /> {mod_echo, [{host, "echo.gultom"}]},<br /> {mod_private, []},<br /> {mod_irc, []},<br /> % Default options for mod_muc:<br /> % host: "conference." ++ ?MYNAME<br /> % access: all<br /> % access_create: all<br /> % access_admin: none (only room creator has owner privileges)<br /> {mod_muc, [{access, muc}, {access_create, muc}, {access_admin, muc_admin}]},<br /> % {mod_muc_log, []},<br /> % {mod_shared_roster, []},<br /> {mod_pubsub, [{access_createnode, pubsub_createnode}]},<br /> {mod_time, []},<br /> {mod_last, []},<br /> % {mod_xmlrpc,[{port, 4560},{timeout, 5000}]},<br /> {mod_version, []}<br /> ]}.</p> <p>% Local Variables:<br /> % mode: erlang<br /> % End:</p> Fri, 06 Apr 2007 02:35:32 +0000 gultom comment 3483 at https://www.ejabberd.im config https://www.ejabberd.im/node/1454#comment-3482 <p>could maybe help if you posted your ejabberd.conf</p> Fri, 06 Apr 2007 02:12:50 +0000 bendsu comment 3482 at https://www.ejabberd.im