<div dir="ltr"><div>Based on (How to troubleshoot Sudo)<br></div><div><br></div><div>- Maybe i miss spoke when i said it fails completely. Rather it keeps asking for the users password which it does not accept.<br></div><div>- I do not have sudo in sssd.conf</div><div>- I do not have sudoers: sss defined in nsswitch.conf</div><div>- Per Fedora/Freeipa doc (Defining Sudo), its not immediately clear if these needs to be defined</div><div>- If this is the case then adding them might resolve my issues.</div><div>- for the special sudo rule(s). is there any way to track it via the gui? I am trying to keep track of all the configs so its not a blackhole for the next person.</div><div><br></div><div>- This is what it looks like on the web gui</div><div><img src="cid:ii_153a9ea549bb6c5a" alt="Inline image 1" width="197" height="213" style="margin-right: 0px;"><br></div><div><br></div><div><br></div><div>- This is what a clients sssd.conf looks like</div><div><div>[domain/xxxxx]</div><div><br></div><div>cache_credentials = True</div><div>krb5_store_password_if_offline = True</div><div>ipa_domain = pp</div><div>id_provider = ipa</div><div>auth_provider = ipa</div><div>access_provider = ipa</div><div>ipa_hostname = xxxxxx</div><div>chpass_provider = ipa</div><div>ipa_server = _srv_, xxxxx</div><div>ldap_tls_cacert = /etc/ipa/ca.crt</div><div>[sssd]</div><div>services = nss, pam, ssh</div><div>config_file_version = 2</div><div><br></div><div>domains = XXXXX</div><div>[nss]</div><div>homedir_substring = /home</div><div><br></div><div>[pam]</div><div>[sudo]</div><div>[autofs]</div><div>[ssh]</div><div>[pac]</div><div>[ifp]</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 24, 2016 at 1:01 PM, Jakub Hrozek <span dir="ltr"><<a href="mailto:jhrozek@redhat.com" target="_blank">jhrozek@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On 24 Mar 2016, at 17:21, Ash Alam <<a href="mailto:aalam@paperlesspost.com">aalam@paperlesspost.com</a>> wrote:<br>
><br>
> Hello<br>
><br>
> I am looking for some guidance on how to properly do sudo with Freeipa. I have read up on what i need to do but i cant seem to get to work correctly. Now with sudoers.d i can accomplish this fairly quickly.<br>
><br>
> Example:<br>
><br>
> %dev ALL=(ALL) NOPASSWD:/usr/bin/chef-client<br>
><br>
> What i have configured in Freeipa Sudo Rules:<br>
><br>
> Sudo Option: !authenticate<br>
> Who: dev (group)<br>
> Access this host: testing (group)<br>
> Run Commands: set of commands that are defined.<br>
><br>
> Now when i apply this, it still does not work as it asks for a password for the user and then fails. I am hoping to allow a group to only run certain commands without requiring password.<br>
><br>
<br>
</span>You should first find out why sudo fails completely. We have this guide that should help you:<br>
<a href="https://fedorahosted.org/sssd/wiki/HOWTO_Troubleshoot_SUDO" rel="noreferrer" target="_blank">https://fedorahosted.org/sssd/wiki/HOWTO_Troubleshoot_SUDO</a><br>
<br>
About asking for passwords -- defining a special sudo rule called 'defaults' and then adding '!authenticate' should help:<br>
Add a special Sudo rule for default Sudo server configuration:<br>
ipa sudorule-add defaults<br>
<br>
Set a default Sudo option:<br>
ipa sudorule-add-option defaults --sudooption '!authenticate'</blockquote></div><br></div>