mirror of
https://github.com/samba-team/samba.git
synced 2025-09-12 13:44:19 +03:00
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 58cfa13d65
)
This commit is contained in:
@@ -173,7 +173,9 @@ static int negprot_spnego(char *p, uint8 cryptkey[8])
|
|||||||
safe_strcpy(guid, global_myname, 16);
|
safe_strcpy(guid, global_myname, 16);
|
||||||
strlower(guid);
|
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);
|
blob = spnego_gen_negTokenInit(guid, OIDs, principle);
|
||||||
free(principle);
|
free(principle);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user