cancel
Showing results for 
Search instead for 
Did you mean: 

LDAP auth failed when uid belong different ou

alvinsu_
Contributor

LDAP auth failed when uid belong different ou

Hi everyone:

SA2500(7.2R8)

Auth.Server type: LDAP Server(openldap:linux base)

 

Almost client can login successful , but a few pepole will login failed  if their account belong different ou(objectclass=alias).

my  Role Mapping Rule on Relam:

 username is  "*"       Assign:Users Role

 

When LDAP server   type is Windows AD, I have never meet this issue, but in OpenLDAP(Linux base), it occurred, I would like to know is there any solution can resolved it?  any advice will appreciate.

 

BR

Alvin 

6 REPLIES 6
zanyterp_
Respected Contributor

Re: LDAP auth failed when uid belong different ou

if you are not looking for users in the location that the user resides, yes, the login will fail. are you able to change where the user entries are found and still have successful login for the users that are currently working?

Kita_
Valued Contributor

Re: LDAP auth failed when uid belong different ou

If you are role mapping only on the username and it is failing, it may be due to a slow response from the authentication server.  When the end user attempts to log-in, does it take a long time to produce a failure message?  If so, this is the most likely scenario.

 

Depending on the authentication server configuration, you should have a base dn field.  If this is set to the top of the domain tree (dc=bbtest,dc=net), SA will search for all objects within the tree.  If you can narrow down the search to a specific OU, this should help speed up the search time.  For example, if all user objects are under the Sales OU, you should enter: OU=Sales,CN=Users,dc=bbtest,dc=net

alvinsu_
Contributor

Re: LDAP auth failed when uid belong different ou

Dear Zanyterp & Kita:

Thanks a lot for your response, this is set to the top of the domain tree, all ou is under domain tree, but if the uid belong two ou, this kind of user will login failed.

BTW, my auth.server is openldap server(linux base), not windows AD, in AD enviroment, it can work fine if user account belong different ou, but in openldap server, it doesn't work, is there any other idea?

 

BR
Alvin

zanyterp_
Respected Contributor

Re: LDAP auth failed when uid belong different ou

by belonging to two OU, which of these do you mean?

1) cn=user,ou=users,dc=company,dc=com
cn=user,ou=admin,dc=company,dc=com

OR

2) cn=user,ou=admin,ou=user,dc=comany,dc=com

option 2 should work as long as the tree can be traversed without an issue; option 1 I have not seen a use case for that, let alone an environment that would allow that to be configured.
Kita_
Valued Contributor

Re: LDAP auth failed when uid belong different ou

I don't believe having the UID belonging to two OU should be an issue as long as the ldap is returning that it can successfully find the user.  The only scenario I can think why it would fail is it is not receiving a timely response from the server and timing out.  We see this type of behavior when searching the top of the domain tree and the specific user object is a number of levels below with a large amount of objects above it.

 

If modifying the user base dn does not help, a case should be opened with JTAC.  For a firm root cause, JTAC will need to enable debug logging to see if or what is returned back from the authentication server.

zanyterp_
Respected Contributor

Re: LDAP auth failed when uid belong different ou

Out of curiosity, were you able to find out what was happening (either with JTAC or solo investigation with wireshark & policy tracing)?