search for: dn_line

Displaying 4 results from an estimated 4 matches for "dn_line".

Did you mean: db_line
2004 Jan 14
0
Réf. : samba 2.2.8a PDC LDAP CTRL+ALT+DEL password change, not chaning Unix password
...print "Usage: $0 [username]\n"; print " -?, --help show this help message\n"; exit (6); } elsif (substr($arg,0) ne '-') { $user = $arg; } $oldpass = 1; } } if (!defined($user)) { $user=$ENV{"USER"}; } # test existence of user in LDAP my $dn_line; if (!defined($dn_line = get_user_dn($user))) { print "$0: user $user doesn't exist\n"; exit (10); } my $dn = get_dn_from_line($dn_line); my $samba = is_samba_user($user); print "Changing password for $user\n"; # non-root user if (!defined($oldpass)) { # prom...
2003 Sep 16
4
Samba + LDAP + Password Expiry = Almost working...
...quot;; exit (6); } elsif (substr($arg,0) ne '-') { $user = $arg; } $oldpass = 1; } } if (!defined($user)) { $user=$ENV{"USER"}; } # test existence of user in LDAP my $dn_line; if (!defined($dn_line = get_user_dn($user))) { print "$0: user $user doesn't exist\n"; exit (10); } my $dn = get_dn_from_line($dn_line); my $samba = is_samba_user($user); print "Changing password for $user\n"; # non-root user if (!defined($oldpass)) { # prom...
2007 May 25
0
[new script] smbldap-userlist
...s"; $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->get_value('uidNumber') ; printf "%-20s ", $entry->get_value('uid'); printf "%-10s ", $entry->get_value('gecos') if ($Options{'g'}); pri...
2002 May 14
0
Bugfix for idealx smbldap-tools
...cation tokens updated successfully\n"; } else { diff -ur sbin/smbldap_tools.pm modified/smbldap_tools.pm --- sbin/smbldap_tools.pm 2002-05-14 08:05:54.000000000 +0000 +++ modified/smbldap_tools.pm 2002-05-14 08:15:01.000000000 +0000 @@ -337,7 +337,7 @@ } my $dn = get_dn_from_line($dn_line); - system "$ldapdelete $dn >/dev/null"; + system "$ldapdelete '$dn'"; } # $success = group_add($groupname, $group_gid, $force_using_existing_gid) diff -ur sbin/smbldap-useradd.pl modified/smbldap-useradd.pl --- sbin/smbldap-useradd.pl 2002-05-14 08:05:54.00...