[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Schema discovery / Microsoft ADSI problem

Title: RE: Schema discovery / Microsoft ADSI problem

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
        listbox1.additem rs.fields(0)->vb

-----Original Message-----
From: Jeanette Greeff - MWeb [mailto:JGreeff@mweb.com]
Sent: Monday, June 25, 2001 6:39 AM
To: openldap-software@OpenLDAP.org
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

schemacheck     on
include         /usr/openldap/current/etc/openldap/schema/core.schema
include         /usr/openldap/current/etc/openldap/schema/cosine.schema
include         /usr/openldap/current/etc/openldap/schema/nis.schema

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
Jeanette Greeff