1
0
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:
Volker Lendecke
2007-09-08 20:30:51 +00:00
committed by Gerald (Jerry) Carter
parent 9e53f50e94
commit 0c5657b5ef
3 changed files with 175 additions and 5 deletions

View File

@@ -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.
*****************************************************************/