RSS feed

Re: pam_ldapd problem

[Date Prev][Date Next] [Thread Prev][Thread Next]

Re: pam_ldapd problem

Hi again, 

On Fri, 8 Jun 2012 11:09:07 +0200
Anton Helwart <> wrote:

> If I run passwd and enter a wrong ldap password, I still get asked for
> a new password by cracklib. 

I solved this with a small patch to pam.c (it's attached to this mail). 
Now returns PAM_AUTH_ERR when I enter a wrong password 
in the preliminary check and I can use something like this in 

password        [success=ok auth_err=die new_authtok_reqd=ok \
ignore=ignore default=bad] debug

But I'm no expert. Maybe someone can review my the patch and tell
me, if I'm doing something wrong. 


Attachment: pam.c_patch
Description: Binary data

To unsubscribe send an email to or see