Bug 2393 - net rap user add -F can't set UF_DONT_EXPIRE_PASSWD
Summary: net rap user add -F can't set UF_DONT_EXPIRE_PASSWD
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: net utility (show other bugs)
Version: 3.0.11
Hardware: All All
: P3 minor
Target Milestone: none
Assignee: Jim McDonough
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-25 10:07 UTC by TAKAHASHI Motonobu
Modified: 2006-04-05 22:01 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TAKAHASHI Motonobu 2005-02-25 10:07:31 UTC
Because UF_DONT_EXPIRE_PASSWD is 0x00010000 and userflags in rap_user_info_1 is 
defined as uint16, net rap user add -F can't set UF_DONT_EXPIRE_PASSWD.

P.S.
"net rpc user add" can't have no options but this is not documented.

monyo@mango:~$ net rpc user help
No command: help
(snip)
net [<method>] user ADD <name> [password] [-c container] [-F user flags] [misc.
options] [targets]
        Add specified user
Comment 1 Jim McDonough 2006-04-05 21:28:51 UTC
Do you find that this works on some other platform?  The problem here is that the RAP user_info_1 has a W definition (16 bits) for the flags.  Do you have a RAP platform that can handle something different?  Perhaps a different info level?
Comment 2 Jim McDonough 2006-04-05 22:01:55 UTC
in fact, when I expand this parameter to a D, i get INVALID_PARAMETER back from a windows box.  I'm going to close this.  If you can show me a trace of a RAP server than can handle a 32-bit flags field somehow, then please reopen this.