summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-01-25 21:24:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:15 -0500
commit5301c8b98d437ecdafb042e53c8bd1c4104fedea (patch)
tree97ec3d78cc6ad3fc2eaf6955bb9c10e28306607f /source3/utils
parentefc04a2411d7e0f6cc44df8540332fbfce4384ec (diff)
downloadsamba-5301c8b98d437ecdafb042e53c8bd1c4104fedea.tar.gz
samba-5301c8b98d437ecdafb042e53c8bd1c4104fedea.tar.bz2
samba-5301c8b98d437ecdafb042e53c8bd1c4104fedea.zip
r13136: Fix handling user sid and user gid
(This used to be commit 65d5abda68fa0cacbff489ea1e4bfeffd58c83cb)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/pdbedit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c
index ddf0eea169..53d3b17d06 100644
--- a/source3/utils/pdbedit.c
+++ b/source3/utils/pdbedit.c
@@ -28,7 +28,7 @@
#define BIT_SPSTYLE 0x00000010
#define BIT_CAN_CHANGE 0x00000020
#define BIT_MUST_CHANGE 0x00000040
-#define BIT_RESERV_3 0x00000080
+#define BIT_USERSIDS 0x00000080
#define BIT_FULLNAME 0x00000100
#define BIT_HOMEDIR 0x00000200
#define BIT_HDIRDRIVE 0x00000400
@@ -52,7 +52,7 @@
#define BIT_LOGONHOURS 0x10000000
#define MASK_ALWAYS_GOOD 0x0000001F
-#define MASK_USER_GOOD 0x00405F60
+#define MASK_USER_GOOD 0x00405FE0
/*********************************************************
Add all currently available users to another db
@@ -819,6 +819,8 @@ int main (int argc, char **argv)
(user_name ? BIT_USER : 0) +
(list_users ? BIT_LIST : 0) +
(force_initialised_password ? BIT_FIX_INIT : 0) +
+ (user_sid ? BIT_USERSIDS : 0) +
+ (group_sid ? BIT_USERSIDS : 0) +
(modify_user ? BIT_MODIFY : 0) +
(add_user ? BIT_CREATE : 0) +
(delete_user ? BIT_DELETE : 0) +