summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-10-19 08:31:48 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-10-19 14:13:08 +0200
commit75689effdfa2a54515fddaf823aedd07f562efc1 (patch)
treeef2a8688f1b6198dfca6e620a453414f6f4b4917
parent5c5fc5dde45618b9ec9f41fbb4aa090b161ebf35 (diff)
downloadsamba-75689effdfa2a54515fddaf823aedd07f562efc1.tar.gz
samba-75689effdfa2a54515fddaf823aedd07f562efc1.tar.bz2
samba-75689effdfa2a54515fddaf823aedd07f562efc1.zip
s4-smb_server do not set credentials on gensec twice
The samba_server_gensec_start() has already set the credentials on the gensec_security context. Andrew Bartlett
-rw-r--r--source4/smb_server/smb/negprot.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source4/smb_server/smb/negprot.c b/source4/smb_server/smb/negprot.c
index 739881dadc..2a31f9fc47 100644
--- a/source4/smb_server/smb/negprot.c
+++ b/source4/smb_server/smb/negprot.c
@@ -383,10 +383,6 @@ static void reply_nt1(struct smbsrv_request *req, uint16_t choice)
}
req->smb_conn->negotiate.server_credentials = talloc_reparent(req, req->smb_conn, server_credentials);
- gensec_set_target_service(gensec_security, "cifs");
-
- gensec_set_credentials(gensec_security, server_credentials);
-
oid = GENSEC_OID_SPNEGO;
nt_status = gensec_start_mech_by_oid(gensec_security, oid);