mirror of
https://github.com/samba-team/samba.git
synced 2025-07-23 20:59:10 +03:00
r25966: Don't force an 8 byte width to generated SIDs, as this can actually
end up with a SID with a space in it.
Andrew Bartlett
(This used to be commit 7771f59ead
)
This commit is contained in:
committed by
Stefan Metzmacher
parent
fab68fd4d9
commit
ef22b1a477
@ -70,7 +70,7 @@ static int ejs_randguid(MprVarHandle eid, int argc, struct MprVar **argv)
|
||||
*/
|
||||
static int ejs_randsid(MprVarHandle eid, int argc, struct MprVar **argv)
|
||||
{
|
||||
char *s = talloc_asprintf(mprMemCtx(), "S-1-5-21-%8u-%8u-%8u",
|
||||
char *s = talloc_asprintf(mprMemCtx(), "S-1-5-21-%u-%u-%u",
|
||||
(unsigned)generate_random(),
|
||||
(unsigned)generate_random(),
|
||||
(unsigned)generate_random());
|
||||
|
Reference in New Issue
Block a user