Problem about ADSI username change
From: Drew (tianzhu123456_at_hotmail.com)
Date: 03/02/05
- Next message: Drew: "Question about ADSI username change"
- Previous message: Drew: "Problem about ADSI user name change"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 1 Mar 2005 17:39:08 -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 ever after I change 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 LDAP://CN=BBB, an
error would be appear and the object cannot be found. To find 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: "Question about ADSI username change"
- Previous message: Drew: "Problem about ADSI user name change"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|