From 0a7ff146171abd2dee4aac44e4f2c6c812f1027e Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 29 May 2010 10:51:40 -0400 Subject: s3:passdb Export function to calculate the proper primary group sid Don't keep it buried in passdb, this function need to be available for use in places where we do not want to construct an artificial samu struct just to play tricks. Signed-off-by: Andrew Bartlett --- source3/include/proto.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/include') diff --git a/source3/include/proto.h b/source3/include/proto.h index 393e7e277c..dc6b555fd2 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4351,6 +4351,10 @@ void uid_to_sid(struct dom_sid *psid, uid_t uid); void gid_to_sid(struct dom_sid *psid, gid_t gid); bool sid_to_uid(const struct dom_sid *psid, uid_t *puid); bool sid_to_gid(const struct dom_sid *psid, gid_t *pgid); +NTSTATUS get_primary_group_sid(TALLOC_CTX *mem_ctx, + const char *username, + struct passwd **_pwd, + struct dom_sid **_group_sid); /* The following definitions come from passdb/machine_sid.c */ -- cgit