search for: is_user_valid

Displaying 3 results from an estimated 3 matches for "is_user_valid".

2007 May 25
0
[new script] smbldap-userlist
...f (-t STDIN); chomp($pass=<STDIN>); system "stty echo" if (-t STDIN); print "\n"; $config{masterDN}="uid=$user,$config{usersdn}"; $config{masterPw}="$pass"; $ldap_master=connect_ldap_master(); $dn=$config{masterDN}; if (!is_user_valid($user, $dn, $pass)) { print "Authentication failure\n"; exit (10); } } } else { # root user $ldap_master=connect_ldap_master(); # test existence of user in LDAP my $dn_line; } sub print_user { my ($entry, %Options) = @_; printf "%4s ", $entry-...
2004 Jan 14
0
Réf. : samba 2.2.8a PDC LDAP CTRL+ALT+DEL password change, not chaning Unix password
...; print "Changing password for $user\n"; # non-root user if (!defined($oldpass)) { # prompt for current password system "stty -echo"; print "(current) UNIX password: "; chomp($oldpass=<STDIN>); print "\n"; system "stty echo"; if (!is_user_valid($user, $dn, $oldpass)) { print "Authentication failure\n"; exit (10); } } # prompt for new password my $pass; my $pass2; system "stty -echo"; print "New password : "; chomp($pass=<STDIN>); print "\n"; system "stty echo"; system...
2003 Sep 16
4
Samba + LDAP + Password Expiry = Almost working...
...\n"; # non-root user if (!defined($oldpass)) { # prompt for current password system "stty -echo"; print "(current) UNIX password: "; chomp($oldpass=<STDIN>); print "\n"; system "stty echo"; if (!is_user_valid($user, $dn, $oldpass)) { print "Authentication failure\n"; exit (10); } } # prompt for new password my $pass; my $pass2; system "stty -echo"; print "New password : "; chomp($pass=<STDIN>); print "\n"; system "stty...