From c1f9a387cb6ebc298f20c95d85301a8d30c9474d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 9 Feb 2007 21:25:22 +0000 Subject: r21264: LDAP_OPT_ERROR_NUMBER seems more portable than LDAP_OPT_RESULT_CODE (This used to be commit 1b3239f2abea9146c7d0d4af06c47a63e0caf006) --- source3/lib/smbldap.c | 10 +++++----- 1 file 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); -- cgit