PAM and LDAP, can't login locally
I'm having a problem with PAM authentication and LDAP, on a machine running Mandrake 9.1.
The server that this machine will be replacing, is running RedHat 6.1, and authenticates with our LDAP server just fine.
On the new machine, I made sure I had all the same pam modules installed, and set up the files in pam.d as they were on the old server. Things seemed to be working, but I can't login locally, I can only login through ssh.
The error that shows up on the machine's logs is this:
PAM pam_parse: expecting return value; [...sufficient]
FAILED LOGIN SESSION FROM (null) FOR root Permission Denied
Initially, there were a lot of files in /etc/pam.d, and I eliminated all of them except for the same ones that were on the old server. However, I notice that one called "system-auth" keeps popping back up after a reboot. So, I assume that that particular file is essential on newer systems, and thus, I would imagine the problem lies in that file.
So, I need to know, how can I set up the system-auth file to work with LDAP?
Also, on a related, but yet different note, how can I make it so that root authenticates locally, but all other users authenticate through LDAP?