PAM authentication failure

My PAM module seems to work right but it fails in authentication. Althought it can't authenticate, the session module works and the software who uses it executes well.

For example, when I login through "gdm" using pam to authenticate against an ldap server
/var/log/auth.log shows

Any ideas?

Your trying to log in via root user ? Possibly this is due to some restrictions in root user logins in your config ....... There is not much else to go on with what your trying to do or you OS/setup to help more ...