var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: openLDAP via VBScript.
Hope I've posted this in the right area and that you can help me
I'm trying to extract data from an LDAP database.
I can connect fine, and pull some information using this code:
The above returns a list of all live units which match the serial number.
Set ado = CreateObject("ADODB.Connection")
ado.Provider = "ADSDSOObject"
ado.Properties("User ID") = "username"
ado.Properties("Password") = "password"
ado.Properties("Encrypt Password") = False
serverName = "10.10.10.1/cn=Units"
filterStr = "(&(objectclass=unit)(serialnumber=*123456*))"
Set objectList = ado.Execute("<LDAP://" & serverName & ">;" & filterStr & ";ADsPath;SubTree")
While Not objectList.EOF
What I can't seem to do is get any further information from the LDAP 'UNIT \cn=Units'
I know each Unit in cn=Units, also has:
I have tried to edit ";ADsPath;SubTree" to ";ADsPath,name, id,location;SubTree"
But this returns an error..
I have used PHP to get this information, so I know it's there..
So how do I get it using VBS ??
Thanks for your time.
Quick update. Changing to this allows me to pull some more information.
BUT as soon as I try to get anything else I get errors.
Set objectList = ado.Execute("<LDAP://" & serverName & ">;" & filterStr & ";cn,description,objectclass,telephonenumber", ADS_SECURE_AUTHENTICATION + ADS_SERVER_BIND)
Anyone any ideas ? As mentioned PHP works fine !
I have an Open Ldap server with customer login information and Pasword. Is there a way to read this password when a customer forgets his password?
LDAP use SHA Hash.
It must be possible because Softera Ldap Browser can read the password. My website is in ASP.
I hope someone have a solution.