summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-19 12:03:17 +0000
committerJelmer Vernooij <jelmer@samba.org>2008-12-19 12:03:17 +0000
commit263036a798b4c431f03dae20d33f90585d2b0cab (patch)
tree1a8af7fae50ac0b81fb0da9149b1eb92fb2706b0 /source3/auth
parente0672ae29bcd345bdf0fec96844f658ffd941039 (diff)
parentf87da49830960aebe4ffa551e7e1f16330d28cca (diff)
downloadsamba-263036a798b4c431f03dae20d33f90585d2b0cab.tar.gz
samba-263036a798b4c431f03dae20d33f90585d2b0cab.tar.bz2
samba-263036a798b4c431f03dae20d33f90585d2b0cab.zip
Merge branch 'master' of ssh://git.samba.org/data/git/samba into pyregistry
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_server.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c
index e74e3f5b3b..466c4bf129 100644
--- a/source3/auth/auth_server.c
+++ b/source3/auth/auth_server.c
@@ -38,6 +38,7 @@ static struct cli_state *server_cryptkey(TALLOC_CTX *mem_ctx)
char *pserver = NULL;
bool connected_ok = False;
struct named_mutex *mutex = NULL;
+ NTSTATUS status;
if (!(cli = cli_initialise()))
return NULL;
@@ -49,7 +50,6 @@ static struct cli_state *server_cryptkey(TALLOC_CTX *mem_ctx)
p = pserver;
while(next_token_talloc(mem_ctx, &p, &desthost, LIST_SEP)) {
- NTSTATUS status;
desthost = talloc_sub_basic(mem_ctx,
current_user_info.smb_name,
@@ -112,9 +112,12 @@ static struct cli_state *server_cryptkey(TALLOC_CTX *mem_ctx)
DEBUG(3,("got session\n"));
- if (!cli_negprot(cli)) {
+ status = cli_negprot(cli);
+
+ if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(mutex);
- DEBUG(1,("%s rejected the negprot\n",desthost));
+ DEBUG(1, ("%s rejected the negprot: %s\n",
+ desthost, nt_errstr(status)));
cli_shutdown(cli);
return NULL;
}