try using a sql like syntax query against openldap-> select uid,uidNumber from 'LDAP://server/o...,ou..' where "sn=smith"
then use the recordset object to get the values:
while not rs.eof
msgbox rs("uid")->for vbs
From: Jeanette Greeff - MWeb [mailto:JGreeff@mweb.com]
Sent: Monday, June 25, 2001 6:39 AM
Subject: Schema discovery / Microsoft ADSI problem
We are currently migrating from Netscape Directory Server v4.11 to OpenLDAP
2.0. So far so good, but we have run into a problem using Microsoft ADSI 2.5
to access OpenLDAP.
The problem is: Using the Microsoft ADSI we can only retrieve attributes
that were defined in the core schema. When we try to retrieve attributes
which are not part of the core schema (e.g. the uidNumber in the nis.schema)
we get the following error: ADSTYPE_PROV_SPECIFIC. Which we interpret as
Microsoft does not recognize the syntax definition of the attribute? It also
seems as if the ADSI does not recognize any of the additional object classes
(probably the root problem).
We define our own additional schema, which we have included in the
slapd.conf file as follows
We can access both the core and the other schema's objects/attributes via
other programming languages e.g. Perl and C++.
The Microsoft ADSI code works against the Netscape Directory Server.
Any ideas/similar problems/helpful suggestions? I have perused the OpenLDAP
Administrator's Guide and the Mailing Lists Archives but after several
attempts have not been able to resolve this issue.
Thanks a lot