Reputation: 133
Can a ldap active directory have two users whose names are as follows: John Smith, Lin (givenName = Lin, sn= John Smith) John, Smith Lin (givenName = smith Lin, sn = John)
Upvotes: 1
Views: 3957
Reputation: 19168
Before starting to answer your question, I'd suggest you to please refer the link Names for Objects in Active Directory:
... If a user object is created in the "Active Directory Users and Computers" MMC, the names default as follows. You specify the "First Name", "Initials", and "Last Name" of the user (the "givenName", "initials", and "sn" attributes).
The field labeled "Full Name" defaults to be "givenName initials sn". This string is assigned to the "cn" attribute (Common Name). You are allowed to overwrite the default. ...
Now, coming to your question:
Answer: A user's RDN is the value of its canonical name or cn attribute. Like other directory objects, a user object has names in the form of cn, name, distinguishedName, and objectGUID. Distinguished names (DNs) are unique and they unambiguously identify objects in the directory.
The directory server does not allow two objects with the same Relative DN (RDN) under the same parent or container. A DN is composed of a RDN, and its container's path. Therefore the uniqueness of RDNs guarantees the uniqueness of DNs.
So, to answer finally, it depends on the path/container where these objects are being created. If the 2 users are being created in the same OU/container, and if the cn evaluate to the same value, you will not be allowed to create the second user with the same name.
If these 2 users are being created in different containers/OUs, then you can easily create them. For the user objects in a domain or a forest, the following values are unique:
Source: Understanding unique attributes in Active Directory
Upvotes: 1