diff options
-rw-r--r-- | source3/passdb/pdb_ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index 9ce659e818..63262406e5 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -5003,7 +5003,7 @@ static NTSTATUS ldapsam_create_user(struct pdb_methods *my_methods, rc = smbldap_search_suffix(ldap_state->smbldap_state, filter, NULL, &result); if (rc != LDAP_SUCCESS) { DEBUG(0,("ldapsam_create_user: ldap search failed!\n")); - return NT_STATUS_UNSUCCESSFUL; + return NT_STATUS_ACCESS_DENIED; } talloc_autofree_ldapmsg(tmp_ctx, result); |