search for: temp_ldif

Displaying 1 result from an estimated 1 matches for "temp_ldif".

Did you mean: temp_dir
2003 Apr 27
2
smbpasswd via cgi
...9;); use CGI; use strict; my $app = new CGI; my $username = $app->param('username'); my $password = $app->param('password'); if ($username ne "" && $password ne "") { my $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 &qu...