Querying for User Information from OpenLDAP using VBScript
-
Friday, January 04, 2013 12:09 AM
I asked a similar question recently but didn't get any traction. I will be more concise with this one: How can I query against OpenLDAP to retrieve OpenLDAP user account attributes (for example, "UID")?
The openLDAP implementation I'm querying against is "Netscape/Sun/iPlanet." I'm looking for the right connection provider, base and filter to use to connect to user objects.
As an example, here's an LDAP path to a user as it shows in LDAP Browser: ldap://ldap.company.com:389/cn=John%20Doe%20(jdoe),ou=people,ou=us,o=company.com
Any suggestions on syntax or example blocks would be very appreciated. Thanks!
All Replies
-
Friday, January 04, 2013 1:23 AM
I asked a similar question recently but didn't get any traction. I will be more concise with this one: How can I query against OpenLDAP to retrieve OpenLDAP user account attributes (for example, "UID")?
The openLDAP implementation I'm querying against is "Netscape/Sun/iPlanet." I'm looking for the right connection provider, base and filter to use to connect to user objects.
As an example, here's an LDAP path to a user as it shows in LDAP Browser: ldap://ldap.company.com:389/cn=John%20Doe%20(jdoe),ou=people,ou=us,o=company.com
Any suggestions on syntax or example blocks would be very appreciated. Thanks!
You need to post in the forum for the vendor you are querying. This forum only supports Microsoft products.
The issue as I see it is that you are repeatedly asking the wrong questions.
As an example the following would work if the OpenLDAP server was set up correctly.
Set user = GetObject(LDAP://cn=John Doe (jdoe),ou=people,ou=us,dc=company,dc=com)
If you need to authenticate you will have to take that up with the alternate vendor.
I suspect you have the wrong CN here.
Happy New Year ¯\_(ツ)_/¯
-
Friday, January 04, 2013 4:12 PMModerator
Hi,
You didn't get any traction because you're asking about a different LDAP server than AD. Your issue isn't scripting (you already know how to script a query to an AD server), but rather the correct way to query the other vendor's LDAP server. You're asking your question in the wrong place.
Bill
- Marked As Answer by Bill_StewartMicrosoft Community Contributor, Moderator Tuesday, January 22, 2013 9:19 PM

