Reputation: 69
When i m adding user oject in ldap, i m getting error of constraint voilation(19). I know the reason of problem. The problem is there are 'userprincipalname' and 'sAMAccountName' atrributes value already exist in ldap in same organization unit of same domain.
I want to know, is there any possibility to add duplicate value in user object in ldap?
Upvotes: 0
Views: 11602
Reputation: 8027
You used to be able to have duplicate UPN's.
This changed in Windows Server 2012R2. I just ran into this also.
Upvotes: 1
Reputation: 11036
No.
The sAMAccountName attribute is a single-valued attribute and must be unique among all security principal objects within the domain.
The UPN is a single-valued and indexed attribute and must be unique among all security principal objects within the directory forest.
Upvotes: 1