More fun with LDAP

Piero Calucci calucci at sissa.it
Thu May 13 09:20:20 UTC 2004


On Thu, 2004-05-13 at 09:46, Dan wrote:
> I dont think passwd has any ldap capabilities, so attempting to lock an
> account stored in LDAP using passwd(1) wont work.

I can confirm this. I use a small script that retrieves the value of the
encrypted password via ldapsearch and put it back with a ! via
ldapmodify

ldapmodify -x -Z -h $ldaphost -D $rootdn -w $rootpw <<-EOF
dn: $dn
changetype: modify
replace: userPassword
userPassword: !$password
-

EOF

-- 
pc





More information about the fedora-list mailing list