From: Volker Lendecke Date: Thu, 10 Jul 2008 08:47:46 +0000 (+0200) Subject: Give a nice error message if trying to join with a non-privileged user X-Git-Tag: samba-3.3.0pre1~603 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=347772fc39d9c7a96fcc72c9707696cc6abd89d7;p=thirdparty%2Fsamba.git Give a nice error message if trying to join with a non-privileged user --- diff --git a/source/passdb/pdb_ldap.c b/source/passdb/pdb_ldap.c index 9ce659e8188..63262406e57 100644 --- a/source/passdb/pdb_ldap.c +++ b/source/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);