Despot
October 9th, 2009, 11:46 PM
I was hoping somebody could help me with a bit of an issue I'm having with authentication to my LDAP directory using Kerberos.
I've got Kerberos working properly, and I'm using it for authentication for all hosts on my network. I recently configured my OpenLDAP directory (running on Ubunt 8.04 Server) to start using Kerberos for authentication.
I've been partially successful: I can search the directory, and I've been able to configure my hosts to authenticate correctly, so they can get user and group information from the directory. The usual "getent passwd" and "ldapwhoami" tests pass, both as a standard user, and as root.
However, I still have a bit of an issue with daemons on my Jaunty desktops. In particular, I'm not sure how to configure the DBus daemon to properly authenticate using Kerberos. I keep getting message in /var/log/auth.log that nss_ldap couldn't find a credentials cache when requested to get user/group info by dbus-daemon.
I tried to create a credentials cache that was owned by the messagebus user (I believe that this is the user that the dbus daemon runs under, based on what ps tells me), and put KRB5CCNAME="/path/to/cache" environment variable in /etc/default/dbus, but that did not solve the problem.
Any ideas? Here's a snip from auth.log:
Oct 9 20:24:49 <host> dbus-daemon: nss_ldap: reconnecting to LDAP server...
Oct 9 20:24:49 <host> dbus-daemon: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (No credentials cache found)
Oct 9 20:24:49 <host> dbus-daemon: nss_ldap: failed to bind to LDAP server ldap://<server.fqdn>/: Local error
Oct 9 20:24:49 <host> dbus-daemon: nss_ldap: reconnecting to LDAP server (sleeping 1 seconds)...
Oct 9 20:24:50 <host> dbus-daemon: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (No credentials cache found)
Oct 9 20:24:50 <host> dbus-daemon: nss_ldap: failed to bind to LDAP server ldap://<server.fqdn>/: Local error
Oct 9 20:24:50 <host> dbus-daemon: nss_ldap: could not search LDAP server - Server is unavailable
I've got Kerberos working properly, and I'm using it for authentication for all hosts on my network. I recently configured my OpenLDAP directory (running on Ubunt 8.04 Server) to start using Kerberos for authentication.
I've been partially successful: I can search the directory, and I've been able to configure my hosts to authenticate correctly, so they can get user and group information from the directory. The usual "getent passwd" and "ldapwhoami" tests pass, both as a standard user, and as root.
However, I still have a bit of an issue with daemons on my Jaunty desktops. In particular, I'm not sure how to configure the DBus daemon to properly authenticate using Kerberos. I keep getting message in /var/log/auth.log that nss_ldap couldn't find a credentials cache when requested to get user/group info by dbus-daemon.
I tried to create a credentials cache that was owned by the messagebus user (I believe that this is the user that the dbus daemon runs under, based on what ps tells me), and put KRB5CCNAME="/path/to/cache" environment variable in /etc/default/dbus, but that did not solve the problem.
Any ideas? Here's a snip from auth.log:
Oct 9 20:24:49 <host> dbus-daemon: nss_ldap: reconnecting to LDAP server...
Oct 9 20:24:49 <host> dbus-daemon: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (No credentials cache found)
Oct 9 20:24:49 <host> dbus-daemon: nss_ldap: failed to bind to LDAP server ldap://<server.fqdn>/: Local error
Oct 9 20:24:49 <host> dbus-daemon: nss_ldap: reconnecting to LDAP server (sleeping 1 seconds)...
Oct 9 20:24:50 <host> dbus-daemon: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (No credentials cache found)
Oct 9 20:24:50 <host> dbus-daemon: nss_ldap: failed to bind to LDAP server ldap://<server.fqdn>/: Local error
Oct 9 20:24:50 <host> dbus-daemon: nss_ldap: could not search LDAP server - Server is unavailable