Hello Ayappan,
thanks for your quick reply. We are using SLES 12 & 15 in our environment and here sudo is using the ldap.conf file, that's why I was asking.
Its clear now. Thanks for your explanation.
Best regards,
Joerg
------------------------------
Joerg Kauke
Unix Administrator
COOP Switzerland
------------------------------
Original Message:
Sent: Tue May 25, 2021 09:42 AM
From: Ayappan P
Subject: sudo_ids with IBM LDAP 6.4 shows errors in daemon.log
We won't decide anything by ourselves. We follow the linux world.
I see recent Ubuntu & RHEL uses /etc/sudo-ldap.conf . What is the linux world you are talking about ?
------------------------------
Ayappan P
Original Message:
Sent: Tue May 25, 2021 05:28 AM
From: Joerg Kauke
Subject: sudo_ids with IBM LDAP 6.4 shows errors in daemon.log
Dear Ayappan,
I have to come back to you again...
May I ask why you decided to create the sudo-ldap.conf instead of using the ldap.cfg? In the linux world sudo is using the standard ldap configuration file, what is ldap.conf...
Thanks thanks in advance your your time and explanation...
best regards,
Joerg
------------------------------
Joerg Kauke
Unix Administrator
COOP Switzerland
Original Message:
Sent: Wed May 19, 2021 02:16 AM
From: Ayappan P
Subject: sudo_ids with IBM LDAP 6.4 shows errors in daemon.log
sudo generally don't use ldap.cfg file. That is how it is built.
You can see the configure options by invoking "sudo -V".
.....
ldap.conf path: /etc/sudo-ldap.conf
.....
You may want to look into the doc --> https://www.sudo.ws/man/1.8.17/sudoers.ldap.man.html#Configuring_ldap.conf
------------------------------
Ayappan P
Original Message:
Sent: Tue May 18, 2021 08:10 AM
From: Joerg Kauke
Subject: sudo_ids with IBM LDAP 6.4 shows errors in daemon.log
Dear Team,
we found an error message spamming in the daemon.log every time sudo is used:
May 18 13:20:39 svrpnim daemon:warn|warning secldapclntd: 3001-718 Failed to search (&(objectclass=nisnetgroup)(cn=))) from the LDAP server.
May 18 13:20:41 svrpnim daemon:warn|warning secldapclntd: 3001-718 Failed to search (&(objectclass=nisnetgroup)(cn=))) from the LDAP server.
May 18 13:20:42 svrpnim daemon:warn|warning secldapclntd: 3001-718 Failed to search (&(objectclass=nisnetgroup)(cn=))) from the LDAP server.
May 18 13:20:44 svrpnim daemon:warn|warning secldapclntd: 3001-718 Failed to search (&(objectclass=nisnetgroup)(cn=))) from the LDAP server.
We now found out, that sudo_ids seems not to check the /etc/security/ldap/ldap.cfg file for further ldap configurations.
So we copied following line into sudo-ldap.conf and it seems to be the solution for us:
netgroup_base ou=NETGROUP,ou=UNIXAUTH,ou=APPLIKATIONEN,ou=SERVICES,ou=...
Why does sudo not use the ldap.cfg config file?
best regards,
Joerg
------------------------------
Joerg Kauke
Unix Administrator
COOP Switzerland
------------------------------
#AIXOpenSource