Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Login/authentication of users via external LDAP problem

We have an LDAP (OpenLDAP) server with user accounts. In Tiger we can get Mac OS X clients and servers to bind to this LDAP server to retrieve users details and authenticate them to login without problems.

This now does not work in Leopard. We set up Leopard client and server machines in exactly the same was as in Tiger (with the LDAP server details, etc) but users from this LDAP server can not SSH, or login using the Login Window or by using the su command on these machines.

Anyone got any idea why the password authentication is failing?

This is the secure.log:
Jan 24 14:11:28 MACSERVER com.apple.SecurityServer35: Succeeded authorizing right system.preferences by client /Applications/Utilities/Directory Utility.app for authorization created by /Applications/Utilities/Directory Utility.app.
Jan 24 14:11:28 MACSERVER com.apple.SecurityServer35: Succeeded authorizing right system.services.directory.configure by client /Applications/Utilities/Directory Utility.app for authorization created by /Applications/Utilities/Directory Utility.app.
Jan 24 14:16:28 MACSERVER com.apple.SecurityServer35: Succeeded authorizing right system.preferences by client /Applications/Utilities/Directory Utility.app for authorization created by /Applications/Utilities/Directory Utility.app.
Jan 24 14:16:58: --- last message repeated 1 time ---
Jan 24 14:21:28 MACSERVER com.apple.SecurityServer35: Succeeded authorizing right system.preferences by client /Applications/Utilities/Directory Utility.app for authorization created by /Applications/Utilities/Directory Utility.app.
Jan 24 14:23:09 MACSERVER com.apple.SecurityServer35: checkpw() returned -2; failed to authenticate user USER (uid 19619).
Jan 24 14:23:09: --- last message repeated 1 time ---
Jan 24 14:23:09 MACSERVER com.apple.SecurityServer35: Failed to authorize right system.login.tty by client /usr/bin/su for authorization created by /usr/bin/su.
Jan 24 14:23:09 MACSERVER su603: pam_authenticate: Authentication failure

Jan 24 14:58:53: --- last message repeated 1 time ---
Jan 24 14:58:53 MACSERVER com.apple.SecurityServer35: Failed to authorize right system.login.tty by client /usr/sbin/sshd for authorization created by /usr/sbin/sshd.
Jan 24 14:58:53 MACSERVER sshd761: error: PAM: Authentication failure for illegal user USER from lecheese
Jan 24 14:58:53 MACSERVER sshd761: Failed keyboard-interactive/pam for invalid user USER from X.X.X.X port 51284 ssh2
Jan 24 14:58:57 MACSERVER com.apple.SecurityServer35: checkpw() returned -2; failed to authenticate user USER (uid 19619).
Jan 24 14:58:57: --- last message repeated 1 time ---
Jan 24 14:58:57 MACSERVER com.apple.SecurityServer35: Failed to authorize right system.login.tty by client /usr/sbin/sshd for authorization created by /usr/sbin/sshd.
Jan 24 14:58:57 MACSERVER sshd761: error: PAM: Authentication failure for illegal user USER from lecheese
Jan 24 14:58:57 MACSERVER sshd761: Failed keyboard-interactive/pam for invalid user USER from X.X.X.X port 51284 ssh2
Jan 24 14:59:02 MACSERVER sshd761: fatal: initgroups: NOUSER: Bad file descriptor

Xserve

Posted on Jan 25, 2008 12:58 AM

Reply
2 replies

Jan 25, 2008 5:55 AM in response to son_t

A bit more detail:

The client/server can connect to the LDAP server and retrieve the users details fine - for example I can do 'finger -m USER' locally and the details come up.

As root I can SU to any user and can become them, not problem. It is when I am someone with less privileges and SU and I need to give the password that it fails - the authentication part. It fails also when I remotely SSH into the client/server - again the prompt is acheived but after a number of tries it disconnects (authentication failure). And a the login screen on the actual client/server, I attempt to login and it fails.

All three method of login in works on Tiger with the same LDAP server setup and binding... What is breaking this in Leopard?

Login/authentication of users via external LDAP problem

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.