G
Guest
TheNewUser.Invoke("SetPassword", New Object() {"123"})
Does anyone have any idea why that call wouldn't work, even though I have
supplied credentials which are fully capable of setting and changing a
password manually? (through an administrative acct)
In the program I just get done making a user and modifying its properties
(which works great) and then I commit changes. I then try to set the
password. An exception is thrown, and says the invocation has failed. Also in
the string is network path not found.
Can anyone tell me what I might try to remedy this situation? I have tried a
lot of things, but I feel as if I must be missing something....
(BTW, yes I know I need to use a secure password, but I will implement that
once I can get this simple code to work)
more of the code follows:
Dim TheNewUser As DirectoryEntry
TheNewUser = adentry3.Children.Add("cn=" & txtUserName.Text, "user")
TheNewUser.Properties("SAMAccountName").Value = txtUserName.Text
TheNewUser.Properties("userPrincipalName").Value = txtUserName.Text & "@" &
AD.Properties("dc").Value() & ".com"
Does anyone have any idea why that call wouldn't work, even though I have
supplied credentials which are fully capable of setting and changing a
password manually? (through an administrative acct)
In the program I just get done making a user and modifying its properties
(which works great) and then I commit changes. I then try to set the
password. An exception is thrown, and says the invocation has failed. Also in
the string is network path not found.
Can anyone tell me what I might try to remedy this situation? I have tried a
lot of things, but I feel as if I must be missing something....
(BTW, yes I know I need to use a secure password, but I will implement that
once I can get this simple code to work)
more of the code follows:
Dim TheNewUser As DirectoryEntry
TheNewUser = adentry3.Children.Add("cn=" & txtUserName.Text, "user")
TheNewUser.Properties("SAMAccountName").Value = txtUserName.Text
TheNewUser.Properties("userPrincipalName").Value = txtUserName.Text & "@" &
AD.Properties("dc").Value() & ".com"