ADAM SP1 and changing a password

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

nsyforce_at_aol.com
Date: 01/24/05


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.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adam/adam/setting_a_user_password.asp

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".

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adam/adam/setting_a_user_password.asp

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.



Relevant Pages

  • RE: HELP RAID failure after sp1 install
    ... Thank you for posting to the SBS Newsgroup. ... I understand that after you installed SP1 on the SBS 2K3 server, ... Before we start to troubleshoot the issue, I need to know what exact SP1 ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • RE: Windows 2003 SP1 breaks ASP.NET Debugging!!
    ... remove SP1 as a workaround. ... You do not have permissions to debug the server. ... > under Default Web Site. ... before I installed SP1. ...
    (microsoft.public.vsnet.debugging)
  • Re: Attachment Setting *
    ... Please Reply to Newsgroup for the benefit of others ... I can toggle it on and it does not function, so I can confirm it to be a problem in Server 2003 SP1. ... this.Always installed SP1 as stand alone before. ... I hope to replicate it and if not I will try another approach. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: failure - security options logon process has failed to create
    ... First time was a few months ago when SP1 was offered. ... days ago I installed SP1 and hey presto, it worked, and my PC even seemeed ... freeze, that microsoft would have a fix, but I can't find one. ...
    (microsoft.public.windows.vista.performance_maintenance)
  • RE: Exchange error & SP1 upgrade problem
    ... I have installed sp1 and all the hotfixes but the ... Ok, all well and good, but I tried to install sp1 last ... > then click the Unzip button. ... > I put the SP1 folder on C: Is there something I am doing wrong or something ...
    (microsoft.public.windows.server.sbs)