{"id":364,"date":"2013-09-15T10:33:54","date_gmt":"2013-09-15T14:33:54","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=364"},"modified":"2014-08-09T22:51:56","modified_gmt":"2014-08-10T02:51:56","slug":"apache-active-directory-authentication","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2013\/09\/15\/apache-active-directory-authentication\/","title":{"rendered":"Apache Active Directory authentication"},"content":{"rendered":"<p>Add this to \/etc\/ldap\/ldap.conf:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">REFERRALS off<\/pre>\n<p>Then add this to a <Location> block:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n AuthLDAPBindDN &quot;ApacheUser@example.com&quot;\r\n AuthLDAPBindPassword &quot;the password used for apache lookups&quot;\r\n AuthLDAPURL &quot;ldap:\/\/192.168.88.2:389\/dc=example,dc=com?sAMAccountName?sub?(objectClass=user)&quot; NONE\r\n\r\n AuthzLDAPAuthoritative off\r\n AuthBasicProvider ldap\r\n AuthType Basic\r\n AuthName &quot;Please enter your computer logon (Active Directory) to enter.&quot;\r\n # Important, otherwise you get &quot;(9)Bad file descriptor: Could not open password file: (null)&quot;\r\n AuthUserFile \/dev\/null\r\n Require ldap-group cn=Users\r\n Require valid-user\r\n<\/pre>","protected":false},"excerpt":{"rendered":"<p>Add this to \/etc\/ldap\/ldap.conf: Then add this to a block:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[856,857,16,862],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/364"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=364"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/364\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}