Originally posted by: Tin_Cup
After implementing freeipa on two systems, sudo refuses to look at the freepipa ldap for rights. It immediatly fails with:
$ sudo -l
sudo: you do not exist in the passwd database
Which is obvious, because I am logged in through an ldap account. I am logged in and other tools know my name, so I can conclude the ldap itself is working. Also, several other similar servers work fine. So the problem is (for now) limited to two systems.
Sudo is showing different behavior for different users:
As root:
XXXXXXXX:/home/root# sudo -l
sudo: LDAP Config Summary
sudo: ===================
…
*****Snipped a lot of log output showing working connection to ldap
…
sudo: result now has 0 entries
Matching Defaults entries for root on SUCENA61:
logfile=/var/log/sudo.log
User root may run the following commands on SUCENA61:
(ALL) ALL
SUCENA61:/home/root#
As our local user fallback:
XXXXXXXX.DOMAIN.DOMAIN.TOPLEVEL:/home/fallback$ sudo -l
sudo: LDAP Config Summary
sudo: ===================
…
*****Snipped a lot of log output showing working connection to ldap
…
sudo: result now has 0 entries
sudo: PAM account management error: System error
XXXXXXXX.DOMAIN.DOMAIN.TOPLEVEL:/home/fallback$
As logged in ldap user:
login as: me
Using keyboard-interactive authentication.
me's Password:
1 unsuccessful login attempt since last login.
Last unsuccessful login: Tue Aug 20 11:13:11 CEST 2019 on ssh from ww.xx.yy.zz
Last login: Tue Aug 27 16:16:57 CEST 2019 on ssh from ww.xx.yy.zz
*******************************************************************************
* WAARSCHUWING: U staat op het punt om toegang te krijgen tot een door ons *
...
Bladiebladiebla
...
*******************************************************************************
$ sudo -l
sudo: you do not exist in the passwd database
$
And last but not least, logged in as root en su-ed to me:
:/home/root#
# su - me
$ sudo -l
sudo: LDAP Config Summary
sudo: ===================
sudo: adding search result
sudo: result now has 3 entries
sudo: ldap search '(&(objectClass=sudoRole)(sudoUser=*)(sudoUser=+*))'
sudo: searching from base 'ou=sudoers,dc=dcdomain,dc=dcdomain,dc=org'
sudo: adding search result
sudo: result now has 3 entries
sudo: sorting remaining 3 entries
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Sorry, try again.
Sorry, try again.
sudo: 3 incorrect password attempts
fileset versions:
GSKit8.gskcrypt32.ppc.rte
8.0.50.71 C F IBM GSKit Cryptography Runtime
GSKit8.gskcrypt64.ppc.rte
8.0.50.71 C F IBM GSKit Cryptography Runtime
GSKit8.gskssl32.ppc.rte 8.0.50.71 C F IBM GSKit SSL Runtime With
GSKit8.gskssl64.ppc.rte 8.0.50.71 C F IBM GSKit SSL Runtime With
idsldap.clt32bit64.rte 6.4.0.11 C F Directory Server - 32 bit
idsldap.clt64bit64.rte 6.4.0.11 C F Directory Server - 64 bit
idsldap.clt_max_crypto32bit64.rte
idsldap.clt_max_crypto64bit64.rte
idsldap.cltbase64.adt 6.4.0.11 C F Directory Server - Base Client
idsldap.cltbase64.rte 6.4.0.11 C F Directory Server - Base Client
idsldap.cltjava64.rte 6.4.0.11 C F Directory Server - Java Client
idsldap.license64.rte 6.4.0.11 C F Directory Server - License
idsldap.msg64.en_US 6.4.0.11 C F Directory Server - Messages -
krb5.client.rte 1.6.0.3 C F Network Authentication Service
krb5.client.samples 1.6.0.3 C F Network Authentication Service
krb5.doc.en_US.html 1.6.0.3 C F Network Auth Service HTML
krb5.doc.en_US.pdf 1.6.0.3 C F Network Auth Service PDF
krb5.lic 1.6.0.3 C F Network Authentication Service
krb5.msg.en_US.client.rte 1.6.0.3 C F Network Auth Service Client
krb5-libs 1.16.1-2 C R The shared libraries used by
relevant RPM's versions:
sudo-1.8.27-2.ppc
gettext-0.19.8.1-3.ppc
openldap-2.4.46-1.ppc
any idea what/where is wrong?