I'm on debian and want sudo to use ldap instead of /etc/sudoers. Anyone have exprience doing this?
|
Modern sudo has the ability to use ldap. In my opinion, this is clunky and failureprone, but that's just my experience. http://www.gratisoft.us/sudo/readme_ldap.html I definitely prefer to use netgroups to expand local sudo configs instead of relying completely on ldap. My rule of thumb is, if it's necessary to run the server, it should be local. Only nonvital user accounts, etc go in ldap/nis/whatnot. |
|||
|
|
|
I don't think this is failureprone since you can have a local backup sudoers file, so even if your LDAP server is down you can still use SUDO on it to maintain it and so admins can restore the connexion to the LDAP server. It is very simple to do, and you will prefer having one centralized sudoers file rather than many local sudoers when you have something like more 100 servers to manage. In addition look at this, extract from the sudo website : Using LDAP for sudoers has several benefits:
|
|||
|
|
|
I was able to compile sudo with the option |
|||
|
|
|
I presume you mean to say that sudo should use ldap ;) Easiest way to do this is to grant sudo to a group via /etc/sudoers, and then control the membership of that group via ldap. |
|||||
|
|
We tried putting sudoers in ldap, but found the easiest way to manage sudo (and access controls) was to combine ldap group membership with a centralized config management tool which could push acl and sudoers files to a server or groups of servers. We use pam_access to control access to servers, and puppet to distribute files and enforce acls, but there are other config management tools like cfengine which would also work. |
|||
|
|