Ted Henriksson
2008-Aug-03 14:21 UTC
[Samba] user must change password, works in ursmgr.exe but not with pdbedit
Hello After spending quite a few hours building a completely new domain with samba as a pdc for a local school I now have everything working(shares, printers, multiuser addscripts, etc). The only problem I have is that it is impossible to force user to change password on next logon from pdbedit. It is possible to set this trough usrmgr.exe but its not really convenient when adding multiple users with a script or remote managing over ssh. Policy set for the domain: maximum password age 90days minimum password age 1day min password length 6chars password history 5 After searching this mailinglist and web for ways to do this it seems that pdbedit --pwd-must-change-time=(0 or current time) 'username' should do the trick (the man file for pdbedit or the samba manual does not mention how to do this.), but trying this and other tricks that I found searching the web does nothing. No change at all from the pdbedit -v 'username' output. However why I use usrmgr.exe to force password change it works. and the output from pdbedit changes as well setting password last set, password can change and password must change to 0. All this has me very confused about what might be wrong. Thanks Ted Henriksson
Chris Smith
2008-Aug-03 14:37 UTC
[Samba] user must change password, works in ursmgr.exe but not with pdbedit
On Sunday 03 August 2008 10:14:50 am Ted Henriksson wrote:> pdbedit --pwd-must-change-time=(0 or current time) 'username'That syntax worked at one time but no longer, I needed to change to: net sam set pwdmustchangenow <username> yes Chris
Apparently Analagous Threads
- pdbedit "password must change" not following policy
- [Bug 20990] New: [kms] Change to VT broken with NV92
- problem with pdbedit logon hours and usrmgr.exe
- [Bug 23712] New: NVA0 KMS: kernel NULL pointer dereference
- deleted fat32, added linux, formated ext3 ... mount detects as fat and I get FS-panic