1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

Re-add the last empty item to the NTLMSSP info list, but this time do it

with an empty string, not a NULL pointer...

Also, check for security=ads before giving a kerberos spnego response.
(This used to be commit 6eca417d1c29c7c18455f8290cad86fb1444e615)
This commit is contained in:
Jim McDonough 2002-08-16 08:09:55 +00:00
parent b92cda9772
commit 51f62926b3

View File

@ -266,7 +266,7 @@ static int reply_spnego_negotiate(connection_struct *conn,
DEBUG(3,("Got secblob of size %d\n", secblob.length));
#ifdef HAVE_KRB5
if (got_kerberos) {
if (got_kerberos && (SEC_ADS == lp_security())) {
int ret = reply_spnego_kerberos(conn, inbuf, outbuf,
length, bufsize, &secblob);
data_blob_free(&secblob);
@ -332,11 +332,12 @@ static int reply_spnego_negotiate(connection_struct *conn,
fstrcat(dnsname, lp_realm());
strlower(dnsname);
msrpc_gen(&struct_blob, "aaaa",
msrpc_gen(&struct_blob, "aaaaa",
2, lp_workgroup(),
1, global_myname,
4, dnsdomname,
3, dnsname);
3, dnsname,
0, "");
msrpc_gen(&chal, "CdUdbddB",
"NTLMSSP",