diff options
author | Gerald Carter <jerry@samba.org> | 2001-04-12 22:14:20 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2001-04-12 22:14:20 +0000 |
commit | c032fb5121608dcaaec47244893e6888b21715fe (patch) | |
tree | e60af406695d66096a2c719d0c8546e78dcd8d66 /source3/include | |
parent | 874356646acf782edab9042039442b9de1d93b66 (diff) | |
download | samba-c032fb5121608dcaaec47244893e6888b21715fe.tar.gz samba-c032fb5121608dcaaec47244893e6888b21715fe.tar.bz2 samba-c032fb5121608dcaaec47244893e6888b21715fe.zip |
still working on it
(This used to be commit ff7c5be88a05c0f1858fedb966ccfc038299bbc9)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/passdb.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h index eb9016aa08..89cb35bd14 100644 --- a/source3/include/passdb.h +++ b/source3/include/passdb.h @@ -26,10 +26,11 @@ /* * This next constant specifies the version number of the VFS interface * this smbd will load. Increment this if *ANY* changes are made to the - * vfs_ops below. JRA. + * passdb_ops below. */ -#define SMB_PASSDB_INTERFACE_VERSION 1 +#define SMB_PASSDB_MAJOR_VERSION 1 +#define SMB_PASSDB_MINOR_VERSION 0 /* passdb operations structure */ struct passdb_ops { @@ -50,16 +51,22 @@ struct passdb_ops { BOOL (*add_sam_account) (SAM_ACCOUNT* sampass); }; + + +#define SMB_UIDMAP_MAJOR_VERSION 1 +#define SMB_UIDMAP_MINOR_VERSION 0 + +typedef enum sid_type {SID_USER_TYPE, SID_GROUP_TYPE} SMB_SID_T + /* uid mapping structure */ struct uidmap_ops { /* From NT to UNIX */ - uid_t (*user_rid_to_uid) (uint32 rid); - gid_t (*group_rid_to_gid) (uint32 rid); + int (*sid_to_id) (DOM_SID* sid, SMB_SID_T type); /* From UNIX to NT */ - uint32 (*uid_to_user_rid) (uid_t uid); - uint32 (*gid_to_group_rid) (gid_t gid); + DOM_SID* (*id_to_sid) (int id); + }; |