On 10/3/04 7:59 pm, Paul Lussier <[EMAIL PROTECTED]> wrote:

> 
> In a message dated: Wed, 10 Mar 2004 14:52:36 EST
> "Larivee, Chris" said:
> 
>> Possibly - it depends on what type of server you are querying.  For
>> instance in the Netscape/iPlanet/Sun world you could query against
>> cn=schema.  This will dump the entire contents of the schema - but
>> you could then parse it to find the objectclass you need to know about.
>> An easier way - if you don't need to do this programmatically would be to
> 
> I'm querying OpenLDAP, and I'd like to do this programmitcally.
> 
> I may have some custom schema at some point, and I'd rather not
> hardcode the attributes.

Take a look at the Net::LDAP::Schema manpage. The synopsis should tell you
how to get a schema object, and dotted inline in the text you should find
out how to extract the objectclass definitions.

Cheers,

Chris

Reply via email to