Re: Change Naming Attribute (RDN) from CN to UID



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)
.



Relevant Pages

  • Re: Cohens paper on byte order
    ... Nothing in the whole standard appears to me to try to talk ... > are external to the FIPS but which are used to test the validity of AES ... valid although obscure reasons, ...
    (sci.crypt)
  • Re: [Full-Disclosure] (no subject)
    ... Before trying to explain a few items to Todd, it is clear that he is ... >> inconsistency at the time the highest cost of naming inconsistency is ... those reasons are some of the constraints that have prevented ... You cannot be that lame that you cannot understand how complex, ...
    (Full-Disclosure)
  • Re: [Full-Disclosure] (no subject)
    ... The only thing Todd are trying to say is that it is possible to rename ... > of making such changes as will allow nimble naming and rampant re- ... those reasons are some of the constraints that have prevented ... >> The AV companies cannot be that lame that they cannot handle a simple ...
    (Full-Disclosure)
  • Re: A new paradigm
    ... First I use a 3rd party btree handler for several reasons - cross platform ... Therefore all our programs use a standard common area ... but no one in the rest of the market seemed interested. ... people just shifting where they're buying their features and support ...
    (comp.databases.pick)
  • Re: A new paradigm
    ... One driver with a standard interface to ... standardised subroutines - everything in my suites is a subroutine ... First I use a 3rd party btree handler for several reasons - cross ... but no one in the rest of the market seemed interested. ...
    (comp.databases.pick)