Problem about ADSI user name change
From: Drew (tianzhu123456_at_hotmail.com)
Date: 03/02/05
- Next message: Drew: "Problem about ADSI username change"
- Previous message: mymobile: "Re: Accepting Connections from Two Forests"
- Next in thread: Drew: "RE: Problem about ADSI user name change"
- Reply: Drew: "RE: Problem about ADSI user name change"
- Reply: Bill Nitz: "Re: Problem about ADSI user name change"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 1 Mar 2005 17:39:06 -0800
I use the following code to change the username
Set oIADSUser = GetObject("LDAP://CN=AAA,CN=users,...")
oIADSUser.FullName = "BBB"
or
oIADSUser.Put "sAMAccountName", "BBB"
oIADSUser.SetInfo
However, I found the CN name cannot be changed even after I changed the SAM
account name from AAA to BBB. This user object's CN name is still AAA. In
other word, if again I want to change the name to CCC and use LDAP://CN=BBB,
an error would be appear and said the object could not be found. To locate
this user object I still need to use LDAP://CN=AAA.
Moreover from MMC of Active Directory Users and Computers, AAA still appears
in the Name column although the display name property of AAA was alreay
changed to BBB.
Why ? Is it a bug or ...
Any help would be greatly appreciated
- Next message: Drew: "Problem about ADSI username change"
- Previous message: mymobile: "Re: Accepting Connections from Two Forests"
- Next in thread: Drew: "RE: Problem about ADSI user name change"
- Reply: Drew: "RE: Problem about ADSI user name change"
- Reply: Bill Nitz: "Re: Problem about ADSI user name change"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|