[SunRay-Users] GDM (RHEL4) unable to login SRSS 3.1 (Centos/Linux) using LDAP

James Tan jameztcc at gmail.com
Sun Apr 27 00:35:59 EEST 2008


Hi,

Managed to login from SSH, Openvpn ..etc to CENTOS 4.6 (running SRSS 
3.1) which is managed by Fedora DS 1.0.4 (on another server) for the 
users' accounts. PAM LDAP worked.

However, am unable to login via GDM as an LDAP user (shell, vpn worked) 
to the SRSS via DTU and server's console.
Am able to log in through another server's GDM (non-srss).

Thanks,
James


Errors from DTU login:
... ....
Apr 26 22:43:10 sunray gdm(pam_unix)[24278]: check pass; user unknown
Apr 26 22:43:10 sunray gdm(pam_unix)[24278]: authentication failure; 
logname= uid=0 euid=0 tty=:12 ruser= rhost=
Apr 26 22:43:10 sunray gdm-binary[24278]: pam_ldap: error trying to bind 
as user "uid=xxx,ou=xxx,ou=xxx,ou=xxx,dc=xxx,dc=xxx" (Invalid credentials)
Apr 26 22:43:12 sunray utstoraged[3198]: Restarting ...
Apr 26 22:43:13 sunray gdm-binary[24278]: Couldn't authenticate user
... ...

Errors from console login:
---
Apr 26 23:32:35 sunray gdm[3913]: pam_sunray_amgh::[DPY=0] Cannot get 
Session ID - possible console login
Apr 26 23:32:38 sunray utstoraged[3198]: Restarting ...
Apr 26 23:32:42 sunray gdm(pam_unix)[3913]: check pass; user unknown
Apr 26 23:32:42 sunray gdm(pam_unix)[3913]: authentication failure; 
logname= uid=0 euid=0 tty=:0 ruser= rhost=
Apr 26 23:32:43 sunray utstoraged[3198]: Restarting ...
Apr 26 23:32:46 sunray gdm(pam_unix)[3913]: could not identify user 
(from getpwnam(james))
Apr 26 23:32:46 sunray gdm-binary[3913]: Couldn't set acct. mgmt for james
Apr 26 23:32:46 sunray gdm[3913]: sunray_get_user:pam_sm_auth: 
ut_getTokenByDisplay failed -1 for display :0
Apr 26 23:32:48 sunray utstoraged[3198]: Restarting ...
Apr 26 23:32:52 sunray gdm[3913]: pam_sunray_amgh::[DPY=0] Cannot get 
Session ID - possible console login
Apr 26 23:32:52 sunray gdm[3913]: sunray_get_user:pam_sm_auth: 
ut_getTokenByDisplay failed -1 for display :0
Apr 26 23:32:53 sunray utstoraged[3198]: Restarting ...
Apr 26 23:32:58 sunray utstoraged[3198]: Restarting ...
Apr 26 23:32:58 sunray gdm[3913]: pam_sunray_amgh::[DPY=0] Cannot get 
Session ID - possible console login
Apr 26 23:33:03 sunray utstoraged[3198]: Restarting ..




---installed gdm (Sun Ray server)---
[root at sunray certs]# rpm -qi gdm
Name        : gdm                          Relocations: (not relocatable)
Version     : 2.4.4.7.1                         Vendor: Sun 
Microsystems, Inc.
Release     : 3                             Build Date: Sat 01 Jul 2006 
05:21:23 AM SGT
Install Date: Mon 09 Oct 2006 08:11:58 PM SGT      Build Host: 
sunray-bs-sles9.sfbay.sun.com
Group       : User Interface/X              Source RPM: 
gdm-2.4.4.7.1-3.src.rpm
Size        : 7628051                          License: LGPL/GPL
Signature   : (none)
Summary     : Sun Ray patched GNOME Display Manager.
Description :
Gdm (the GNOME Display Manager) is a highly configurable
reimplementation of xdm, the X Display Manager. Gdm allows you to log
into your system with the X Window System running and supports running
several different X sessions on your local machine at the same time.
This is a Sun-patched version of gdm version 2.4.4.7.

