I've done a bit more troubleshooting, and narrowed the problem down
some. I think it has to do with the order system services are started
relative to PAM, or some permissions setting within PAM. Here's why:

In startkde, there is a section that begins with:
# D-Bus autolaunch is broken
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
  /etc/init.d/dbus start
  eval `dbus-launch --sh-syntax --exit-with-session`
fi
if qdbus >/dev/null 2>/dev/null; then
  : # ok
else
...

If I run the command inside the eval as a regular user (logged in and
authenticated via ldap), it works fine. If I eval it and then run qdbus,
that works fine too. If, however, I echo the output of those same
commands when run from within startkde (by kdm-kde4), it appears that
they're failing. They are run as the same user, too, which strikes me as
extremely odd.

Information that might be important:
bind_policy soft
- is set in ldap.conf. Appears to be important for user authentication by the 
ldap server.
Also in ldap.conf, the following are set:
nss_base_passwd ou=People,dc=cssb,dc=utexas,dc=edu?one
nss_base_shadow ou=People,dc=cssb,dc=utexas,dc=edu?one
nss_base_group ou=Groups,dc=cssb,dc=utexas,dc=edu?one
nss_base_aliases ou=Aliases,dc=cssb,dc=utexas,dc=edu?one
nss_base_netgroup ou=Netgroup,dc=cssb,dc=utexas,dc=edu?one
nss_map_attribute rfc2307attribute mapped_attribute
nss_map_objectclass rfc2307objectclass mapped_objectclass

I haven't tried knocking out individual lines to see which are mission
critical, but I suspect the first three at least are.

There's also an automatically-added line at the end of ldap.conf,
beginning with nss_initgroups_ignoreusers, which includes messagebus.

/etc/pam.d/kdm-kde4 (note: NOT /etc/pam.d/kdm as the file seems to think it is)
auth required pam_nologin.so
auth required pam_env.so readenv=1
auth required pam_env.so readenv=1 envfile=/etc/default/locale
auth sufficient pam_ldap.so # exactly the same results without this line
@include common-auth
session required pam_limits.so
@include common-account
@include common-password
@include common-session

The included files are unmodified.

Note that my /home directory is mounted by nfs (based on ldap auth), and
is on another machine. Gnome, kde3 both work fine (ran from kdm-kde4).

Any other information that I can supply which might help, please let me
know. I'm eager to try kde4, and this is all rather frustrating.

(Oh, and typos in the config lines above are *probably* my own since I'm
re-typing them from a terminal on another computer.)

** Also affects: pam
   Importance: Undecided
       Status: New

-- 
[Hardy] KDE4 logon failure: 'startkde: Could not start D-Bus. Check your 
installation.'
https://bugs.launchpad.net/bugs/187918
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to