[CentOS] CentOP 5.1 Problem with smbldap-passwd

Sebastian Marten

sebi4711 at gmail.com
Fri Dec 7 16:05:42 UTC 2007


Hi List,
Yesterday i have upgraded from 5.0 to 5.1 and now i have a problem
with smbldap-tools.
I use smbldap-tools-0.9.4-1.el5.rf from rpmforge.

Then i use smbldap-passwd <user> i get an error:

smbldap-passwd test
Changing UNIX and samba passwords for test
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.


In 5.0 it works without errors.

I hope you can help me
Tanks,
Sebastian

Here is the part of the file
//////////////////////////////////////////////////////////////////////

# Update 'userPassword' field
if ( $update_unix_passwd ) {
    my $shadowLastChange=int(time()/86400);
    my $modify;
    if ($< != 0) {
        $modify = $ldap_master->modify ( "$dn",
                                            changes => [
                                                        replace =>
[userPassword => "$hash_password"],
                                                        replace =>
[shadowLastChange => "$shadowLastChange"]
                                                        ]
                                            );
    } else {
        $modify = $ldap_master->modify ( "$dn",
                                            changes => [
                                                        replace =>
[userPassword => "$hash_password"],
                                                        replace =>
[shadowLastChange => "$shadowLastChange"],
                                                        replace =>
[shadowMax => "$config{defaultMaxPasswordAge}"]
                                                        ]
                                            );
    }
    $modify->code && warn "Failed to modify UNIX password: ", $modify->error ;
}

//////////////////////////////////////////////////////////////////////////////////////



More information about the CentOS mailing list