summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/passdb/pdb_ldap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 7c1681031a..04541e881d 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -3027,6 +3027,7 @@ static NTSTATUS ldapsam_enum_group_memberships(struct pdb_methods *methods,
if (dom_sid_compare(&global_sid_NULL, &(*pp_sids)[0]) == 0) {
DEBUG(3, ("primary group of [%s] not found\n",
pdb_get_username(user)));
+ ret = NT_STATUS_INTERNAL_DB_CORRUPTION;
goto done;
}