<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><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:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-AU link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoPlainText>Hi All,<o:p></o:p></p><p class=MsoPlainText>                I’m having some issues with setting up ldap auth for an apache webserver. In short I have an IPA server that seems to be working correctly, it is currently acting and a central authentication server for our Linux server environment. What I’m trying to do is get LDAP Auth up for our web based services.<o:p></o:p></p><p class=MsoPlainText>The test environment is all CentOS 6.5 with the following config<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>IPA server with an LDAP bind user set up as per http://www.freeipa.org/page/Apache_Group_Based_Authorization without the kerberos component.<o:p></o:p></p><p class=MsoPlainText>There is a single web directory /var/www/html/webtest with a single index.htlm file and a .htaccess file with the following contents.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText># Make sure you're using HTTPS, or anyone can read your LDAP password.<o:p></o:p></p><p class=MsoPlainText># SSLRequireSSL<o:p></o:p></p><p class=MsoPlainText>Order deny,allow<o:p></o:p></p><p class=MsoPlainText>Deny from All<o:p></o:p></p><p class=MsoPlainText>AuthName "Example Authorisation"<o:p></o:p></p><p class=MsoPlainText>AuthType Basic<o:p></o:p></p><p class=MsoPlainText>AuthBasicProvider ldap<o:p></o:p></p><p class=MsoPlainText>AuthzLDAPAuthoritative on<o:p></o:p></p><p class=MsoPlainText>AuthLDAPUrl "ldaps://ipa.example.com:636/dc=example,dc=com?uid"<o:p></o:p></p><p class=MsoPlainText>AuthLDAPBindDN "uid=webapps,cn=sysaccounts,cn=etc, dc=example,dc=com"<o:p></o:p></p><p class=MsoPlainText>AuthLDAPBindPassword "<password removed>"<o:p></o:p></p><p class=MsoPlainText>Require valid-user<o:p></o:p></p><p class=MsoPlainText>Satisfy any<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>---------------------------------------------------------------------------------------<o:p></o:p></p><p class=MsoPlainText>When I try to access the web page I get a basic auth prompt and in the ipa server logs I get the following<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>[03/Apr/2014:12:26:22 +1100] conn=1689 fd=83 slot=83 SSL connection from 10.0.0.11 to 10.0.0.3<o:p></o:p></p><p class=MsoPlainText>[03/Apr/2014:12:26:22 +1100] conn=1689 SSL 256-bit AES<o:p></o:p></p><p class=MsoPlainText>[03/Apr/2014:12:26:22 +1100] conn=1689 op=0 BIND dn="uid=webapps,cn=sysaccounts,cn=etc,dc=example,dc=com" method=128 version=3<o:p></o:p></p><p class=MsoPlainText>[03/Apr/2014:12:26:22 +1100] conn=1689 op=0 RESULT err=0 tag=97 nentries=0 etime=0 dn="uid=webapps,cn=sysaccounts,cn=etc, dc=example,dc=com"<o:p></o:p></p><p class=MsoPlainText>[03/Apr/2014:12:26:22 +1100] conn=1689 op=1 SRCH base=" dc=example,dc=com" scope=2 filter="(&(objectClass=*)(uid=dtaylor))" attrs="uid"<o:p></o:p></p><p class=MsoPlainText>[03/Apr/2014:12:26:22 +1100] conn=1689 op=1 RESULT err=0 tag=101 nentries=1 etime=0 notes=U<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>---------------------------------------------------------------------------------------<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Any help is greatly appreciated.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Best regards<o:p></o:p></p><p class=MsoPlainText>David Taylor<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>