summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-05-29 10:51:40 -0400
committerAndrew Bartlett <abartlet@samba.org>2010-06-07 22:53:08 +1000
commit0a7ff146171abd2dee4aac44e4f2c6c812f1027e (patch)
tree09e1c1bc5cd5fd55ff1b00ae0a5a3e90453193b2 /source3/include
parentaaf45cd48ecf8e9f640a6f487b66785d47b8154a (diff)
downloadsamba-0a7ff146171abd2dee4aac44e4f2c6c812f1027e.tar.gz
samba-0a7ff146171abd2dee4aac44e4f2c6c812f1027e.tar.bz2
samba-0a7ff146171abd2dee4aac44e4f2c6c812f1027e.zip
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 <abartlet@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h4
1 files changed, 4 insertions, 0 deletions
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 */