summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-07 20:35:51 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-08 10:21:50 +0200
commit3e227d8544a020d1aea24c38c9ca45a75d14c3f1 (patch)
tree607d31b7e117519742db8c5ebfd90a67a21781d3 /source3/auth
parentcdca1e0ac3c185856fbe2d061a30bfa8e71e4e1c (diff)
downloadsamba-3e227d8544a020d1aea24c38c9ca45a75d14c3f1.tar.gz
samba-3e227d8544a020d1aea24c38c9ca45a75d14c3f1.tar.bz2
samba-3e227d8544a020d1aea24c38c9ca45a75d14c3f1.zip
s3:libsmb: pass CLI_FULL_CONNECTION_* flags via cli_connect_nb()
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 8 10:21:50 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_server.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c
index 4582d980c2..1cc252400b 100644
--- a/source3/auth/auth_server.c
+++ b/source3/auth/auth_server.c
@@ -43,6 +43,8 @@ static struct cli_state *server_cryptkey(TALLOC_CTX *mem_ctx)
bool connected_ok = False;
struct named_mutex *mutex = NULL;
NTSTATUS status;
+ /* security = server just can't function with spnego */
+ int flags = CLI_FULL_CONNECTION_DONT_SPNEGO;
pserver = talloc_strdup(mem_ctx, lp_passwordserver());
p = pserver;
@@ -85,7 +87,7 @@ static struct cli_state *server_cryptkey(TALLOC_CTX *mem_ctx)
}
status = cli_connect_nb(desthost, &dest_ss, 0, 0x20,
- lp_netbios_name(), Undefined, &cli);
+ lp_netbios_name(), Undefined, flags, &cli);
if (NT_STATUS_IS_OK(status)) {
DEBUG(3,("connected to password server %s\n",desthost));
connected_ok = True;
@@ -101,9 +103,6 @@ static struct cli_state *server_cryptkey(TALLOC_CTX *mem_ctx)
return NULL;
}
- /* security = server just can't function with spnego */
- cli->use_spnego = False;
-
DEBUG(3,("got session\n"));
status = cli_negprot(cli);