summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-10-21 03:26:24 +0000
committerAndrew Tridgell <tridge@samba.org>2001-10-21 03:26:24 +0000
commit42a4e6890cfb35a0a01f29a48ffa99bcf0d409a5 (patch)
tree38076e361492f428f64a36cf4631d878f4d2e674 /source3
parentbbcd9deb07fe0cfcb2911093e1c99d30b210e7d2 (diff)
downloadsamba-42a4e6890cfb35a0a01f29a48ffa99bcf0d409a5.tar.gz
samba-42a4e6890cfb35a0a01f29a48ffa99bcf0d409a5.tar.bz2
samba-42a4e6890cfb35a0a01f29a48ffa99bcf0d409a5.zip
change smbd to use HOST/hostname principle form until I work out how
to use the other form in netjoin (This used to be commit 58cfa13d6576bd34ceed7ba6ad52bced96e50544)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/negprot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c
index 6926e50402..dc19e2bdfb 100644
--- a/source3/smbd/negprot.c
+++ b/source3/smbd/negprot.c
@@ -173,7 +173,9 @@ static int negprot_spnego(char *p, uint8 cryptkey[8])
safe_strcpy(guid, global_myname, 16);
strlower(guid);
- asprintf(&principle, "%s$@%s", guid, lp_realm());
+ /* win2000 uses host$@REALM, which we will probably use eventually,
+ but for now this works */
+ asprintf(&principle, "HOST/%s@%s", guid, lp_realm());
blob = spnego_gen_negTokenInit(guid, OIDs, principle);
free(principle);