You get the following error if defaultMaxPasswordAge is unset in /etc/smbldap-tools/smbldap.conf: $ grep ^.defaultMaxPasswordAge /etc/smbldap-tools/smbldap.conf #defaultMaxPasswordAge="45" $ smbldap-passwd foobar Changing UNIX and samba passwords for foobar New password: Retype new password: Use of uninitialized value in string at /usr/sbin/smbldap-passwd line 277, <STDIN> line 2. Failed to modify UNIX password: shadowMax: value #0 invalid per syntax at /usr/sbin/smbldap-passwd line 285, <STDIN> line 2. Reproducible: Always Steps to Reproduce: 1. unset defaultMaxPasswordAge in /etc/smbldap-tools/smbldap.conf 2. try to change the password of a samba user
Created attachment 158363 [details, diff] patch to fix the defaultMaxPasswordAge bug This fixes the bug. Originally from: http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2007-August/126629.html
Seems like you shouldn't unset the default. :)
Can you please report this to upstream because I really don't see why we should include it directly.