20090206 querying a real ldap directory with vbscript - plembo/onemoretech GitHub Wiki

title: Querying a Real LDAP Directory with VBScript link: https://onemoretech.wordpress.com/2009/02/06/querying-a-real-ldap-directory-with-vbscript/ author: lembobro description: post_id: 383 created: 2009/02/06 18:14:00 created_gmt: 2009/02/06 18:14:00 comment_status: open post_name: querying-a-real-ldap-directory-with-vbscript status: publish post_type: post

Querying a Real LDAP Directory with VBScript

See Rob’s latest post, How to Query Sun One LDAP with VBScript for code you won’t find anywhere else.

This article provides a clearly written sample script that shows how to: 1) bind (authenticate) to a non-Microsoft LDAP directory; and 2) search using a standard LDAP query filter in order to return the values of attributes specified.

While I find working with VBScript extremely frustrating and therefore prefer perl, some, especially those in a predominantly Windows environment, don’t have a choice. This code example will do a lot to help them access enterprise-class directory servers that may contain valuable user and application information.

P.S. When I wrote Rob’s code is something “you won’t find anywhere else”, I was being quite literal. I know this is the case because both of us scoured the Internet (and not a few good VBScript books) looking for some sample code that would do this. It was only when that effort failed that Rob stepped up and started doing what good programmers do, trying stuff out until he found something that worked — and then refined it until it actually did what we needed it to do.

Copyright 2004-2019 Phil Lembo