Open oraclecaicai opened 4 years ago
Hi!
a
and b
=> Admin user checks that user belongs to group
. This point is ok.
c
=> Cerebro uses input of the user (i.e. username and password) to verify that the user can bind to the ldap server. To tune this a bit you can use user-template
. I'll put an example:
foo@bar.com
/ xxxx
(for user / password) are valid
user-template
is "%s@bar.com"
. The login will succeed if user types foo
as usernameuser-template
is "%s"
. The login will succeed if user types foo@bar.com
as usernameHopefully you find this useful
I'm having a similar issue with authentication to ldap. If I comment out the group check, auth works fine. How do you debug this more? There seems to be zero logging for the ldap client. This is on version 0.9.0.
Hi guys,
I'm using Cerebro 0.8.5 installed with the RPM package. I want to authenticate the user via Microsoft Active Directory and the configuration for authentication is as below:
Now the login action fails all the time and With Wireshark I find the authentication process has 3 steps:
a. Send a bind request with the admin user.
This step is ok.
b. See if the user exists and belongs to the specified group. In my case, this means the input username equals to the value of sAMAccountName (the user-attr parameter) and the value of memberOf contains the specified group DN (the group parameter).
This step is ok and a log of attributes of the account returns, such as cn, name, mail, distinguishedName (DN of the account in Active Directory).
c. Send another bind request with the user to authenticate.
This step fails and I find that Cerebro uses the username but the distinguishedName in the request. It seems that there isn't a parameter to specify the attribute used in the last bind request.
Anyone has a solution to this issue please kindly help me.
Thanks, Bruce