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

no values returned from ldap_get_values()



> > Hi
> > 
> > I have the following schema file
> > 
> > ///////////////////////////////////
> > Include         /auto/home/bai/ldap/etc/slapd.at.conf
> > include         /auto/home/bai/ldap/etc/slapd.oc.conf
> > #
> > # attribute list
> > #
> > attribute       myemail         ces
> > #
> > # object class definition
> > #
> > objectclass testP
> >         requires
> >                 cn
> >         allows
> >                 myemail,
> >                 ior
> > #
> > index           cn,myemail
> > #
> > schemacheck     off
> > #
> > referral        ldap://ldap.itd.umich.edu
> > database        ldbm
> > suffix          "o=eurocontrol, c=BE"
> > DIrectory       /usr/tmp
> > rootdn          "cn=root, o=eurocontrol, c=BE"
> > rootpw          secret
> > access to * by * write
> > #    by self write
> > #    by anonymous none
> > #    by * read
> > 
> > ///////////////////////////////////
> > 
> > the contente of the database are
> > 
> > ///////////////////////////////////
> > dn: o=eurocontrol, c=BE
> > o: eurocontrol
> > objectclass: organization
> > 
> > dn: cn=Gyan, o=eurocontrol, c=BE
> > cn: Gyan
> > sn: Baines
> > myemail: gyan.baines@eurocontrol.be
> > objectclass: testP
> > 
> > dn: cn=sucha, o=eurocontrol, c=BE
> > cn: sucha
> > sn: Baines
> > myemail: sucha.baines@bms.com
> > ior:
> >
> IOR:000062400000000d49444c3a4563686f3a312e300040e1d80000000100000000000000
> >
> 4400010004000000103139332e3232312e3138382e313130000e1a0020000000240058463b
> > 00000000000000010000000100000000000
> > 0000c001793c80000000100000000
> > objectClass: testP
> > 
> > ///////////////////////////////////
> > 
> > when i try and retrieve the ior using the C api, my filter is set to
> > cn=sucha, then i
> > *	retrieve the dn using the filter, using ldap_get_dn
> > *	retrieve the values using ldap_get_values
> > 
> > The problem is that the when i do ldap_get_values(), no values are
> > returned.....
> > 
> > Do you have any idea what the problem might be
> > 
> > cheers
> > 
> > gyan
> > 
> > gyan.baines@eurocontrol.be
> > 
> 
>