diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-10-21 03:26:24 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-10-21 03:26:24 +0000 |
commit | 58cfa13d6576bd34ceed7ba6ad52bced96e50544 (patch) | |
tree | ae84a9a5dfeaaa565bed73f81a77f6ae18c3af0f /source/smbd/negprot.c | |
parent | d1341d74b7aa5f6b3f72e5409b245f87f1ad670b (diff) | |
download | samba-58cfa13d6576bd34ceed7ba6ad52bced96e50544.tar.gz samba-58cfa13d6576bd34ceed7ba6ad52bced96e50544.tar.xz samba-58cfa13d6576bd34ceed7ba6ad52bced96e50544.zip |
change smbd to use HOST/hostname principle form until I work out how
to use the other form in netjoin
Diffstat (limited to 'source/smbd/negprot.c')
-rw-r--r-- | source/smbd/negprot.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/smbd/negprot.c b/source/smbd/negprot.c index 6926e50402e..dc19e2bdfb3 100644 --- a/source/smbd/negprot.c +++ b/source/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); |