Displaying 1 result from an estimated 1 matches for "ldap_update".
2003 Apr 27
2
smbpasswd via cgi
...$md5 = `/usr/sbin/slappasswd -s $password -h {MD5}`;
my $temp_ldif = "dn: uid=USERNAME,ou=People,dc=prupref,dc=com
changetype: modify
replace: userPassword
userPassword: PASSWORD";
$temp_ldif =~ s/USERNAME/$username/;
$temp_ldif =~ s/PASSWORD/$md5/;
my $ldap_update = `echo "$temp_ldif\n" | /usr/bin/ldapmodify -x -D
"cn=root,dc=prupref,dc=com" -w ROOTPASSWORD 2>&1`;
my $samba_update = `echo "$password\n$password\n" |
/usr/bin/smbpasswd -s $username 2>&1`;
print $app->header();
print $app-...