[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldap debug
Hi,
> Fischer Sent: Monday, 19 May, 2003 21:47
> I'm developing a tool in PHP, to manage LDAP entries.
> When something wrong occurs in LDAP, I only get
> simple error messages that does not help too much.
>
> For example "21 :: Invalid syntax" when trying to add
> a entry.
>
> What can I do to better this debugging ?
Have a look at the PHP functions ldap_err2str(), ldap_errno()
and ldap_error().
Of course you need to have a understanding of the meaning
of the error codes in LDAP and the situations when they occur.
This is documented in the LDAP RFCs (esp RFC2251 and RFC3383)
Peter
--
Peter Marschall
eMail: peter@adpm.de