sophomorix-passwd --show-password-expiry-days $user
hat einen Bug, sorry.
Du kannst ihn für dein system aber leicht beheben:
Mit einem Editor /usr/sbin/sophomorix-passwd öffnen.
Dort etwa bei zeile 500 findest du:
if ($show_password_expiry_days ne ""){
Danach wird der suchbefehl für den user angegeben:
my $ldb_command="ldbsearch -H ldap://localhost -UAdministrator%`cat /etc/linuxmuster/.secret/administrator` ".
"-b dc=linuxmuster,dc=local sAMAccountname=".
$user.
" msDS-UserPasswordExpiryTimeComputed".
" | grep --color=never msDS-UserPasswordExpiryTimeComputed";
darin must du dc=linuxmuster,dc=local
für deinen Server passend ersetzen.