Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: ,

Sponsored Links



AD Attribute query!

Active Directory


Reply
 
Thread Tools Search this Thread
  #1  
Old 25-06-2009
UselessUser
 
Posts: n/a
AD Attribute query!

Hi,

We have a large group, which recently needed major editing, so I handed it
over to another person who asked me a very simple question..

How come when looking at this group, members appeared as one of these types:

FSurname
Firstname Surname

And I had no idea, after a bit of study, it looks like ADUC exposes members
by the Full Name (or Name attribute) of their accounts.

The real question is, how come if they have been created using the normal
Firstname and Lastname options in ADUC, and the full name is generated
automatically from these and is not changed, how do some people have the:

FSurname

I think some of these are old users, so may have been migrated from an NT4
domain, would this cause this?

Also is there any damage (Relating to AD and Exchange etc) of running a
script on these accounts to rename the name attribute to firstname lastname??
Reply With Quote
  #2  
Old 25-06-2009
Marcin
 
Posts: n/a
Re: AD Attribute query!

FirstName LastName happens to be the default format of Full Name entry in
ADUC (as per http://support.microsoft.com/kb/250455/). The article also
provides instructions on how to change this default format for any future
accounts (btw. you can find a script that changes this format at
http://support.microsoft.com/kb/277717/ - although you'd need to modify it
to match the naming convention you want to use). Without knowing how the
other accounts were created, it is rather difficult to speculate why their
Full Name is different - this could have happened in a number of different
ways (account migration is one of them)...
I'd not expect any negative implications, as long as you modify this
particular attribute only - but obviously you should test it with one
non-critical account first before you apply changes en masse...

hth
Marcin

"UselessUser" <UselessUser@discussions.microsoft.com> wrote in message
news:A6172306-0493-4CE7-8277-437348658DF5@microsoft.com...
> Hi,
>
> We have a large group, which recently needed major editing, so I handed it
> over to another person who asked me a very simple question..
>
> How come when looking at this group, members appeared as one of these
> types:
>
> FSurname
> Firstname Surname
>
> And I had no idea, after a bit of study, it looks like ADUC exposes
> members
> by the Full Name (or Name attribute) of their accounts.
>
> The real question is, how come if they have been created using the normal
> Firstname and Lastname options in ADUC, and the full name is generated
> automatically from these and is not changed, how do some people have the:
>
> FSurname
>
> I think some of these are old users, so may have been migrated from an NT4
> domain, would this cause this?
>
> Also is there any damage (Relating to AD and Exchange etc) of running a
> script on these accounts to rename the name attribute to firstname
> lastname??



Reply With Quote
  #3  
Old 25-06-2009
UselessUser
 
Posts: n/a
Re: AD Attribute query!

Hi,

Thanks for the reply, I understand that by setting the 409 attribute for new
users, it amends the dialog box at account creation so it becomes surname,
firstname, and as display name is taken from that by default, display name in
GAL will be surname, firstname as well..

However the script underneath it, only adjusts the display name, it does not
touch the fullname (Or name attribute), so in AD old users will appear as
firstname surname, whilst new users will appear as surname, firstname...

I have seen ADMODIFY has a change CN (RDN) option, which I think sets the
name attribute and CN attributes to surname, firstname so then AD would also
all match up but am worried about any problems of doing this?

"Marcin" wrote:

> FirstName LastName happens to be the default format of Full Name entry in
> ADUC (as per http://support.microsoft.com/kb/250455/). The article also
> provides instructions on how to change this default format for any future
> accounts (btw. you can find a script that changes this format at
> http://support.microsoft.com/kb/277717/ - although you'd need to modify it
> to match the naming convention you want to use). Without knowing how the
> other accounts were created, it is rather difficult to speculate why their
> Full Name is different - this could have happened in a number of different
> ways (account migration is one of them)...
> I'd not expect any negative implications, as long as you modify this
> particular attribute only - but obviously you should test it with one
> non-critical account first before you apply changes en masse...
>
> hth
> Marcin
>
> "UselessUser" <UselessUser@discussions.microsoft.com> wrote in message
> news:A6172306-0493-4CE7-8277-437348658DF5@microsoft.com...
> > Hi,
> >
> > We have a large group, which recently needed major editing, so I handed it
> > over to another person who asked me a very simple question..
> >
> > How come when looking at this group, members appeared as one of these
> > types:
> >
> > FSurname
> > Firstname Surname
> >
> > And I had no idea, after a bit of study, it looks like ADUC exposes
> > members
> > by the Full Name (or Name attribute) of their accounts.
> >
> > The real question is, how come if they have been created using the normal
> > Firstname and Lastname options in ADUC, and the full name is generated
> > automatically from these and is not changed, how do some people have the:
> >
> > FSurname
> >
> > I think some of these are old users, so may have been migrated from an NT4
> > domain, would this cause this?
> >
> > Also is there any damage (Relating to AD and Exchange etc) of running a
> > script on these accounts to rename the name attribute to firstname
> > lastname??

>
>
>

Reply With Quote
  #4  
Old 25-06-2009
Marcin
 
Posts: n/a
Re: AD Attribute query!

The scripting approach for modifying the CN attribute (using the MoveHere
method of the parent container) is described in
http://www.microsoft.com/technet/scr....mspx?mfr=true
I'm not aware of any specific problems related to changing cn, but you
should watch for name clashes - and obviously test thoroughly...

hth
Marcin

"UselessUser" <UselessUser@discussions.microsoft.com> wrote in message
news:CD53BFBC-1840-454E-99A6-57733CF61F87@microsoft.com...
> Hi,
>
> Thanks for the reply, I understand that by setting the 409 attribute for
> new
> users, it amends the dialog box at account creation so it becomes surname,
> firstname, and as display name is taken from that by default, display name
> in
> GAL will be surname, firstname as well..
>
> However the script underneath it, only adjusts the display name, it does
> not
> touch the fullname (Or name attribute), so in AD old users will appear as
> firstname surname, whilst new users will appear as surname, firstname...
>
> I have seen ADMODIFY has a change CN (RDN) option, which I think sets the
> name attribute and CN attributes to surname, firstname so then AD would
> also
> all match up but am worried about any problems of doing this?
>
> "Marcin" wrote:
>
>> FirstName LastName happens to be the default format of Full Name entry in
>> ADUC (as per http://support.microsoft.com/kb/250455/). The article also
>> provides instructions on how to change this default format for any future
>> accounts (btw. you can find a script that changes this format at
>> http://support.microsoft.com/kb/277717/ - although you'd need to modify
>> it
>> to match the naming convention you want to use). Without knowing how the
>> other accounts were created, it is rather difficult to speculate why
>> their
>> Full Name is different - this could have happened in a number of
>> different
>> ways (account migration is one of them)...
>> I'd not expect any negative implications, as long as you modify this
>> particular attribute only - but obviously you should test it with one
>> non-critical account first before you apply changes en masse...
>>
>> hth
>> Marcin
>>
>> "UselessUser" <UselessUser@discussions.microsoft.com> wrote in message
>> news:A6172306-0493-4CE7-8277-437348658DF5@microsoft.com...
>> > Hi,
>> >
>> > We have a large group, which recently needed major editing, so I handed
>> > it
>> > over to another person who asked me a very simple question..
>> >
>> > How come when looking at this group, members appeared as one of these
>> > types:
>> >
>> > FSurname
>> > Firstname Surname
>> >
>> > And I had no idea, after a bit of study, it looks like ADUC exposes
>> > members
>> > by the Full Name (or Name attribute) of their accounts.
>> >
>> > The real question is, how come if they have been created using the
>> > normal
>> > Firstname and Lastname options in ADUC, and the full name is generated
>> > automatically from these and is not changed, how do some people have
>> > the:
>> >
>> > FSurname
>> >
>> > I think some of these are old users, so may have been migrated from an
>> > NT4
>> > domain, would this cause this?
>> >
>> > Also is there any damage (Relating to AD and Exchange etc) of running a
>> > script on these accounts to rename the name attribute to firstname
>> > lastname??

>>
>>
>>



Reply With Quote
  #5  
Old 25-06-2009
Richard Mueller [MVP]
 
Posts: n/a
Re: AD Attribute query!

To best of my knowledge, the only issues with renaming (changing the cn
attribute) are:

1. The value must be unique in the OU/Container. The same value can be used
elsewhere, such as in another OU.
2. The value cannot be longer than 64 characters.
3. The following characters must be escaped using the backslash escape
character, "\":

, \ # + < > ; " =

Also, leading and trailing spaces must be escaped, but not embedded spaces.
Also, if you are using ADSI (for example, VBScript uses ADSI), the forward
slash character, "/" must also be escaped.

Renaming does not affect group memberships or permissions.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--

"Marcin" <marcin@community.nospam> wrote in message
news:Oiw3MgZ9JHA.1488@TK2MSFTNGP03.phx.gbl...
> The scripting approach for modifying the CN attribute (using the MoveHere
> method of the parent container) is described in
> http://www.microsoft.com/technet/scr....mspx?mfr=true
> I'm not aware of any specific problems related to changing cn, but you
> should watch for name clashes - and obviously test thoroughly...
>
> hth
> Marcin
>
> "UselessUser" <UselessUser@discussions.microsoft.com> wrote in message
> news:CD53BFBC-1840-454E-99A6-57733CF61F87@microsoft.com...
>> Hi,
>>
>> Thanks for the reply, I understand that by setting the 409 attribute for
>> new
>> users, it amends the dialog box at account creation so it becomes
>> surname,
>> firstname, and as display name is taken from that by default, display
>> name in
>> GAL will be surname, firstname as well..
>>
>> However the script underneath it, only adjusts the display name, it does
>> not
>> touch the fullname (Or name attribute), so in AD old users will appear as
>> firstname surname, whilst new users will appear as surname, firstname...
>>
>> I have seen ADMODIFY has a change CN (RDN) option, which I think sets the
>> name attribute and CN attributes to surname, firstname so then AD would
>> also
>> all match up but am worried about any problems of doing this?
>>
>> "Marcin" wrote:
>>
>>> FirstName LastName happens to be the default format of Full Name entry
>>> in
>>> ADUC (as per http://support.microsoft.com/kb/250455/). The article also
>>> provides instructions on how to change this default format for any
>>> future
>>> accounts (btw. you can find a script that changes this format at
>>> http://support.microsoft.com/kb/277717/ - although you'd need to modify
>>> it
>>> to match the naming convention you want to use). Without knowing how the
>>> other accounts were created, it is rather difficult to speculate why
>>> their
>>> Full Name is different - this could have happened in a number of
>>> different
>>> ways (account migration is one of them)...
>>> I'd not expect any negative implications, as long as you modify this
>>> particular attribute only - but obviously you should test it with one
>>> non-critical account first before you apply changes en masse...
>>>
>>> hth
>>> Marcin
>>>
>>> "UselessUser" <UselessUser@discussions.microsoft.com> wrote in message
>>> news:A6172306-0493-4CE7-8277-437348658DF5@microsoft.com...
>>> > Hi,
>>> >
>>> > We have a large group, which recently needed major editing, so I
>>> > handed it
>>> > over to another person who asked me a very simple question..
>>> >
>>> > How come when looking at this group, members appeared as one of these
>>> > types:
>>> >
>>> > FSurname
>>> > Firstname Surname
>>> >
>>> > And I had no idea, after a bit of study, it looks like ADUC exposes
>>> > members
>>> > by the Full Name (or Name attribute) of their accounts.
>>> >
>>> > The real question is, how come if they have been created using the
>>> > normal
>>> > Firstname and Lastname options in ADUC, and the full name is generated
>>> > automatically from these and is not changed, how do some people have
>>> > the:
>>> >
>>> > FSurname
>>> >
>>> > I think some of these are old users, so may have been migrated from an
>>> > NT4
>>> > domain, would this cause this?
>>> >
>>> > Also is there any damage (Relating to AD and Exchange etc) of running
>>> > a
>>> > script on these accounts to rename the name attribute to firstname
>>> > lastname??
>>>
>>>
>>>

>
>



Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "AD Attribute query!"
Thread Thread Starter Forum Replies Last Post
Query in SQL v/s Query in Oracle Satchel Software Development 4 29-12-2010 07:19 AM
Want to make query dependent on another query. MACE Software Development 4 01-02-2010 05:22 PM
Where is the msExchMasterAccountSID attribute Waldy Active Directory 4 15-10-2009 03:54 AM
MySQL query in a query Rail racer Software Development 3 21-07-2009 08:06 PM
Turn on MySQL query cache to speed up query performance DMA2Superman Software Development 3 07-07-2009 11:26 AM


All times are GMT +5.5. The time now is 05:27 PM.