<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoPlainText">I have the exact same issue... my cookbook/runbook instructions for setting up a pulp server require setting up users with passwords that are never actually used. The users are created that way so that they can be added to the admin group. If the LDAP feature is deprecated, there should be a better way to manage users via Apache auth groups, but at this point it doesn't seem that way.</p><p class="MsoPlainText"> </p><p class="MsoPlainText">On a similar topic... Here is a code snippet related to some changes I made to the Apache auth section to allow LDAP auth when using the pulp-admin client. Notice that I'm using the User-Agent header to determine if LDAP auth is required, and I'm also defaulting apache auth when the login page is requested. This allows LDAP auth to work when requesting a cert from the pulp-admin client and also for the REST api. This also works when wget/curl calls submit data to pulp.</p><p class="MsoPlainText"> </p><p class="MsoPlainText"><Files webservices.wsgi></p><p class="MsoPlainText">    # pass everything that isn't a Basic auth request through to Pulp</p><p class="MsoPlainText">    SetEnvIf Request_URI "^/pulp/api/v2/actions/login/" USE_APACHE_AUTH=1</p><p class="MsoPlainText">    SetEnvIfNoCase ^User-Agent$ .+ USE_APACHE_AUTH=1</p><p class="MsoPlainText">    Order allow,deny</p><p class="MsoPlainText">    Allow from env=!USE_APACHE_AUTH</p><p class="MsoPlainText">    Satisfy Any</p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span></p><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a href="mailto:pulp-list-bounces@redhat.com">pulp-list-bounces@redhat.com</a> [mailto:<a href="mailto:pulp-list-bounces@redhat.com">pulp-list-bounces@redhat.com</a>] <b>On Behalf Of </b>Kodiak Firesmith<br><b>Sent:</b> Thursday, September 01, 2016 2:46 PM<br><b>To:</b> Vladimir Vasilev <<a href="mailto:vvasilev@redhat.com">vvasilev@redhat.com</a>><br><b>Cc:</b> pulp-list <<a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a>><br><b>Subject:</b> Re: [Pulp-list] external authentication/authorization</span></p><p class="MsoNormal"> </p><div><p class="MsoNormal">I'm pretty sure the answer in Pulp's current form is: no.  </p><div><p class="MsoNormal">But your request might be a great suggestion to make in an earlier (June? July?) thread requesting feedback on Pulp 3.x auth - it'll be completely different so it's a blank slate to work with.  Please check out the archives and reply to that thread with your auth needs and wants.  </p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">As an Active Directory user (mod_auth_gssapi), I agree that being able to tie in AD names and groups in authorization would be a great improvement.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal"> - Kodiak</p></div></div><div><p class="MsoNormal"> </p><div><p class="MsoNormal">On Thu, Sep 1, 2016 at 3:47 PM, Vladimir Vasilev <<a href="mailto:vvasilev@redhat.com" target="_blank">vvasilev@redhat.com</a>> wrote:</p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p class="MsoNormal">Hi all,<br><br>I'm trying to setup Pulp with external authentication and authorization<br>against LDAP server.<br>According to the docs direct LDAP access from pulp is deprecated so I<br>followed "Apache Preauthentication" [1]<br>Authentication works fine, pulp is trusting apache httpd with<br>REMOTE_USER variable set.<br>Problem is that the same LDAP user needs to exist in the internal pulp<br>database as well.<br><br>Is there a way to move both authentication and authorization to external<br>provider like LDAP?<br>At the end of the day I want to grant admin access to all LDAP accounts<br>which are member of particular group (memberOf attribute) without making<br>local pulp accounts.<br><br>Thanks,<br>Vova<br><br>[1] <a href="https://docs.pulpproject.org/user-guide/authentication.html" target="_blank">https://docs.pulpproject.org/user-guide/authentication.html</a><br><br><br><br>_______________________________________________<br>Pulp-list mailing list<br><a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></p></blockquote></div><p class="MsoNormal"> </p></div></div></body></html>