summaryrefslogtreecommitdiff
path: root/source3/passdb/lookup_sid.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-23 18:31:38 +0100
committerJeremy Allison <jra@samba.org>2011-04-13 14:13:25 -0700
commitddfeccc6e40a3e8d8d84ef1b23f9ad3562a44db1 (patch)
treef55c6ccc93bb0f8cebec0732bd65dd272d25a2e9 /source3/passdb/lookup_sid.h
parentb8dc235b08ba5ccd4c5d4756369eab4be89c91bf (diff)
downloadsamba-ddfeccc6e40a3e8d8d84ef1b23f9ad3562a44db1.tar.gz
samba-ddfeccc6e40a3e8d8d84ef1b23f9ad3562a44db1.tar.bz2
samba-ddfeccc6e40a3e8d8d84ef1b23f9ad3562a44db1.zip
s3: Use wbcSidsToUnixIds in create_local_token
Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/passdb/lookup_sid.h')
-rw-r--r--source3/passdb/lookup_sid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/passdb/lookup_sid.h b/source3/passdb/lookup_sid.h
index 3c3d278c2a..b56aaba039 100644
--- a/source3/passdb/lookup_sid.h
+++ b/source3/passdb/lookup_sid.h
@@ -24,6 +24,7 @@
#define _PASSDB_LOOKUP_SID_H_
#include "../librpc/gen_ndr/lsa.h"
+#include "../nsswitch/libwbclient/wbclient.h"
#define LOOKUP_NAME_NONE 0x00000000
#define LOOKUP_NAME_ISOLATED 0x00000001 /* Look up unqualified names */
@@ -84,6 +85,8 @@ 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);
+bool sids_to_unix_ids(const struct dom_sid *sids, uint32_t num_sids,
+ struct wbcUnixId *ids);
NTSTATUS get_primary_group_sid(TALLOC_CTX *mem_ctx,
const char *username,
struct passwd **_pwd,