ejabberd - Comments for "Log on WITHOUT using plaintext password" https://www.ejabberd.im/node/88 en i use external script authentication https://www.ejabberd.im/node/88#comment-301 <p>Hello GOSH. I use here an script written in C to authenticate to the LDAP server together with the check_pass.pl<br /> The LDAP auth from Ejabberd doesn't worked here.</p> Mon, 04 Apr 2005 22:14:28 +0000 fbv comment 301 at https://www.ejabberd.im LDAP https://www.ejabberd.im/node/88#comment-238 <p>Hi.</p> <p>You sad that You do authorization over LDAP!<br /> Could You, please, send me *WORKING* configuration file.<br /> Send it to <noindex><a href="mailto:goshgosh@ukrpost.net" rel="nofollow" >goshgosh@ukrpost.net</a></noindex> or in this forum.<br /> I expirience some problems with LDAP. It should be my mistake in configuration. But where??? Hope you will help.</p> <p>Here it is info about my system:</p> <p>domain - testodrom.loc<br /> domain controller - server2003 (e.g. server2003.testodrom.loc) based on Windows Server 2003<br /> ejabberd (0.7.5) installed on domain controller<br /> Erl5.4.4</p> <p>By the way... Jive Messenger Server - works perfectly.</p> <p>ejabberd.cfg listing<br /> ====================================<br /> % $Id: ejabberd.cfg,v 1.5 2004/10/10 17:15:24 aleksey Exp $</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, "Administrator"}}.<br /> %{acl, admin, {user, "ermine"}}.</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>% Only admins can use configuration interface:<br /> {access, configure, [{allow, admin}]}.</p> <p>% Every username can be registered via 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 /> % 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>% Authentification method. If you want to use internal user base, then use<br /> % this line:<br /> %{auth_method, internal}.</p> <p>% For LDAP authentification use these lines instead of above one:<br /> {auth_method, ldap}.<br /> {ldap_servers, ["server2003"]}. % List of LDAP servers<br /> {ldap_uidattr, "cn"}. % LDAP attribute that holds user ID<br /> {ldap_base, "cn=users,dc=testodrom,dc=loc"}. % Base of LDAP directory</p> <p>% For authentification via external script use the following:<br /> %{auth_method, external}.<br /> %{extauth_program, "/path/to/authentification/script"}.</p> <p>% Host name:<br /> {host, "testodrom.loc"}.</p> <p>% Default language:<br /> {language, "en"}.</p> <p>% Listened ports:<br /> {listen,<br /> [<br /> {5222, ejabberd_c2s, [{access, c2s},<br /> {shaper, c2s_shaper}]},</p> <p>% To create selfsigned certificate run the following command from the<br /> % command prompt:<br /> %<br /> % openssl req -new -x509 -days 365 -nodes -out ejabberd.pem -keyout ejabberd.pem<br /> %<br /> % and answer the questions.<br /> % {5222, ejabberd_c2s, [{access, c2s},<br /> % starttls, {certfile, "./ejabberd.pem"},<br /> % {shaper, c2s_shaper}]},</p> <p>% When using SSL/TLS ssl option is not recommended (it requires patching<br /> % erlang ssl application). Use tls option instead (as shown below).<br /> % {5223, ejabberd_c2s, [{access, c2s},<br /> % tls, {certfile, "./ejabberd.pem"},<br /> % {shaper, c2s_shaper}]},</p> <p>{5269, ejabberd_s2s_in, [{shaper, s2s_shaper}]},</p> <p>% {5555, ejabberd_service, [{access, all},<br /> % {host, "icq.localhost", [{password, "secret"}]}]},</p> <p>{5280, ejabberd_http, [http_poll, web_admin]}<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_configure, []},<br /> {mod_disco, []},<br /> {mod_stats, []},<br /> {mod_vcard, []},<br /> {mod_offline, []},<br /> {mod_announce, [{access, announce}]},<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_pubsub, []},<br /> {mod_time, []},<br /> {mod_last, []},<br /> {mod_version, []}<br /> ]}.</p> <p>% Local Variables:<br /> % mode: erlang<br /> % End:<br /> ====================================</p> Sat, 05 Mar 2005 09:01:24 +0000 GOSH comment 238 at https://www.ejabberd.im No! https://www.ejabberd.im/node/88#comment-203 <p>That's the problem. I receive the messages but i can't send.</p> Fri, 11 Feb 2005 15:45:46 +0000 fbv comment 203 at https://www.ejabberd.im So, it works now? -- san https://www.ejabberd.im/node/88#comment-202 <p>So, it works now?</p> <p>--<br /> sander</p> Fri, 11 Feb 2005 09:51:53 +0000 sander comment 202 at https://www.ejabberd.im i have done it already! https://www.ejabberd.im/node/88#comment-195 <p>:)</p> Thu, 10 Feb 2005 20:53:21 +0000 fbv comment 195 at https://www.ejabberd.im You should register first of https://www.ejabberd.im/node/88#comment-194 <p>You should register first of course (to prevent spam).</p> <p>--<br /> sander</p> Thu, 10 Feb 2005 19:15:30 +0000 sander comment 194 at https://www.ejabberd.im Is the mailing list working? https://www.ejabberd.im/node/88#comment-193 <p>I cannot send any message to it. I get it delivered back to me.</p> Thu, 10 Feb 2005 18:27:45 +0000 fbv comment 193 at https://www.ejabberd.im No, sorry: I don't know that. https://www.ejabberd.im/node/88#comment-190 <p>No, sorry: I don't know that. But you can ask it on the mailinglist or in the chatroom so that Alexey can answer that :-)</p> <p>--<br /> sander</p> Thu, 10 Feb 2005 17:39:37 +0000 sander comment 190 at https://www.ejabberd.im Thanks and one more question https://www.ejabberd.im/node/88#comment-187 <p>Hello sander!</p> <p>Thanks for your comment.</p> <p>Do you know where is the line in what file? So I could comment it and recompile!</p> <p>I guess it is something like a printf("\n(AUTH:%s:%s)",$user,$pass);</p> <p>Thanks brother.</p> Thu, 10 Feb 2005 15:50:53 +0000 fbv comment 187 at https://www.ejabberd.im Alexey says it is a bug: "i'v https://www.ejabberd.im/node/88#comment-160 <p>Alexey says it is a bug: "i've used it for debugging some time ago and forgot to remove". He also says he will fix it. But you are right it will go encrypted over the internet when users use SSL or SASL.</p> <p>workaround if you don't want to see their passwords:<br /> start ejabberd with the "-detached" option.</p> <p>--<br /> sander</p> Wed, 09 Feb 2005 16:25:24 +0000 sander comment 160 at https://www.ejabberd.im thanks https://www.ejabberd.im/node/88#comment-157 <p>Ok. As I understand, the password is sent over the network in an encrypted way and then, at the server, it is decrypted to plain text. Am I right? If that's the way I think it is done.</p> Wed, 09 Feb 2005 15:28:59 +0000 fbv comment 157 at https://www.ejabberd.im Maybe you are interested in r https://www.ejabberd.im/node/88#comment-143 Maybe you are interested in reading this (and maybe others) two threads in the ejabberd mailing list: <ul> <li><a href="http://lists.jabber.ru/pipermail/ejabberd/2004-October/000344.html">Encrypted Passwords</a> </li><li><a href="http://lists.jabber.ru/pipermail/ejabberd/2004-December/000543.html">Ability to use any ldap account with no password</a> </li></ul> Fri, 04 Feb 2005 22:34:58 +0000 mfoss comment 143 at https://www.ejabberd.im