summaryrefslogtreecommitdiff
path: root/ext/ldap/ldap.c
diff options
context:
space:
mode:
authorStig Venaas <venaas@php.net>2000-08-31 16:14:35 +0000
committerStig Venaas <venaas@php.net>2000-08-31 16:14:35 +0000
commit6910e92132f54b311edb21c328afe5e21d66735d (patch)
tree297cb14b16b5ab3d296aac91fc7917a90e9e9a9a /ext/ldap/ldap.c
parent0bc2bb05d4b0053db86f92ca23538e47637876ab (diff)
downloadphp-git-6910e92132f54b311edb21c328afe5e21d66735d.tar.gz
removed some NSLDAP #if's giving more detailed error reporting
Diffstat (limited to 'ext/ldap/ldap.c')
-rw-r--r--ext/ldap/ldap.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c
index b302a55f94..cb8a545581 100644
--- a/ext/ldap/ldap.c
+++ b/ext/ldap/ldap.c
@@ -499,9 +499,7 @@ PHP_FUNCTION(ldap_bind)
if (ldap == NULL) RETURN_FALSE;
if (ldap_bind_s(ldap, ldap_bind_rdn, ldap_bind_pw, LDAP_AUTH_SIMPLE) != LDAP_SUCCESS) {
-#if !HAVE_NSLDAP
php_error(E_WARNING,"LDAP: Unable to bind to server: %s",ldap_err2string(_get_lderrno(ldap)));
-#endif
RETURN_FALSE;
} else {
RETURN_TRUE;
@@ -649,9 +647,7 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
}
if (errno != LDAP_SUCCESS && errno != LDAP_SIZELIMIT_EXCEEDED) {
-#if !HAVE_NSLDAP
php_error(E_WARNING,"LDAP: Unable to perform the search: %s",ldap_err2string(_get_lderrno(ldap)));
-#endif
RETVAL_FALSE;
} else {
if (errno == LDAP_SIZELIMIT_EXCEEDED) {
@@ -1023,9 +1019,7 @@ PHP_FUNCTION(ldap_get_values)
attribute = (*attr)->value.str.val;
if ((ldap_value = ldap_get_values(ldap, ldap_result_entry, attribute)) == NULL) {
-#if !HAVE_NSLDAP
php_error(E_WARNING, "LDAP: Cannot get the value(s) of attribute %s", ldap_err2string(_get_lderrno(ldap)));
-#endif
RETURN_FALSE;
}