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

Re: programatically retrive the schema inforamation



hello,
Thanx a lot , I able to retrieve the schema information. But I have a 3 
different schemas, is it possible to retrieve each schema attribute at a
time through ldapsearch filters? .

thanx in adv
Pandry

Matthieu Turpault wrote:
> 
> Hello,
> 
>         you should the rootDSE entry. This virtual entry gives you some information about the directory:
> 
> ----------------------------------------------------------------------------------------------------
> To get all attributes of the rootDSE entry:
> ----------------------------------------------
> [tt $ll]% ldapsearch -x -h roxane.comelis.fr -b "" -s base -LLL "(objectClass=*)"  "+" "*"
> 
> dn:
> objectClass: top
> objectClass: OpenLDAProotDSE
> namingContexts: ou=laboratoire,o=comelis,c=fr
> namingContexts: o=geodis.com
> namingContexts: o=geodis.dg.com
> namingContexts: o=geodis.ptl.com
> namingContexts: o=geodis.eb.com
> namingContexts: o=geodis
> namingContexts: o=Referentiel
> namingContexts: o=comelis
> namingContexts: o=pamComelis
> namingContexts: ou=surRoxane,o=testReferal
> namingContexts: o=personnesGeodis
> supportedControl: 2.16.840.1.113730.3.4.2
> supportedExtension: 1.3.6.1.4.1.4203.1.11.1
> supportedExtension: 1.3.6.1.4.1.1466.20037
> supportedFeatures: 1.3.6.1.4.1.4203.1.5.1
> supportedLDAPVersion: 2
> supportedLDAPVersion: 3
> subschemaSubentry: cn=Subschema
> 
> The value given by the subschemaSubentry attribute is the dn of the schema information.
> 
> ----------------------------------------------------------------------------------------------------
> To retrieve the schema information:
> ----------------------------------------------
> ldapsearch -x -h roxane.comelis.fr -b "cn=Subschema" -LLL -s base "(objectClass=*)" objectClasses
> 
> > -----Message d'origine-----
> > De : Rajesh Pandry K [mailto:pandry@india.hp.com]
> > Envoyé : lundi 7 octobre 2002 11:55
> > À : openldap-software@OpenLDAP.org
> > Objet : programatically retrive the schema inforamation
> >
> >
> > Hi all,
> > Is it possible to programatically retrive the schema inforamation from
> > directory server? my problem is,
> >  allowing directory client applications to programmatically(
> > C language)
> > retrieve the schema and adept their behavior based on it.  At
> > deployment
> > site, my client program keep on changing because of attirbute are
> > changing.
> > Is there any option to  get the attribute from remote ldap server it
> > would be helpful for me to generalize the client library.
> >
> > regards
> > Pandry
> >