Re: Change Naming Attribute (RDN) from CN to UID
- From: "Joe Richards [MVP]" <humorexpress@xxxxxxxxxxx>
- Date: Sun, 22 Oct 2006 01:01:10 -0400
You cannot change the RDN attribute. You can however set yourself up a policy you follow that says you set the cn to something unique such as the sAMAccountName. This is very common in large orgs.
--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net
---O'Reilly Active Directory Third Edition now available---
http://www.joeware.net/win/ad3e.htm
Tomasz Onyszko wrote:
Craig Gilmour wrote:.All,
for various reasons I want to be able to change the naming attribute of a user from the standard CN to another attribute such as UID (or samAccountName for that matter). This is because CN will hold a friendly name (Firstname Lastname) that will not be unique across the organisation, and it is possible the user may be in the same container. I need to do this for both AD and ADAM. Does anyone know if this is possible or not?
Do You want to do it for existing users - sure it is possible with script or tools. Here You will find example how to rename user using VBScript:
http://techtasks.com/code/viewbookcode/1572,
You can use pari adfind.exe and admod.exe to do this as well:
www.joeware.net/win/free/tools/admod.htm
www.joeware.net/win/free/tools/adfind.htm
adfind -b "OU=Employees OU,DC=W2k,DC=PL" -s subtree -f "(&(objectClass=user)(objectCategory=person))" samaccountname -adcsv | admod -rename {{samaccountname}}
(I know - fancy new feature)
- References:
- Re: Change Naming Attribute (RDN) from CN to UID
- From: Tomasz Onyszko
- Re: Change Naming Attribute (RDN) from CN to UID
- Prev by Date: Re: More than 200 AD Security Groups
- Next by Date: Re: Where did Power Users go?
- Previous by thread: Re: Change Naming Attribute (RDN) from CN to UID
- Next by thread: Re: Intraforest Migration Rollback.
- Index(es):
Relevant Pages
|