GNOME Bugzilla – Bug 502226
lib/ldap.php does not return error messages raised during connection to LDAP server
Last modified: 2007-12-08 14:49:44 UTC
Currently, error messages raised in lib/ldap.php are not returned to the calling method due to the singleton implementation in the class. lib/ldap.php either returns an LDAP ressource handle or null, if no ressource handle could be created. If an error message was raised during connection, this error messsage should be returned to the calling method somehow. Otherwise, it doesn't make sense to raise the error in the first place.
Created attachment 100487 [details] [review] Patch for lib/ldap.php This patch introduces an internal variable $this->error that can be used to store error objects raised during connection. The signleton method can then return the error object instead of a ldap connection ressource handle, if an error was raised during connection to the ldap server.
This contained another patch as well. Reworked so it applied and checked it in.