summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-02-09 21:25:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:52 -0500
commitc1f9a387cb6ebc298f20c95d85301a8d30c9474d (patch)
tree902b0b7bd42c226245a57ad300632a94a27ae488 /source3
parent297ba8dd9cae200feb017f51c29a6375c7d586b0 (diff)
downloadsamba-c1f9a387cb6ebc298f20c95d85301a8d30c9474d.tar.gz
samba-c1f9a387cb6ebc298f20c95d85301a8d30c9474d.tar.bz2
samba-c1f9a387cb6ebc298f20c95d85301a8d30c9474d.zip
r21264: LDAP_OPT_ERROR_NUMBER seems more portable than LDAP_OPT_RESULT_CODE
(This used to be commit 1b3239f2abea9146c7d0d4af06c47a63e0caf006)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/smbldap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c
index f3a86b0fb3..c102c2185f 100644
--- a/source3/lib/smbldap.c
+++ b/source3/lib/smbldap.c
@@ -1235,7 +1235,7 @@ static int smbldap_search_ext(struct smbldap_state *ldap_state,
int ld_errno;
ldap_get_option(ldap_state->ldap_struct,
- LDAP_OPT_RESULT_CODE, &ld_errno);
+ LDAP_OPT_ERROR_NUMBER, &ld_errno);
ldap_get_option(ldap_state->ldap_struct,
LDAP_OPT_ERROR_STRING, &ld_error);
@@ -1386,7 +1386,7 @@ int smbldap_modify(struct smbldap_state *ldap_state, const char *dn, LDAPMod *at
int ld_errno;
ldap_get_option(ldap_state->ldap_struct,
- LDAP_OPT_RESULT_CODE, &ld_errno);
+ LDAP_OPT_ERROR_NUMBER, &ld_errno);
ldap_get_option(ldap_state->ldap_struct,
LDAP_OPT_ERROR_STRING, &ld_error);
@@ -1429,7 +1429,7 @@ int smbldap_add(struct smbldap_state *ldap_state, const char *dn, LDAPMod *attrs
int ld_errno;
ldap_get_option(ldap_state->ldap_struct,
- LDAP_OPT_RESULT_CODE, &ld_errno);
+ LDAP_OPT_ERROR_NUMBER, &ld_errno);
ldap_get_option(ldap_state->ldap_struct,
LDAP_OPT_ERROR_STRING, &ld_error);
@@ -1472,7 +1472,7 @@ int smbldap_delete(struct smbldap_state *ldap_state, const char *dn)
int ld_errno;
ldap_get_option(ldap_state->ldap_struct,
- LDAP_OPT_RESULT_CODE, &ld_errno);
+ LDAP_OPT_ERROR_NUMBER, &ld_errno);
ldap_get_option(ldap_state->ldap_struct,
LDAP_OPT_ERROR_STRING, &ld_error);
@@ -1514,7 +1514,7 @@ int smbldap_extended_operation(struct smbldap_state *ldap_state,
int ld_errno;
ldap_get_option(ldap_state->ldap_struct,
- LDAP_OPT_RESULT_CODE, &ld_errno);
+ LDAP_OPT_ERROR_NUMBER, &ld_errno);
ldap_get_option(ldap_state->ldap_struct,
LDAP_OPT_ERROR_STRING, &ld_error);