LDAP setup questions

Hello,

I have just installed a 2.1.6 server, added a couple of test users, and I would like to tie these user accounts to our primary LDAP server (Redhat Directory Server), so I don't have to manage passwords on this system.

I have followed the guide examples, and it seems to be a pretty simple and standard LDAP setup process. However, whenever I enable the ldap setting in the config file, it just breaks authentication. I never see any attempted connection on my ldap server (I am able to connect to the ldap server with a standard ldapsearch query though), and on the ejabberd side this is all I get in the logs:

=INFO REPORT==== 2011-02-01 14:40:32 ===
D(<0.372.0>:ejabberd_receiver:320) : Received XML on stream = "AHRvbnljAHI5YWZ0Mw=="

=INFO REPORT==== 2011-02-01 14:40:32 ===
D(<0.372.0>:shaper:61) : State: {maxrate,1000,0,1296592830779320}, Size=183
M=91.5, I=1833.196

=INFO REPORT==== 2011-02-01 14:40:32 ===
I(<0.373.0>:ejabberd_c2s:649) : ({socket_state,tls,{tlssock,#Port<0.430>,#Port<0.432>},<0.372.0>}) Failed authentication for ********

=INFO REPORT==== 2011-02-01 14:40:32 ===
D(<0.373.0>:ejabberd_c2s:1500) : Send XML on stream = <<"">>

***************************************

What I don't see in the config guide is how you setup users using LDAP. Do you enable LDAP and then add users, if so, how? Because enabling LDAP auth also breaks the admin user. If I setup the user before enabling LDAP it doesn't seem to even attempt to check ldap against that user once LDAP is enabled.

I appreciate any and all help,

Tony

2 Tony, LDAP setup questions

Hi, Tony!

I've got the same problem!
by the "googling" I found this
in two words:
"remove the spaces embedded into ldap_filter's value"
in that post it works, in my case - no...
still "googling" ;)

yes! I found this!

by the searching on this site I found this topic LDAP auth - not displayed registered users in web admin
in two words:

Quote:

I changed config from {ldap_uids, [{"sAMAccountName"}]}. to {ldap_uids, [{"sAMAccountName", "%u"}]}. and all works.

"It's working! It's working!" (C)

Syndicate content