ADAM SP1 and changing a password
nsyforce_at_aol.com
Date: 01/24/05
- Next message: Eric: "Re: Added Member DC To SBS Server - Missing Sysvol, etc."
- Previous message: E-Double: "RE: delegate full control to local machine ?"
- Next in thread: Dmitri Gavrilov [MSFT]: "Re: ADAM SP1 and changing a password"
- Reply: Dmitri Gavrilov [MSFT]: "Re: ADAM SP1 and changing a password"
- Reply: Lee Flight: "Re: ADAM SP1 and changing a password"
- Messages sorted by: [ date ] [ thread ]
Date: 24 Jan 2005 07:16:24 -0800
I once was able to change a users password. Now I've installed SP1 and
my code to change the password fails.
I've read other threads on this same issue, and tried other things with
no success. One problem may be that we allow password settings over a
non-ssl connection. We set that on our server by using the dsmgmt
tool. I am also using code that is on WinXP.
Before SP1, I tried to get the password change to work with this.
That failed and we even called a ticket into MS to help us with it.
After several emails floating back and forth without resolution, I was
just ignored. Finally, someone else in my shop pointed me in the
direction of the unicode password. So this worked before SP1:
Dim entry As DirectoryEntry = New DirectoryEntry(memberPath,
adminPath, ADMIN_PWD, AuthenticationTypes.ServerBind)
Dim quotePwd As String
Dim pwdBin() As Byte
quotePwd = String.Format("""{0}""", newMemberPassword)
pwdBin = System.Text.Encoding.Unicode.GetBytes(quotePwd)
entry.Properties("unicodePwd").Add(pwdBin)
Try
entry.CommitChanges()
Catch ex As System.Runtime.InteropServices.COMException
Select Case ex.ErrorCode
Case &H8007202F
Throw New
LdapPasswordException(LdapPasswordException.DOMAIN_POLICY)
Case &H80072035
Throw New
LdapPasswordException(LdapPasswordException.SSL_CONNECTION)
Case Else
Throw New LdapPasswordException(ex.Message)
End Select
End Try
Now, with this failing after the installation of SP1, I thought, "Hey
maybe MS fixed it with this version so the code in the following would
actually work".
So I tried, and of coarse failed.
So has anyone else been through this torment?
Thank you very much in advance for any thoughts or advice.
- Next message: Eric: "Re: Added Member DC To SBS Server - Missing Sysvol, etc."
- Previous message: E-Double: "RE: delegate full control to local machine ?"
- Next in thread: Dmitri Gavrilov [MSFT]: "Re: ADAM SP1 and changing a password"
- Reply: Dmitri Gavrilov [MSFT]: "Re: ADAM SP1 and changing a password"
- Reply: Lee Flight: "Re: ADAM SP1 and changing a password"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|