Windows Thread, Active directory Full Name LDAP entry in Technical; OK this is a weird one for me. In AD all of our users when you click on an OU ...
12th September 2011, 10:42 AM #1
Active directory Full Name LDAP entry
OK this is a weird one for me. In AD all of our users when you click on an OU show their full name in the right hand list, so you will see Joe Bloggs, etc not jbloggs.
Now i have a little tool to add users but when its done, they show up as JBloggs. I have the tool set to change givenName, sn and displayName. Now it looks like when you manually change it, it thinks it is the full name, not display name, sn,givenName or anything else.
Is there an LDAP variable for this that I can have it manually change?
If none of this makes sense I can get screenshots to show what i'm on about, but hopefully someone will be able to figure out my wild rantings
IDG Tech News
12th September 2011, 11:04 AM #2
What's the little tol, I'm thking incorrect mappingsof attributes may be the cause.
12th September 2011, 11:10 AM #3
It's one i created in autoit.
_AD_ModifyAttribute($username, "displayName", $name)
That line works and sets the display name to Joe Bloggs
_AD_ModifyAttribute($username, "name", $name)
_AD_ModifyAttribute($username, "cn", $name)
These two don't and set it to JBloggs.
If I manually rename it afterwards, I can see that cn and name have both changed from JBloggs to Joe Bloggs
12th September 2011, 11:23 AM #4
Have you tried setting them in a different order, first and last name first then display name after as depending on how autoit does it setting the name variables may regenerate a new displayname based on the other names.
Maybe post the autoit script for those that know it to have a look. I usually use vbs or powershell so may not be of too much help.
12th September 2011, 11:26 AM #5
Thanks to SYNACK from:
MK-2 (12th September 2011)
12th September 2011, 11:37 AM #6
Just had a reply from the guy who created the active dir attributes
Just done that and it works!
"cn" can't be modified by _AD_ModifyAttribute because it's part of the FQDN. To change it you have to use _AD_RenameObject.
Thanks for the input anyway
By cgabbadon in forum How do you do....it?
Last Post: 16th December 2010, 11:48 AM
By ict_support in forum Virtual Learning Platforms
Last Post: 13th May 2010, 01:24 PM
By irsprint84 in forum Windows Server 2000/2003
Last Post: 4th March 2010, 01:26 PM
By KarlGoddard in forum Web Development
Last Post: 22nd February 2006, 01:15 PM
By Wizzer in forum Web Development
Last Post: 26th January 2006, 05:21 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)