---strace of gdm (srss)---
open("/opt/SUNWut/lib/../lib/libldap.so.199", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/opt/SUNWut/lib/../lib/compatlinks/tls/i686/sse2/libldap.so.199", 
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/opt/SUNWut/lib/../lib/compatlinks/tls/i686/libldap.so.199", 
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/opt/SUNWut/lib/../lib/compatlinks/tls/sse2/libldap.so.199", 
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/opt/SUNWut/lib/../lib/compatlinks/tls/libldap.so.199", O_RDONLY) 
= -1 ENOENT (No such file or directory)
open("/opt/SUNWut/lib/../lib/compatlinks/i686/sse2/libldap.so.199", 
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/opt/SUNWut/lib/../lib/compatlinks/i686/libldap.so.199", O_RDONLY) 
= -1 ENOENT (No such file or directory)
open("/opt/SUNWut/lib/../lib/compatlinks/sse2/libldap.so.199", O_RDONLY) 
= -1 ENOENT (No such file or directory)
open("/opt/SUNWut/lib/../lib/compatlinks/libldap.so.199", O_RDONLY) = 5
open("/lib/security/pam_ldap.so", O_RDONLY) = 5



--strace of getent passwd (srss server)---
open("/lib/libnss_ldap.so.2", O_RDONLY) = 3
open("/etc/ldap.conf", O_RDONLY)        = 3
open("/etc/ldap.secret", O_RDONLY)      = 3
open("/etc/openldap/ldap.conf", O_RDONLY) = 3
read(3, "#\n# LDAP Defaults\n#\n\n# See ldap."..., 4096) = 320
open("/root/ldaprc", O_RDONLY)          = -1 ENOENT (No such file or 
directory)
open("/root/.ldaprc", O_RDONLY)         = -1 ENOENT (No such file or 
directory)
write(1, "ldap:x:55:55:LDAP User:/var/lib/"..., 48) = 48



---installed gdm (another non-srss server)---
[root at openvpn alias]# rpm -qi gdm
Name        : gdm                          Relocations: (not relocatable)
Version     : 2.16.0                            Vendor: CentOS
Release     : 30.el5.centos                 Build Date: Fri 23 Mar 2007 
12:22:46 AM SGT
Install Date: Wed 23 May 2007 08:06:10 PM SGT      Build Host: 
builder4.centos.org
Group       : User Interface/X              Source RPM: 
gdm-2.16.0-30.el5.centos.src.rpm
Size        : 10943804                         License: LGPL/GPL
Signature   : DSA/SHA1, Wed 04 Apr 2007 08:22:07 AM SGT, Key ID 
a8a447dce8562897
URL         : ftp://ftp.gnome.org/pub/GNOME/sources/gdm
Summary     : The GNOME Display Manager.
Description :
Gdm (the GNOME Display Manager) is a highly configurable
reimplementation of xdm, the X Display Manager. Gdm allows you to log
into your system with the X Window System running and supports running
several different X sessions on your local machine at the same time.

---strace of gdm (another non-srss server)---
open("/lib/security/pam_ldap.so", O_RDONLY) = 5
open("/usr/lib/libldap-2.3.so.0", O_RDONLY) = 5

---strace of getent (another non-srss server)---
write(1, "ldap:x:55:55:LDAP User:/var/lib/"..., 48) = 48
open("/lib/libnss_ldap.so.2", O_RDONLY) = 4
open("/etc/ldap.conf", O_RDONLY)        = 4
open("/etc/ldap.secret", O_RDONLY)      = 4
open("/etc/openldap/ldap.conf", O_RDONLY) = 4
read(4, "#\n# LDAP Defaults\n#\n\n# See ldap."..., 4096) = 333
open("/root/ldaprc", O_RDONLY)          = -1 ENOENT (No such file or 
directory)
open("/root/.ldaprc", O_RDONLY)         = -1 ENOENT (No such file or 
directory)
stat64("/etc/ldap.conf", {st_mode=S_IFREG|0644, st_size=402, ...}) = 0
stat64("/etc/ldap.conf", {st_mode=S_IFREG|0644, st_size=402, ...}) = 0


# cat /etc/pam.d/system-auth
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth        required      pam_env.so
auth        sufficient    pam_unix.so nullok try_first_pass
auth        requisite     pam_succeed_if.so uid >= 500 quiet
auth        sufficient    pam_ldap.so use_first_pass
auth        required      pam_deny.so

account     required      pam_unix.so broken_shadow
account     sufficient    pam_succeed_if.so uid < 500 quiet
account     [default=bad success=ok user_unknown=ignore] pam_ldap.so
account     required      pam_permit.so

password    requisite     pam_cracklib.so try_first_pass retry=3
password    sufficient    pam_unix.so md5 shadow nullok try_first_pass 
use_authtok
password    sufficient    pam_ldap.so use_authtok
password    required      pam_deny.so

session     optional      pam_keyinit.so revoke
session     required      pam_limits.so
session     [success=1 default=ignore] pam_succeed_if.so service in 
crond quiet use_uid
session     required      pam_unix.so
session     optional      pam_ldap.so




More information about the SunRay-Users mailing list