Re: What will happen if there are two user with same uid in OpenLDAP server

2012-07-30 Thread Qiang Xu
On Sat, Jul 28, 2012 at 10:34 PM, Qian Zhang zhq527...@gmail.com wrote: [Qian] Sorry, I am new to LDAP, can you please let me know how to figure out which way I am using for DN format? By some ldap commands? BTW, I installed and setup LDAP in a default way, so I guess the DN format should be

Re: What will happen if there are two user with same uid in OpenLDAP server

2012-07-30 Thread Aaron Richton
On Mon, 30 Jul 2012, Qiang Xu wrote: I don't know what ldap command could be used to find out the DN schema, either. However, there is an open source tool called LDAP Admin Typically, OpenLDAP has a subschemaSubentry of cn=Subschema; that portion of the DIT contains this information.

Re: What will happen if there are two user with same uid in OpenLDAP server

2012-07-30 Thread Guillaume Rousse
Le 30/07/2012 16:52, Aaron Richton a écrit : On Mon, 30 Jul 2012, Qiang Xu wrote: I don't know what ldap command could be used to find out the DN schema, either. However, there is an open source tool called LDAP Admin Typically, OpenLDAP has a subschemaSubentry of cn=Subschema; that portion

Re: What will happen if there are two user with same uid in OpenLDAP server

2012-07-30 Thread Guillaume Rousse
Le 29/07/2012 04:34, Qian Zhang a écrit : Do you use something like cn=My Name,ou=Users,dc=example,dc=com with uid in the entry or uid=ghenry,ou=Users,dc=example,dc=com ? [Qian] Sorry, I am new to LDAP, can you please let me know how to figure out which way I am using for DN format? By some

Re: What will happen if there are two user with same uid in OpenLDAP server

2012-07-30 Thread Qiang Xu
On Mon, Jul 30, 2012 at 10:55 AM, Guillaume Rousse guillomovi...@gmail.comwrote: It lists the available classes and types (the known schemas), which doesn't seems to be the issue here. If the question is 'how is my RDN formed', just querying the directory with ldapsearch should be enough.

Re: What will happen if there are two user with same uid in OpenLDAP server

2012-07-30 Thread Guillaume Rousse
Le 30/07/2012 17:06, Qiang Xu a écrit : On Mon, Jul 30, 2012 at 10:55 AM, Guillaume Rousse guillomovi...@gmail.com mailto:guillomovi...@gmail.com wrote: It lists the available classes and types (the known schemas), which doesn't seems to be the issue here. If the question is 'how is my

Re: What will happen if there are two user with same uid in OpenLDAP server

2012-07-30 Thread Qiang Xu
On Mon, Jul 30, 2012 at 11:24 AM, Guillaume Rousse guillomovi...@gmail.comwrote: No specific syntax. Just get a specific user entry, and check its DN: ldapsearch -x -b yourbase uid=youruid OK, I see. Just do a generic ldapsearch, right? Simple and effective. Thank you, Guillaume.

Re: What will happen if there are two user with same uid in OpenLDAP server

2012-07-29 Thread Gavin Henry
[Qian] Sorry, I am new to LDAP, can you please let me know how to figure out which way I am using for DN format? By some ldap commands? BTW, I installed and setup LDAP in a default way, so I guess the DN format should be uid=ghenry,ou=Users,dc=example,dc=com because when I login my machine

Re: What will happen if there are two user with same uid in OpenLDAP server

2012-07-28 Thread Guillaume Rousse
Le 28/07/2012 10:43, Qian Zhang a écrit : Hi, I have an OpenLDAP server setup, I am just wondering what will happen when I do login if there are two user in different OU but with same uid. I guess PAM is in flat mode, so when I login with the uid, I can always login as one of the two users, and

Re: What will happen if there are two user with same uid in OpenLDAP server

2012-07-28 Thread Gavin Henry
If that is true, should I add a restriction that the uid of each user must be unique in the whole OpenLDAP server? That's indeed a good practice. It depends how you've built your entries. If the RDN has uid in it it will be unique anyway. Do you use something like cn=My

Re: What will happen if there are two user with same uid in OpenLDAP server

2012-07-28 Thread Qian Zhang
Do you use something like cn=My Name,ou=Users,dc=example,dc=com with uid in the entry or uid=ghenry,ou=Users,dc=example,dc=com ? [Qian] Sorry, I am new to LDAP, can you please let me know how to figure out which way I am using for DN format? By some ldap commands? BTW, I installed and setup