mirror of
https://github.com/samba-team/samba.git
synced 2025-11-16 20:23:50 +03:00
r25040: Add "net sam rights"
Not strictly in the SAM, but close enough. This command acts directly on the local tdb, no running smbd required This also changes the root-only check to a warning
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
9e53f50e94
commit
0c5657b5ef
@@ -207,6 +207,13 @@ const char *sid_string_static(const DOM_SID *sid)
|
||||
return sid_str;
|
||||
}
|
||||
|
||||
char *sid_string_tos(const DOM_SID *sid)
|
||||
{
|
||||
fstring sid_str;
|
||||
sid_to_string(sid_str, sid);
|
||||
return talloc_strdup(talloc_tos(), sid_str);
|
||||
}
|
||||
|
||||
/*****************************************************************
|
||||
Convert a string to a SID. Returns True on success, False on fail.
|
||||
*****************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user