Call to DirectoryEntry.Invoke("SetPassword", new object[] {password} ) failing
- From: "Frank" <Frank@xxxxxxxxx>
- Date: Fri, 30 Mar 2007 21:40:10 -0800
Hi,
After creating a new user and committing, I am attempting to set the
password.
I create the user as:
DirectoryEntry newUser = adUserFolder.Children.Add("CN=" +
userInfo.username, "User");
// fill out properties, then commit
Then when calling newUser.Invoke("SetPassword", new object[] {strPassword});
I receive this error:
InnerException = {"The filename, directory name, or volume label syntax is
incorrect. (Exception from HRESULT: 0x8007007B)":null}
I am connecting to a remote LDAP AD server. If I connect to a local server
I do not have this problem. I am using the default connection
AuthenticationTypes.
(should I be using something different than the default?)
i.e. my connection:
DirectoryEntry adUserFolder = new DirectoryEntry(strADServerUrl,
strADusername, strADpassword);
the strADServerURL looks like this:
LDAP://1.2.3.4:389/CN=Users,DC=mywebsite,DC=net
Thanks for any tips.
Frank
.
- Follow-Ups:
- Prev by Date: hampered replication - not good!
- Next by Date: RecreateDefPol.EXE - Ok to run?
- Previous by thread: hampered replication - not good!
- Next by thread: Re: Call to DirectoryEntry.Invoke("SetPassword", new object[] {password} ) failing
- Index(es):
Relevant Pages
|