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

RE: get all possible attributes of one objectclass



There's just no way to get the schema for just one objectclass.  It
would require a search with a value-matching control which openldap
doesn't support.  You're stuck getting the whole schema (at least
all the objectclass definitions) and parsing to get what you
want.

Gary Williams

-----Original Message-----
From: Marcel Bruch [mailto:bruch.m@dni.de]
Sent: Monday, August 06, 2001 12:33 PM
To: Pierangelo Masarati
Cc: openldap-software
Subject: Re: get all possible attributes of one objectclass


Hi Pierangelo,

my knowledge about LDAP-enabled directory servers isn´t as good as it
should be for such am programming - but I will try to do my best !

Whats the search syntax for a particular objectclass ?

ldapsearch -b "cn=subschema" -s base objectclass=* 'objectclass=person'

?

greetings,
Marcel

Pierangelo Masarati wrote:
> 
> as an example of parsing code you may look at servers/slapd/schemaparse.c
> or try to write one according to RFC 2252
> 
> Pierangelo
>