summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-06-01 19:12:29 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-09-11 22:32:43 +1000
commite13ed6fc789d27daf5326a81b42469da3d54de01 (patch)
treee08902e0ff76a4ac43752b62ebd1f3f386d945e2
parent2921a888dce74e8592ad4f7d51d92b8fa6d44711 (diff)
downloadsamba-e13ed6fc789d27daf5326a81b42469da3d54de01.tar.gz
s4:gensec Put the "NTLM" string for NTLMSSP's SASL name in a header
-rw-r--r--source4/auth/gensec/gensec.h2
-rw-r--r--source4/auth/ntlmssp/ntlmssp.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/source4/auth/gensec/gensec.h b/source4/auth/gensec/gensec.h
index 886f8fb171e..62d8a454915 100644
--- a/source4/auth/gensec/gensec.h
+++ b/source4/auth/gensec/gensec.h
@@ -26,6 +26,8 @@
#include "../lib/util/data_blob.h"
#include "libcli/util/ntstatus.h"
+#define GENSEC_SASL_NAME_NTLMSSP "NTLM"
+
#define GENSEC_OID_NTLMSSP "1.3.6.1.4.1.311.2.2.10"
#define GENSEC_OID_SPNEGO "1.3.6.1.5.5.2"
#define GENSEC_OID_KERBEROS5 "1.2.840.113554.1.2.2"
diff --git a/source4/auth/ntlmssp/ntlmssp.c b/source4/auth/ntlmssp/ntlmssp.c
index 24da1674b84..1a15d319a95 100644
--- a/source4/auth/ntlmssp/ntlmssp.c
+++ b/source4/auth/ntlmssp/ntlmssp.c
@@ -274,7 +274,7 @@ static const char *gensec_ntlmssp_oids[] = {
static const struct gensec_security_ops gensec_ntlmssp_security_ops = {
.name = "ntlmssp",
- .sasl_name = "NTLM",
+ .sasl_name = GENSEC_SASL_NAME_NTLMSSP, /* "NTLM" */
.auth_type = DCERPC_AUTH_TYPE_NTLMSSP,
.oid = gensec_ntlmssp_oids,
.client_start = gensec_ntlmssp_client_start,