none
ADSI SetPassword

    Question

  • Hi Guys,

    I've been writting vb script to bind to windows AD. So far it has been a sucess, i could create user objects, change passwords, etc

    I was using basic bind operation without a port number, where i assume the  default port number is 389.

    Today i decided to change my bind operations to including 389 port number.

    For example:

    Set dso = GetObject("LDAP:")
    Set ou = dso.OpenDSObject("LDAP://ServerIpAddress:389/cn=user1234,ou=test,dc=cerrotorre,dc=de", "administrator", "P@ssw0rd", 1)

    I then decided to change the password

    ou.SetPassword "NewPassword1"

    I keep getting the following error - The remote server machine does not exist or is unavailable

    If i remove port number, it works fine. Can some one please help


    Monday, March 05, 2012 4:42 AM

Answers

All replies