2011-04-12 72 views
1

對於KDE和SSH,LDAP和NFS正常工作,用戶無需任何問題即可登錄。但只有LDAP用戶無法直接或通過NX客戶端登錄到GNOME桌面。LDAP用戶無法登錄gnome,但可以使用kde

當在服務器上直接登錄就顯示了這個錯誤:


Xsession: Login for is disabled 

當通過NX客戶端登錄這表明它成功,然後驗證這個彈出消息quited:


Could not connect to session bus: Failed to connect to socket /tmp/dbus-0frstajyNE: Connection refused 

我關閉這個彈出窗口和另外一個出現:


Could not acquire name on session bus 

尾巴30行o f/var/log/messages:


Apr 11 22:20:07 opensuse_11.4 sshd[5047]: error: Failed to allocate internet-domain X11 display socket. 
Apr 11 22:20:08 opensuse_11.4 sshd[5123]: Accepted password for from 127.0.0.1 port 46543 ssh2 
Apr 11 22:20:08 opensuse_11.4 sshd[5127]: Received disconnect from 127.0.0.1: 11: disconnected by user 
Apr 11 22:20:11 opensuse_11.4 sshd[5345]: Accepted password for from 127.0.0.1 port 46547 ssh2 
Apr 11 22:20:14 opensuse_11.4 kernel: [ 508.616092] start_kdeinit (5654): /proc/5654/oom_adj is deprecated, please use /proc/5654/oom_score_adj instead. 
Apr 11 22:20:30 opensuse_11.4 kernel: [ 524.991957] fuse init (API version 7.15) 
Apr 11 22:20:31 opensuse_11.4 pulseaudio[5787]: pid.c: Daemon already running. 
Apr 11 22:20:48 opensuse_11.4 sshd[5347]: Received disconnect from 127.0.0.1: 11: disconnected by user 
Apr 11 22:21:09 opensuse_11.4 sshd[5896]: Accepted publickey for nx from 
port 52235 ssh2 
Apr 11 22:21:09 opensuse_11.4 sshd[5898]: error: Failed to allocate internet-domain X11 display socket. 
Apr 11 22:21:10 opensuse_11.4 sshd[5973]: Accepted password for from 127.0.0.1 port 46564 ssh2 
Apr 11 22:21:10 opensuse_11.4 sshd[5975]: Received disconnect from 127.0.0.1: 11: disconnected by user 
Apr 11 22:21:13 opensuse_11.4 sshd[6193]: Accepted password for from 127.0.0.1 port 46568 ssh2 
Apr 11 22:21:15 opensuse_11.4 gnome-session[6458]: WARNING: Could not make bus activated clients aware of DISPLAY=:1080 environment variable: Failed to connect to socket /tmp/dbus-0frstajyNE: Connection refused 
Apr 11 22:21:15 opensuse_11.4 gnome-session[6458]: WARNING: Could not make bus activated clients aware of GNOME_DESKTOP_SESSION_ID=this-is-deprecated environment variable: Failed to connect to socket /tmp/dbus-0frstajyNE: Connection refused 
Apr 11 22:21:15 opensuse_11.4 gnome-session[6458]: WARNING: Could not make bus activated clients aware of SESSION_MANAGER=local/opensuse_11.4:@/tmp/.ICE-unix/6458,unix/opensuse_11.4:/tmp/.ICE-unix/6458 environment variable: Failed to connect to socket /tmp/dbus-0frstajyNE: Connection refused 
Apr 11 22:22:33 opensuse_11.4 gnome-session[6458]: Gtk-CRITICAL: IA__gtk_main_quit: assertion `main_loops != NULL' failed 
Apr 11 22:22:33 opensuse_11.4 gnome-session[6458]: CRITICAL: dbus_g_proxy_new_for_name: assertion `connection != NULL' failed 
Apr 11 22:23:00 opensuse_11.4 gnome-session[6458]: Gtk-CRITICAL: IA__gtk_main_quit: assertion `main_loops != NULL' failed 
Apr 11 22:23:00 opensuse_11.4 gnome-session[6458]: GLib-GObject-CRITICAL: g_object_unref: assertion `G_IS_OBJECT (object)' failed 
Apr 11 22:23:00 opensuse_11.4 gnome-session[6458]: WARNING: keycode1 not existant 
Apr 11 22:23:00 opensuse_11.4 gnome-session[6458]: WARNING: keycode2 not existant 
Apr 11 22:23:00 opensuse_11.4 gnome-session[6458]: WARNING: GSIdleMonitor: IDLETIME counter not found 
Apr 11 22:23:00 opensuse_11.4 gnome-session[6458]: CRITICAL: error getting session bus: Failed to connect to socket /tmp/dbus-0frstajyNE: Connection refused 
Apr 11 22:23:00 opensuse_11.4 gnome-session[6458]: WARNING: Unable to register presence with session bus 
Apr 11 22:23:00 opensuse_11.4 gnome-session[6458]: CRITICAL: dbus_g_proxy_new_for_name: assertion `connection != NULL' failed 
Apr 11 22:23:00 opensuse_11.4 gnome-session[6458]: WARNING: Error retrieving configuration key '/desktop/gnome/session/idle_delay': Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Error connecting: Connection refused) 
Apr 11 22:23:00 opensuse_11.4 gnome-session[6458]: CRITICAL: error getting session bus: Failed to connect to socket /tmp/dbus-0frstajyNE: Connection refused 
Apr 11 22:23:00 opensuse_11.4 sshd[6195]: Received disconnect from 127.0.0.1: 11: disconnected by user 
Apr 11 22:24:26 opensuse_11.4 su: (to root) on /dev/pts/2 

任何意見/建議非常感謝。

回答

0

我在Centos 5.6上修復了類似的問題。我遇到的第一個問題是無法使用gdm登錄屏幕來使用LDAP。

事實證明,gdm需要安全連接到LDAP服務器進行登錄身份驗證,並且由於我的自簽名證書不受信任而導致失敗。

爲了讓gdk先與我的LDAP服務器交談,我將LDAP服務器的自簽名證書文件放在/ etc/openldap/cacerts中,然後調整了我的/etc/ldap.conf文件 - 我更改了URI線使用LDAPS://和端口636,然後加入這一行的證書問題:

TLS_CACERT /etc/openldap/cacerts/ldap.pem

解決了之後,我也有類似的問題到上面描述的內容,在登錄時,我遇到了一些關於無法連接到/ tmp中某個套接字的錯誤。在設置LDAP認證之前,我一直在使用本地用戶帳戶。但是,一旦我切換到使用我的LDAP服務器,我的posix uid和gid就改變了。修復/ tmp中擁有我的舊uid和gid的所有權,爲我解決了這個問題。

相關問題