+ Post New Thread
Results 1 to 6 of 6
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 ...
  1. #1

    MK-2's Avatar
    Join Date
    Oct 2006
    Location
    Nottingham
    Posts
    3,237
    Thank Post
    149
    Thanked 581 Times in 307 Posts
    Blog Entries
    8
    Rep Power
    199

    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

  2. #2

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    10,691
    Thank Post
    824
    Thanked 2,570 Times in 2,187 Posts
    Blog Entries
    9
    Rep Power
    731
    What's the little tol, I'm thking incorrect mappingsof attributes may be the cause.

  3. #3

    MK-2's Avatar
    Join Date
    Oct 2006
    Location
    Nottingham
    Posts
    3,237
    Thank Post
    149
    Thanked 581 Times in 307 Posts
    Blog Entries
    8
    Rep Power
    199
    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

  4. #4

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    10,691
    Thank Post
    824
    Thanked 2,570 Times in 2,187 Posts
    Blog Entries
    9
    Rep Power
    731
    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.

  5. #5

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    10,691
    Thank Post
    824
    Thanked 2,570 Times in 2,187 Posts
    Blog Entries
    9
    Rep Power
    731
    Your attribute names may be wrong too, check this out for the names: LDAP Attributes. Properties Active Directory Users Computers Distinguished name

  6. Thanks to SYNACK from:

    MK-2 (12th September 2011)

  7. #6

    MK-2's Avatar
    Join Date
    Oct 2006
    Location
    Nottingham
    Posts
    3,237
    Thank Post
    149
    Thanked 581 Times in 307 Posts
    Blog Entries
    8
    Rep Power
    199
    Just had a reply from the guy who created the active dir attributes
    "cn" can't be modified by _AD_ModifyAttribute because it's part of the FQDN. To change it you have to use _AD_RenameObject.
    Just done that and it works!

    Thanks for the input anyway

SHARE:
+ Post New Thread

Similar Threads

  1. Best Practices: LDAP/Active Directory and Account Provisioning
    By cgabbadon in forum How do you do....it?
    Replies: 5
    Last Post: 16th December 2010, 10:48 AM
  2. Moodle Ldap settings if email field is blank in active directory
    By ict_support in forum Virtual Learning Platforms
    Replies: 6
    Last Post: 13th May 2010, 12:24 PM
  3. Name of active directory editor?
    By irsprint84 in forum Windows Server 2000/2003
    Replies: 4
    Last Post: 4th March 2010, 12:26 PM
  4. Query Active Directory through asp page
    By KarlGoddard in forum Web Development
    Replies: 19
    Last Post: 22nd February 2006, 12:15 PM
  5. Authenticating MRBS against Active Directory using LDAP
    By Wizzer in forum Web Development
    Replies: 2
    Last Post: 26th January 2006, 04:21 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •