[Samba] Forcing Password Changes

Craig White
Thu, 17 Nov 2005 20:06:17 -0000

On Thu, 2005-11-17 at 13:46 -0600, Michael Barnes wrote:
> Actually two issues on this subject.  Migrating to a new system. First,
> I want to set all accounts so when the user logs in the first time, he
> is asked to set a new password.
>
> Second, I need to have passwords expire and require a change every 3
months.
>
> As I understand it, First, I need to set "Password must change: "
to
> '0'.  For the second one, I need to set the maximum password age.
>
> I am using the tdbsam password backend.  The command I found to reset
> the password was "pdbedit --pwd-must-change-time=0 -u
<user>".  When I
> run this, I get a response of "<user>:507:<Real
Name>".  However, after
> looking at it with "pdbedit -L -v <user>"  Nothing changes.
>
> I also cannot find anywhere to change the password maximum age.
>
> Ideas appreciated.
----
samba version?  As I recall, this wasn't implemented immediately in
Samba 3.0.0 but somewhere down the road.

Craig


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.