Thank you for the feedback Phil.
sudo.ppc is the one we have. I asked the customer and assigned POSIX attributes. We now get the group name when using lsgroup but still get the same error when trying to use sudo.
Basically sudo does not even attempt to query the ldap. It seems that we need to configure ldap sudoers again for sudo config, specifically.
Original Message:
Sent: Mon December 16, 2024 05:34 AM
From: Phill Rowbottom
Subject: How to configure LDAP groups in SUDO
Hi Pantazis,
There are three sudo rpms available in the toolbox:-
sudo_noldap.ppc
sudo.ppc
sudo_ids.ppc
Which one have you installed? Sudo_noldap doesn't bind to ldap.
Yes the sudoers group will need it's POSIX attributes populated, it won't be a valid group on AIX without them.
Phill.
------------------------------
Phill Rowbottom
------------------------------
Original Message:
Sent: Sat December 14, 2024 10:55 AM
From: PANTAZIS PANTAZI
Subject: How to configure LDAP groups in SUDO
Thank you Phil for the feedback. Installed we have the "sudo" RPM, which I checked is binded with ldap. Yes the LDAP user can login on AIX just fine so no issue with that and lsuser returns the correct users for the base DN we defined.
sudoers is not the baseDN though and sudoers does not have any POSIX attributes. Should we add POSIX atributes also in "sudoers" group ?
------------------------------
PANTAZIS PANTAZI
Original Message:
Sent: Thu December 12, 2024 10:33 AM
From: Phill Rowbottom
Subject: How to configure LDAP groups in SUDO
Hi Pantazis,
Can you login with your userid from LDAP? What do you get back from "lsuser -R LDAP ALL" ? Can you do an ldapsearch with the details that you've used to configure LDAP in AIX? In my environment we just use LDAP, not KRB5LDAP and it all works nicely. But if those fundamentals aren't working, that could explain some of your issue.
I have sudo working in our environment using the sudo_nodap RPM. Our LDAP config is local to the box, not sourced from LDAP. I think that you have the sudo syntax incorrect. You don't need to specify all the "Windows Stuff" as part of the group name in sudo. Just the name of the group eg:
%sudoers ALL=(ALL) NOPASSWD: ALL
If you do an lsuser for your userid you'll see that the user and group names within AIX don't include AD/LDAP OU information in them, this is what you need to use in sudo.
Phill.
------------------------------
Phill Rowbottom