Bug 5487 - pdbedit problem :(
Summary: pdbedit problem :(
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: User/Group Accounts (show other bugs)
Version: 3.0.25b
Hardware: Other Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-23 22:11 UTC by salam
Modified: 2020-12-20 23:23 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description salam 2008-05-23 22:11:59 UTC
Hi,

I am using samba 3.0.25b and using tdbsam back end. I want to enforce
password policy "User must change password on next logon". I assume
this can be done by changing "password must change" value in the tdbsam
user record using pdbedit. But the below command is not working for me,


pdbedit --pwd-must-change-time="2010-01-01" \
            --time-format="%Y-%m-%d" username

 Though i made it happen using net command.

Appreciate if you can give a solution for this :) Reportedly one of the official
maintainer of samba how to's claimed it is not working with 3.0.29 too..

+++++++++++++++++++++++++++++++++++++++++++++++++
On Friday 23 May 2008 06:21:56 am you wrote:
> > pdbedit --pwd-must-change-time="2010-01-01" \
> >              --time-format="%Y-%m-%d" username

Please file a Bugzilla bug report. It appears to be broken in 3.0.29.  I can 
reproduce the problem.  Thanks for making us aware of this.

https://bugzilla.samba.org/

- John T.
++++++++++++++++++++++++++++++++++++++++++++++++++++++

Thanks in advance,
Salam
Comment 1 Björn Jacke 2020-12-20 23:23:37 UTC
there is no such option like the one you mentinoned. Forcing a user password change is done by setting pwdLastSet to 0. Afaiks pdbedit has no way to do that, you need to use "net sam set pwdmustchangenow ..."