mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s3:secrets: make use of des_salt_key() in secrets_store_machine_pw_sync()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12782 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
99013685a1
commit
4e37d7805b
@ -34,6 +34,8 @@
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_PASSDB
|
||||
|
||||
static char *des_salt_key(const char *realm);
|
||||
|
||||
/**
|
||||
* Form a key for fetching the domain sid
|
||||
*
|
||||
@ -545,11 +547,7 @@ bool secrets_store_machine_pw_sync(const char *pass, const char *oldpass, const
|
||||
}
|
||||
|
||||
if (realm && salting_principal) {
|
||||
char *key = talloc_asprintf(frame, "%s/DES/%s", SECRETS_SALTING_PRINCIPAL, realm);
|
||||
if (!key) {
|
||||
TALLOC_FREE(frame);
|
||||
return false;
|
||||
}
|
||||
char *key = des_salt_key(realm);
|
||||
ret = secrets_store(key, salting_principal, strlen(salting_principal)+1 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user