Hi Emiel,
Again that's because you installed sudo_ldap. Sudo_ids uses secldapclntd.....
KR,LG
Jürgen
Original Message:
Sent: 11/18/2021 4:10:00 AM
From: Emiel van ter Beek
Subject: RE: SUDO ( sudo-1.9.5p2-1.ppc) not working correctly
Also note following:
Sudo is using its own ldap configuration (/etc/ldap.conf) to bind to the ldap server, it doesn't bind through secldapclntd.
Restarting secldapclntd is irrelevant as it does not read the /etc/ldap.conf nor /etc/ldap.secret.
------------------------------
Emiel van ter Beek
------------------------------
Original Message:
Sent: Wed November 17, 2021 05:34 AM
From: Emiel van ter Beek
Subject: SUDO ( sudo-1.9.5p2-1.ppc) not working correctly
Hi Sangamesh,
I was able to fix it by adding rootbinddn to the /etc/ldap.conf and putting the pw in /etc/ldap.secret and restarting the ldap client daemon with:
restart-secldapclntd
I think something was changed on IPA (LDAP) server side....
we have to check this with the server admin
------------------------------
Emiel van ter Beek
Original Message:
Sent: Wed November 17, 2021 04:13 AM
From: Emiel van ter Beek
Subject: SUDO ( sudo-1.9.5p2-1.ppc) not working correctly
Hi Sangamesh,
Their were no version changes of openldap or other dependencies....
on LDAPSEARCH we normally need a password to get response (-D and -w)
------------------------------
Emiel van ter Beek
Original Message:
Sent: Mon November 15, 2021 09:21 AM
From: SANGAMESH MALLAYYA
Subject: SUDO ( sudo-1.9.5p2-1.ppc) not working correctly
Hi Emiel,
Not sure about the exact issue.
You mentioned that this version worked before.
Was their any change in the version of openldap or some dependencies ?
Do we also need to provide a password to have ldapserch work ?
Also please enable the LDAP debugging to see if we get more idea.
------------------------------
SANGAMESH
Original Message:
Sent: Mon November 15, 2021 06:35 AM
From: Emiel van ter Beek
Subject: SUDO ( sudo-1.9.5p2-1.ppc) not working correctly
Hi Sangamesh,
any ideas?
did some other test which results in same error message:
# /opt/freeware/bin/ldapsearch -h ********.*****.kpn.org -x -b "ou=SUDOers,dc=*****,dc=***,dc=org"
# extended LDIF
#
# LDAPv3
# base <ou=SUDOers,dc=*****,dc=***,dc=org> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# search result
search: 2
result: 48 Inappropriate authentication
text: Anonymous access is not allowed.
# numResponses: 1
------------------------------
Emiel van ter Beek
Original Message:
Sent: Fri November 12, 2021 04:25 AM
From: Emiel van ter Beek
Subject: SUDO ( sudo-1.9.5p2-1.ppc) not working correctly
Hi Sangamesh,
This version of sudo did work before.
Already enabled the debugging for sudo and see this:
Nov 12 09:42:36 sudo[6422860] <- sudo_ldap_build_pass1 @ ./ldap.c:1079 := (&(objectClass=sudoRole)(|(sudoUser=embeek)(sudoUser=#869000040)(sudoUser=%embeek)(sudoUser=%#869000040)(sudoUser=%iaas-specials-ge
neric-aix-access-all)(sudoUser=%titan-hbac-admin)(sudoUser=%titan-computer-admin)(sudoUser=%titan-sudoer-admin)(sudoUser=%titan-group-admin)(sudoUser=%titan-account-admin)(sudoUser=%titan-dns-admin)(sudoUs
er=%#869000035)(sudoUser=%#869000024)(sudoUser=%#869000023)(sudoUser=%#869000022)(sudoUser=%#869000020)(sudoUser=%#869000019)(sudoUser=%#869000017)(sudoUser=ALL)))
Nov 12 09:42:36 sudo[6422860] ldap search '(&(objectClass=sudoRole)(|(sudoUser=embeek)(sudoUser=#869000040)(sudoUser=%embeek)(sudoUser=%#869000040)(sudoUser=%iaas-specials-generic-aix-access-all)(sudoUser=
%titan-hbac-admin)(sudoUser=%titan-computer-admin)(sudoUser=%titan-sudoer-admin)(sudoUser=%titan-group-admin)(sudoUser=%titan-account-admin)(sudoUser=%titan-dns-admin)(sudoUser=%#869000035)(sudoUser=%#8690
00024)(sudoUser=%#869000023)(sudoUser=%#869000022)(sudoUser=%#869000020)(sudoUser=%#869000019)(sudoUser=%#869000017)(sudoUser=ALL)))'
Nov 12 09:42:36 sudo[6422860] searching from base 'ou=sudoers,dc=titan,dc=kpn,dc=org'
Nov 12 09:42:36 sudo[6422860] ldap search pass 1 failed: Inappropriate authentication
Nov 12 09:42:36 sudo[6422860] -> sudo_ldap_build_pass2 @ ./ldap.c:1108
Nov 12 09:42:36 sudo[6422860] <- sudo_ldap_build_pass2 @ ./ldap.c:1145 := (&(objectClass=sudoRole)(sudoUser=*)(sudoUser=+*))
Nov 12 09:42:36 sudo[6422860] ldap search '(&(objectClass=sudoRole)(sudoUser=*)(sudoUser=+*))'
Nov 12 09:42:36 sudo[6422860] searching from base 'ou=sudoers,dc=titan,dc=kpn,dc=org'
Nov 12 09:42:36 sudo[6422860] ldap search pass 2 failed: Inappropriate authentication
Any idea?
I don't want to upload a complete debug logfile for security reasons.
Regards,
Emiel
------------------------------
Emiel van ter Beek
Original Message:
Sent: Fri November 12, 2021 04:01 AM
From: SANGAMESH MALLAYYA
Subject: SUDO ( sudo-1.9.5p2-1.ppc) not working correctly
Hi Emiel,
Was this same version working before or it is the first time you are trying this sudo ?
And any previous version of sudo was working fine ?
To start with, you can create /etc/sudo.conf file with the below entries.
Debug sudo /var/log/sudo_debug.log all@debug
Debug sudoers.so /var/log/sudo_debug.log all@debug
This might give some hints.
------------------------------
SANGAMESH
Original Message:
Sent: Thu November 11, 2021 10:40 AM
From: Emiel van ter Beek
Subject: SUDO ( sudo-1.9.5p2-1.ppc) not working correctly
We can login to our AIX-servers with an useraccount.
This useraccount will be checked on a IPA-server (RedHat IDM).
After login i receive the login prompt and try to use sudo to become root with sudo su - and I receive the following messages:
/home/embeek# sudo su -
embeek's Password:
embeek is not allowed to run sudo on SAWELZ002. This incident will be reported.
suddenly this is not working anymore.
same when i check this as root :
SAWELZ002[ACC]:/var/log# sudo -lU embeek
User embeek is not allowed to run sudo on SAWELZ002.
The authentication is granted by the IPA-server (RedHat IDM)
We registered a case at RedHat (Red Hat Case 03069612) but they can't find anything on the IPA-server..
The only thing they see in the logs is the authentication for the login but no requests for sudo.
RedHat suggested to create a case at IBM, but IBM support closed case (TS007504003) with:
Since only sudo is failing, and sudo is not supported by AIX support, customer will need to use the AIX open source forum for assistance with sudo.
native AIX login with su - (from root) is working for this LDAP user, so they stated:
If LDAP auth works for native AIX programs like su/telnet/ssh, then secldapclntd is working fine.
Customer needs to show that the issue is not specific to sudo.
Any idea how to solve this issue?
Regards,
Emiel
------------------------------
Emiel van ter Beek
------------------------------