[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldap_perror give "Success" message!!
Hint:
I suppose that you specified a query which gives you
zero entries back, so ldap_first_entry failes.
Normaly it should write an error numb into "ld_errno" of
the ld structur, but maybe it do nothing.
(To indicate that the ldap-search itselfs was successfull.)
Have a look at the RFC about the ldap-c-api to learn the
details.
-oliver
Nachricht vom Mittwoch 31 Oktober 2001 12:51:
> This means that the ldap-query wasn't the thing
> thats was going wrong.
>
> - oliver
>
> Nachricht vom Mittwoch 31 Oktober 2001 11:39:
> > Hello everyone,
> >
> > I wrote a small program to access openLDAP server, but when I try to run
> > it it gives an error, and when I used "ldap_perror" to show the error
> > message it gave me "Success", is this a bug or I am doing something
> > wrong, I tried to search the archive but couldn't find anything realted.
> > This is the part that gave me the error:
> >
> > ---------------------------------------------
> > e=ldap_first_entry(ld, result);
> >
> > if (e == NULL) {
> > ldap_perror(ld,"ldap_first_entry");
> > return -1;
> > }
> > ---------------------------------------------
> >
> > Thanks
> >
> > - rayed
--
Oliver Egginger
FH Giessen-Friedberg
DV-Zentrum
Wiesenstrasse 14
35390 Giessen
Tel. +49 641 309-1283
Fax +49 641 309-2908
Mail: Oliver.Egginger@dvz.fh-giessen.de
****************************************************
Sprechzeiten des DV-Zentrums fuer
E-Mail-Angelegenheiten:
Mo 11:30 - 15:30 Uhr
Di 13:15 - 15:30 Uhr
Do 9:30 - 16:00 Uhr
Fr 9:45 - 11:45 Uhr
****************************************************