mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s3: Replace most calls to sid_append_rid() by sid_compose()
This commit is contained in:
@ -113,8 +113,7 @@ void netsamlogon_clear_cached_user(struct netr_SamInfo3 *info3)
|
||||
NETSAMLOGON_TDB));
|
||||
return;
|
||||
}
|
||||
sid_copy(&user_sid, info3->base.domain_sid);
|
||||
sid_append_rid(&user_sid, info3->base.rid);
|
||||
sid_compose(&user_sid, info3->base.domain_sid, info3->base.rid);
|
||||
|
||||
/* Prepare key as DOMAIN-SID/USER-RID string */
|
||||
slprintf(keystr, sizeof(keystr), "%s", sid_to_fstring(tmp, &user_sid));
|
||||
@ -151,8 +150,7 @@ bool netsamlogon_cache_store(const char *username, struct netr_SamInfo3 *info3)
|
||||
return false;
|
||||
}
|
||||
|
||||
sid_copy(&user_sid, info3->base.domain_sid);
|
||||
sid_append_rid(&user_sid, info3->base.rid);
|
||||
sid_compose(&user_sid, info3->base.domain_sid, info3->base.rid);
|
||||
|
||||
/* Prepare key as DOMAIN-SID/USER-RID string */
|
||||
slprintf(keystr, sizeof(keystr), "%s", sid_to_fstring(tmp, &user_sid));
|
||||
|
Reference in New Issue
Block a user