summaryrefslogtreecommitdiff
path: root/source3/passdb/pdb_ipa.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/passdb/pdb_ipa.c')
-rw-r--r--source3/passdb/pdb_ipa.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/passdb/pdb_ipa.c b/source3/passdb/pdb_ipa.c
index 9e52e952a1..feae2287e7 100644
--- a/source3/passdb/pdb_ipa.c
+++ b/source3/passdb/pdb_ipa.c
@@ -809,7 +809,6 @@ static NTSTATUS ipasam_add_objectclasses(struct ldapsam_privates *ldap_state,
{
char *dn;
LDAPMod **mods = NULL;
- NTSTATUS status;
int ret;
char *princ;
const char *domain;
@@ -861,7 +860,7 @@ static NTSTATUS ipasam_add_objectclasses(struct ldapsam_privates *ldap_state,
if (ret != LDAP_SUCCESS) {
DEBUG(1, ("failed to modify/add user with uid = %s (dn = %s)\n",
pdb_get_username(sampass),dn));
- return status;
+ return NT_STATUS_LDAP(ret);
}
return NT_STATUS_OK;