summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-07-10 10:47:46 +0200
committerVolker Lendecke <vl@samba.org>2008-07-10 10:48:15 +0200
commit516e381e090c2c4b7ad8eb924fcb246f8240114d (patch)
tree78a21954566a0a863f5d38590806bddfae546cac /source3/passdb
parent0a0e18eeecc4d4e091c58109a8ddd9b3f28fa5cd (diff)
downloadsamba-516e381e090c2c4b7ad8eb924fcb246f8240114d.tar.gz
samba-516e381e090c2c4b7ad8eb924fcb246f8240114d.tar.bz2
samba-516e381e090c2c4b7ad8eb924fcb246f8240114d.zip
Give a nice error message if trying to join with a non-privileged user
(This used to be commit 347772fc39d9c7a96fcc72c9707696cc6abd89d7)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_ldap.c2
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);