[Samba] samba-tool max-pwd-age error

banda bassotti bandabasotti at gmail.com
Sun May 5 19:20:05 UTC 2019


debian 9 fresh install, samba-4.10.2 from Louis:

root at lnxdc1:/home/service# samba-tool domain passwordsettings show
Password informations for domain 'DC=mydomain,DC=lan'

Password complexity: on
Store plaintext passwords: off
Password history length: 10
Minimum password length: 8
Minimum password age (days): 0
Maximum password age (days): 60
Account lockout duration (mins): 30
Account lockout threshold (attempts): 0
Reset account lockout after (mins): 30

if I try to change the max password age:

root at lnxdc1:/home/service# samba-tool domain passwordsettings set
--max-pwd-age=90
ERROR(<class 'TypeError'>): uncaught exception - unorderable types:
NoneType() >= int()
  File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 185,
in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/samba/netcmd/domain.py", line 1513,
in run
    if max_pwd_age and max_pwd_age > 0 and min_pwd_age >= max_pwd_age:

root at lnxdc1:/home/service# dpkg -S
/usr/lib/python3/dist-packages/samba/netcmd/domain.py
python3-samba: /usr/lib/python3/dist-packages/samba/netcmd/domain.py
root at lnxdc1:/home/service# dpkg -l python3-samba
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version              Architecture
   Description
+++-===============================-====================-====================-====================================================================
ii  python3-samba                   2:4.10.2+nmu-1debian amd64
  Python 3 bindings for Samba


More information about the samba mailing list