AD User Changed, but Old Name Appearing in CN String
Posted on 2011-02-20
There are a couple of users in my domain that have had their user names changed in the last couple of years. If I click their user properties and browse through all the tabs, the alias and other pertinent username fields show to be correct. For example, let's say one user's name was Jeff Green, but the original AD username was set up as Jeff Greene. The user is renamed using the "rename" function in AD, and then I would go into the properties and make sure everything changed as expected.
The problem happens when I run a script that actually pulls the full AD context for that user. I have a particular script in Outlook that is supposed to parse that context to ascertain a user's e-mail address, and with my example, even though the user's information in AD is completely correct (i.e., last name is "Green" and all of the username/alias fields show "jgreen"), the context string shows something like this:
/O=MYORG/OU=FIRST ADMINISTRATIVE GROUP/CN=RECIPIENTS/CN=JGREENE
How can I fix this so that the context name here is correct? I can't find where this shows up and can be modified; and I'm not even sure if it really can.
Any help would be appreciated. Thanks!