<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
On Wed, 2013-09-11 at 11:21 +0200, Pavel Březina wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On 09/09/2013 07:32 PM, Dean Hunter wrote:
<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> On Mon, 2013-09-09 at 11:23 +0200, Pavel Březina wrote:</FONT>
<FONT COLOR="#737373">>> On 09/08/2013 01:35 AM, Dmitri Pal wrote:</FONT>
<FONT COLOR="#737373">>>> On 09/07/2013 02:11 PM, Christian Horn wrote:</FONT>
<FONT COLOR="#737373">>>>> On Sat, Sep 07, 2013 at 12:06:37PM -0500, Dean Hunter wrote:</FONT>
<FONT COLOR="#737373">>>>>> Are [1] and[2] still the current and best sources of</FONT>
<FONT COLOR="#737373">>>>>> information for configuring sudo for use with the current</FONT>
<FONT COLOR="#737373">>>>>> release of FreeIPA on Fedora 19?</FONT>
<FONT COLOR="#737373">>>>>></FONT>
<FONT COLOR="#737373">>>>>> 1.</FONT>
<FONT COLOR="#737373">>>>>> <A HREF="http://docs.fedoraproject.org/en-US/Fedora/18/html/FreeIPA_Guide/sudo.html">http://docs.fedoraproject.org/en-US/Fedora/18/html/FreeIPA_Guide/sudo.html</A></FONT>
<FONT COLOR="#737373">>></FONT>
<FONT COLOR="#737373">>>>>></FONT>
<FONT COLOR="#737373">>>> 2.</FONT>
<FONT COLOR="#737373">>>>>> <A HREF="http://www.freeipa.org/images/7/77/Freeipa30_SSSD_SUDO_Integration.pdf">http://www.freeipa.org/images/7/77/Freeipa30_SSSD_SUDO_Integration.pdf</A></FONT>
<FONT COLOR="#737373">>></FONT>
<FONT COLOR="#737373">>>>>></FONT>
<FONT COLOR="#737373">>> There is also the Identity_Management_Guide as part of the RHEL</FONT>
<FONT COLOR="#737373">>>>> product documentation:</FONT>
<FONT COLOR="#737373">>>>> <A HREF="https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html-single/Identity_Management_Guide/index.html">https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html-single/Identity_Management_Guide/index.html</A></FONT>
<FONT COLOR="#737373">>></FONT>
<FONT COLOR="#737373">>>>></FONT>
<FONT COLOR="#737373">> This and the pdf above are the latest word in this area.</FONT>
<FONT COLOR="#737373">>></FONT>
<FONT COLOR="#737373">>> Hi, those documents describes configuration for SSSD 1.9. Although</FONT>
<FONT COLOR="#737373">>> it is still valid, we have simplified configuration for IPA</FONT>
<FONT COLOR="#737373">>> provider in 1.10.</FONT>
<FONT COLOR="#737373">>></FONT>
<FONT COLOR="#737373">>> The most up to date document for your version of SSSD is always</FONT>
<FONT COLOR="#737373">>> man sssd-sudo.</FONT>
<FONT COLOR="#737373">>></FONT>
<FONT COLOR="#737373">>> _______________________________________________ Freeipa-users</FONT>
<FONT COLOR="#737373">>> mailing list <A HREF="mailto:Freeipa-users@redhat.com">Freeipa-users@redhat.com</A></FONT>
<FONT COLOR="#737373">>> <<A HREF="mailto:Freeipa-users@redhat.com">mailto:Freeipa-users@redhat.com</A>></FONT>
<FONT COLOR="#737373">>> <A HREF="https://www.redhat.com/mailman/listinfo/freeipa-users">https://www.redhat.com/mailman/listinfo/freeipa-users</A></FONT>
<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> Thank you.  Please verify that I have correctly understood your note.</FONT>
<FONT COLOR="#737373">>  Your slides from 12-20-2012 applied to SSSD 1.9 and included a</FONT>
<FONT COLOR="#737373">> reference to the manual pages, which I now understand, as well as</FONT>
<FONT COLOR="#737373">> this example configuration:</FONT>
<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> sudo_provider = ldap ldap_uri = ldap://ipa.example.com</FONT>
<FONT COLOR="#737373">> ldap_sudo_search_base = ou=sudoers,dc=example,dc=com ldap_sasl_mech =</FONT>
<FONT COLOR="#737373">> GSSAPI ldap_sasl_authid = host/hostname.example.com ldap_sasl_realm =</FONT>
<FONT COLOR="#737373">> EXAMPLE.COM krb5_server = ipa.example.com</FONT>
<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> I have used this configuration with good results.  However, reading</FONT>
<FONT COLOR="#737373">> "man sssd-sudo" from sssd-1.9.5-2.fc18.x86_64 I find this paragraph:</FONT>
<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> When the SSSD is configured to use the IPA provider, the sudo</FONT>
<FONT COLOR="#737373">> provider is automatically enabled. The sudo search base is configured</FONT>
<FONT COLOR="#737373">> to use the compat tree (ou=sudoers,$DC).</FONT>

I forgot that the configuration was simplified also in 1.9. You can just
stick with contents of sssd-sudo. I.e. you only need to put sudo to
"services" (there's an RFE to do it automatically by ipa-client-install)
and "sudoers: files sss" to /etc/nsswitch.conf

<FONT COLOR="#737373">> May I suggest that you change "IPA provider" to "IPA as the ID</FONT>
<FONT COLOR="#737373">> provider"?  There are a number of providers identified in sssd.conf</FONT>
<FONT COLOR="#737373">> and most of them are configured to use IPA.</FONT>

This is a valid point, thanks.

<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> Testing shows that the only change now required to sssd.conf is the</FONT>
<FONT COLOR="#737373">> addition of sudo to the services list in the sssd section [sssd]:</FONT>
<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> services = autofs, nss, pam, ssh, sudo</FONT>
<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> Add to this the one line change in nsswitch.conf</FONT>
<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> sudoers:    files sss</FONT>
<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> and I am done.</FONT>

Correct.

_______________________________________________
Freeipa-users mailing list
<A HREF="mailto:Freeipa-users@redhat.com">Freeipa-users@redhat.com</A>
<A HREF="https://www.redhat.com/mailman/listinfo/freeipa-users">https://www.redhat.com/mailman/listinfo/freeipa-users</A>
</PRE>
</BLOCKQUOTE>
<BR>
Nope, there is still one step remaining.  nisdomainname must be configured:<BR>
<BR>
</BODY>
</HTML>