Re: Change Naming Attribute (RDN) from CN to UID
- From: Tomasz Onyszko <T.Onyszko_nospam_@xxxxxx>
- Date: Thu, 19 Oct 2006 15:14:36 +0200
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)
--
Tomasz Onyszko
http://www.w2k.pl/ - (PL)
http://blogs.dirteam.com/blogs/tomek/ - (EN)
.
- Follow-Ups:
- Re: Change Naming Attribute (RDN) from CN to UID
- From: Joe Richards [MVP]
- Re: Change Naming Attribute (RDN) from CN to UID
- Prev by Date: Re: 1058 and 1030 error never be away
- Next by Date: Re: Account Lockouts
- Previous by thread: Re: 1058 and 1030 error never be away
- Next by thread: Re: Change Naming Attribute (RDN) from CN to UID
- Index(es):
Relevant Pages
|