1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

r3492: Fixes from testing kerberos salted principal fix.

Jeremy.
This commit is contained in:
Jeremy Allison
2004-11-02 21:28:14 +00:00
committed by Gerald (Jerry) Carter
parent d22b29ee9c
commit b356a8fdc5
3 changed files with 66 additions and 24 deletions

View File

@ -823,6 +823,20 @@ int net_ads_join(int argc, const char **argv)
return -1;
}
#ifdef HAVE_KRB5
if (!kerberos_derive_salting_principal(machine_account)) {
DEBUG(1,("Failed to determine salting principal\n"));
ads_destroy(&ads);
return -1;
}
if (!kerberos_derive_cifs_salting_principals()) {
DEBUG(1,("Failed to determine salting principals\n"));
ads_destroy(&ads);
return -1;
}
#endif
if (!secrets_store_domain_sid(short_domain_name, &dom_sid)) {
DEBUG(1,("Failed to save domain sid\n"));
ads_destroy(&ads);