summaryrefslogtreecommitdiff
path: root/source4/lib/samba3/sam.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-08-21 17:18:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:34:16 -0500
commit0b3f8c443d5094ac813ab83fa50f1555480f70af (patch)
treedd591b8156fe7a4571ae76bce3f507b2f6017ff0 /source4/lib/samba3/sam.h
parent7de12a8d50ebb5ead2c44b9d726bb134dc8919b6 (diff)
downloadsamba-0b3f8c443d5094ac813ab83fa50f1555480f70af.tar.gz
samba-0b3f8c443d5094ac813ab83fa50f1555480f70af.tar.bz2
samba-0b3f8c443d5094ac813ab83fa50f1555480f70af.zip
r9449: Add simple utility for dumping Samba3 domain information. Currently
only prints rids and usernames of users in passdb database. Update plan (This used to be commit 651d06728fb21393c15268ea47689c738c2c6b86)
Diffstat (limited to 'source4/lib/samba3/sam.h')
-rw-r--r--source4/lib/samba3/sam.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/source4/lib/samba3/sam.h b/source4/lib/samba3/sam.h
index 11a9f42ec7..bc13b28e2a 100644
--- a/source4/lib/samba3/sam.h
+++ b/source4/lib/samba3/sam.h
@@ -21,6 +21,8 @@
#ifndef _SAMBA3_SAM_H /* _SAMBA3_SAM_H */
#define _SAMBA3_SAM_H
+#include "librpc/gen_ndr/security.h"
+
struct samba3_samaccount {
uint32_t logon_time,
logoff_time,
@@ -49,4 +51,28 @@ struct samba3_samaccount {
uint8_t *hours;
};
+/* SID Types */
+enum SID_NAME_USE
+{
+ SID_NAME_USE_NONE = 0,
+ SID_NAME_USER = 1, /* user */
+ SID_NAME_DOM_GRP, /* domain group */
+ SID_NAME_DOMAIN, /* domain sid */
+ SID_NAME_ALIAS, /* local group */
+ SID_NAME_WKN_GRP, /* well-known group */
+ SID_NAME_DELETED, /* deleted account: needed for c2 rating */
+ SID_NAME_INVALID, /* invalid account */
+ SID_NAME_UNKNOWN, /* unknown sid type */
+ SID_NAME_COMPUTER /* sid for a computer */
+};
+
+struct samba3_groupmapping {
+ struct pdb_methods *methods;
+ gid_t gid;
+ struct dom_sid *sid;
+ enum SID_NAME_USE sid_name_use;
+ const char *nt_name;
+ const char *comment;
+};
+
#endif /* _SAMBA3_SAM_H */