mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
parent
88dd4ab481
commit
7f3ace5481
@ -177,13 +177,16 @@ BOOL secrets_fetch_domain_guid(const char *domain, struct uuid *guid)
|
||||
strupper_m(key);
|
||||
dyn_guid = (struct uuid *)secrets_fetch(key, &size);
|
||||
|
||||
if ((!dyn_guid) && (lp_server_role() == ROLE_DOMAIN_PDC)) {
|
||||
smb_uuid_generate_random(&new_guid);
|
||||
if (!secrets_store_domain_guid(domain, &new_guid))
|
||||
return False;
|
||||
dyn_guid = (struct uuid *)secrets_fetch(key, &size);
|
||||
if (dyn_guid == NULL)
|
||||
if (!dyn_guid) {
|
||||
if (lp_server_role() == ROLE_DOMAIN_PDC) {
|
||||
smb_uuid_generate_random(&new_guid);
|
||||
if (!secrets_store_domain_guid(domain, &new_guid))
|
||||
return False;
|
||||
dyn_guid = (struct uuid *)secrets_fetch(key, &size);
|
||||
}
|
||||
if (dyn_guid == NULL) {
|
||||
return False;
|
||||
}
|
||||
}
|
||||
|
||||
if (size != sizeof(struct uuid)) {
|
||||
|
Loading…
Reference in New Issue
Block a user