summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-12-16 15:59:04 +0100
committerGünther Deschner <gd@samba.org>2009-12-16 16:08:48 +0100
commitd9f93224bdd2b02a8c96667009e43406b47d4c35 (patch)
treef7ca61ec30c9c3ee79e99528aa56fe8ace059ba8
parent8d3fc23157376af5657a09324509abace3c5ee4f (diff)
downloadsamba-d9f93224bdd2b02a8c96667009e43406b47d4c35.tar.gz
samba-d9f93224bdd2b02a8c96667009e43406b47d4c35.tar.bz2
samba-d9f93224bdd2b02a8c96667009e43406b47d4c35.zip
s3-pdbedit: allow to call "pdbedit -N description -u user" without specifiyng "-r".
Guenther
-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 5d8a6fd749..06eedef920 100644
--- a/source3/utils/pdbedit.c
+++ b/source3/utils/pdbedit.c
@@ -50,9 +50,10 @@
#define BIT_BADPWRESET 0x08000000
#define BIT_LOGONHOURS 0x10000000
#define BIT_KICKOFFTIME 0x20000000
+#define BIT_DESCRIPTION 0x40000000
#define MASK_ALWAYS_GOOD 0x0000001F
-#define MASK_USER_GOOD 0x20405FE0
+#define MASK_USER_GOOD 0x60405FE0
static int get_sid_from_cli_string(DOM_SID *sid, const char *str_sid)
{
@@ -1106,7 +1107,8 @@ int main (int argc, char **argv)
(backend_out ? BIT_EXPORT : 0) +
(badpw_reset ? BIT_BADPWRESET : 0) +
(hours_reset ? BIT_LOGONHOURS : 0) +
- (kickoff_time ? BIT_KICKOFFTIME : 0);
+ (kickoff_time ? BIT_KICKOFFTIME : 0) +
+ (acct_desc ? BIT_DESCRIPTION : 0);
if (setparms & BIT_BACKEND) {
/* HACK: set the global passdb backend by overwriting globals.