LDAP-Auth does not work correctly with systemd

Login or Register to Reply

Thread Tools Search this Thread
# 1  
Old 03-02-2014
LDAP-Auth does not work correctly with systemd


since the upgrade to Gnome 3.6 (now i have 3.8) the authentication over LDAP stops working. The whole machine does not start anymore. The machine boot, but no gdm and no X. I can login, with root, but then the tty hangs. When i look at ttyF12 i see a lot of systemd service the runs random, start and stop, start and stop.

The only way to avoid the problem is, at shutdown to overwrite the nsswitch.conf with

passwd:      compat
shadow:      compat
group:       compat

When machine is starting the file will overwirte with this:

passwd:      compat ldap [notfound=continue]
shadow:      compat ldap [notfound=continue]
group:       compat ldap [notfound=continue]

So it works, but at this time i see no users in GDM. I can login at TTY but not in GDM. The only way to solve this, i must set the LDAPuserID in passwd for each user. Crazy.
I have done a lot of things to solve, but i doesn't found a solution. Here are my files:

passwd:      compat ldap [notfound=continue]
shadow:      compat ldap [notfound=continue]
group:       compat ldap [notfound=continue]

#passwd:      compat
#shadow:      compat
#group:       compat

hosts:       files dns mdns6
networks:    files dns mdns6

services:    db files
protocols:   db files
rpc:         db files
ethers:      db files
netmasks:    files
netgroup:    files
bootparams:  files

automount:   files
aliases:     files

auth            sufficient      pam_ldap.so
#auth            sufficient      pam_ldap.so use_first_pass
auth            required        pam_env.so
auth            sufficient      pam_unix.so try_first_pass likeauth nullok
auth            required        pam_deny.so
#auth           optional        pam_permit.so

account         sufficient      pam_ldap.so
account         required        pam_unix.so
#account                optional        pam_permit.so

password        sufficient      pam_ldap.so use_authtok use_first_pass
password        required        pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
password        sufficient      pam_unix.so try_first_pass use_authtok nullok sha512 shadow
auth            required        pam_deny.so
#password       optional        pam_permit.so

session         required        pam_limits.so
session         required        pam_env.so
session         required        pam_unix.so
session         optional        pam_ldap.so
session         required        pam_mkhomedir.so skel=/etc/skel umask=0077
#session                optional        pam_permit.so
session        optional        pam_systemd.so

Hope anyone can help me.
Thanks and Regards.
# 2  
Old 03-04-2014
I don't use gentoo. I don't use systemd either. I think it is supposed to start services on demand and harvest unused ones. But it sounds like you have ldap screwed up. Have you checked your ldap.conf file. On RedHat it is /etc/ldap.conf.
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Why does this awk script not work correctly? gimley Shell Programming and Scripting 6 05-01-2017 05:39 AM
LDAP Client not connecting to LDAP server solaris_1977 Solaris 9 01-20-2017 09:45 AM
Work with setsid to open a session and close it correctly ASF Studio Shell Programming and Scripting 3 12-13-2016 08:23 AM
Systemd thailand UNIX for Advanced & Expert Users 1 05-09-2014 03:29 AM
Set NIC correctly , but the network does not work flako SCO 2 11-20-2013 04:19 PM
Libvirt does not work correctly anymore on my gentoo darktux UNIX for Advanced & Expert Users 4 09-07-2013 07:37 PM
Systemd Brandon9000 UNIX for Advanced & Expert Users 2 09-28-2012 03:00 PM
Auth against AD (kerberos) does not work tomys AIX 11 07-30-2012 02:11 AM
Cannot get dbx to work correctly with a running process ctote Programming 0 02-25-2011 01:29 PM
Configure Squid to use LDAP group auth to deny internet access wbdevilliers Emergency UNIX and Linux Support 1 09-16-2010 12:07 PM
Kerberos and LDAP Auth mariusb AIX 1 01-25-2010 06:53 AM
LDAP auth, secondary groups doesnt works sncr24 Red Hat 4 01-14-2009 09:26 AM
SSH + LDAP Auth Giving Fits AlexDeGruven AIX 1 08-29-2008 09:41 AM
vsft doesn't work correctly zhivko.neychev SuSE 1 06-01-2007 12:05 PM
iPlanet on HP-UX - WANT to auth aganist MS Directory Services/LDAP shuterj UNIX for Dummies Questions & Answers 1 02-18-2004 02:40 PM