Displaying 5 results from an estimated 5 matches for "get_user_dn".
Did you mean:
get_user_dn2
2019 Nov 15
3
Account locked and delayed user data propagation...
...t done, and account get locked.
This policy is under revision, but for now get is as-is, this is not
the problem.
Account get unlocked automatically after 10 minutes, but sometime it
urges.
So i've setup a script that barely do:
TMPLDIF=$(mktemp /tmp/smbunlock.ldif.XXXXXXXXXX)
UTENTE_DN=$(get_user_dn "${UTENTE}")
echo "dn: ${UTENTE_DN}" > $TMPLDIF
echo "changetype: modify" >> $TMPLDIF
echo "-" >> $TMPLDIF
echo "replace: userAccountControl" >> $TMPLDIF
echo "userAccountControl: ${NEWFLAGS}" >> $TMPLDIF
e...
2005 Apr 27
2
smbldap-tools Perl error (FreeBSD)
smbldap-tools 0.8.7
FreeBSD 5.4-RC2
Samba 3.1.14
Perl 5.8.2
When I try to use any of the tools, the following message appears. Any
hints on how to fix it are welcome.
Bareword "print_banner" not allowed while "strict subs" in use at
/usr/local/sbin/smbldap-useradd line 43.
Execution of /usr/local/sbin/smbldap-useradd aborted due to compilation
errors.
Per olof
2019 Nov 15
0
Account locked and delayed user data propagation...
...under revision, but for now get is as-is, this is not
> the problem.
>
>
> Account get unlocked automatically after 10 minutes, but sometime it
> urges.
>
> So i've setup a script that barely do:
>
> TMPLDIF=$(mktemp /tmp/smbunlock.ldif.XXXXXXXXXX)
> UTENTE_DN=$(get_user_dn "${UTENTE}")
> echo "dn: ${UTENTE_DN}" > $TMPLDIF
> echo "changetype: modify" >> $TMPLDIF
> echo "-" >> $TMPLDIF
> echo "replace: userAccountControl" >> $TMPLDIF
> echo "userAccountControl: ${NEWFLAGS}&q...
2004 Jan 14
0
Réf. : samba 2.2.8a PDC LDAP CTRL+ALT+DEL password change, not chaning Unix password
...\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)) {
# prompt for current password
system "...
2003 Sep 16
4
Samba + LDAP + Password Expiry = Almost working...
...it (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)) {
# prompt for current password
syste...