summaryrefslogtreecommitdiff
path: root/source3/passdb/util_unixsids.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/passdb/util_unixsids.c')
-rw-r--r--source3/passdb/util_unixsids.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/passdb/util_unixsids.c b/source3/passdb/util_unixsids.c
index d3f0999d6a..80d22a314f 100644
--- a/source3/passdb/util_unixsids.c
+++ b/source3/passdb/util_unixsids.c
@@ -42,6 +42,12 @@ BOOL uid_to_unix_users_sid(uid_t uid, DOM_SID *sid)
return sid_append_rid(sid, uid);
}
+BOOL uid_to_unix_groups_sid(gid_t gid, DOM_SID *sid)
+{
+ sid_copy(sid, &global_sid_Unix_Groups);
+ return sid_append_rid(sid, gid);
+}
+
const char *unix_users_domain_name(void)
{
return "Unix User";