Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache 2 on Ubuntu 10.10 - AD Authentication

Status
Not open for further replies.

peterlyttle

Technical User
Nov 6, 2006
139
GB
Hello,

If someone could help me out it would be much appreciated as I keep getting a 500 Internal Server Error with every config/tutorial I try. I'm trying to get GestioIP Manager working with AD Group Authentication.

/var/ is where the site is located

/etc/apache2/conf.d/gestioip.conf
Has the following-
Code:
<Directory "/var/[URL unfurl="true"]www/gestioip">[/URL]
        AddHandler cgi-script .cgi
        AddDefaultCharset utf8
        AllowOverride None
        DirectoryIndex index.cgi
        Options ExecCGI
        Order allow,deny
        Allow from all

        AuthLDAPBindDN CN=BINDACCOUNT,OU=TEST2,OU=TEST,OU=LONDON,DC=DOMAIN,DC=DOMAIN,DC=com
        AuthLDAPBindPassword BINDPASSWORD

        AuthLDAPURL ldap://10.10.10.10:389/DC=DOMAIN,DC=DOMAIN,DC=COM?sAMAccountName?sub?(objectClass=*)

        AuthType Basic
        AuthName "GestioIP - Authentication with AD account"
        AuthBasicProvider ldap

        AuthLDAPGroupAttributeIsDN on
        require ldap-group "CN=DOMAIN_GROUP,OU=DG Groups,OU=Groups,DC=DOMAIN,DC=DOMAIN,DC=com"

        # uncomment next line if you get error "(9)Bad file descriptor: Could not open password file: (null)"
        # AuthUserFile /dev/null


        ErrorDocument 401 /gestioip/errors/error401.html
        ErrorDocument 403 /gestioip/errors/error403.html
        ErrorDocument 404 /gestioip/errors/error404.html
        ErrorDocument 500 /gestioip/errors/error500.html
</Directory>

<Directory "/var/[URL unfurl="true"]www/gestioip/res">[/URL]
        AddHandler cgi-script .cgi
        AddDefaultCharset utf8
        AllowOverride None
        Options ExecCGI
        Order allow,deny
        Allow from all

        AuthLDAPBindDN "CN=BINDACCOUNT,OU=TEST2,OU=TEST,OU=LONDON,DC=DOMAIN,DC=DOMAIN,DC=com"
        AuthLDAPBindPassword BINDPASSWORD
        AuthLDAPURL "ldap://10.10.10.10:389/DC=DOMAIN,DC=DOMAIN,DC=COM?sAMAccountName?sub?(objectClass=*)"

        AuthType Basic
        AuthName "GestioIP - Authentication with AD account"
        AuthBasicProvider ldap

        require ldap-group "CN=DOMAIN_GROUP,OU=DG Groups,OU=Groups,DC=DOMAIN,DC=DOMAIN,DC=com"


        # uncomment next line if you get error "(9)Bad file descriptor: Could not open password file: (null)"
        # AuthUserFile /dev/null


        ErrorDocument 401 /gestioip/errors/error401.html
        ErrorDocument 403 /gestioip/errors/error403.html
        ErrorDocument 404 /gestioip/errors/error404.html
        ErrorDocument 500 /gestioip/errors/error500.html
</Directory>

<Directory "/var/[URL unfurl="true"]www/gestioip/priv">[/URL]
        AddDefaultCharset utf8
        AllowOverride None
        Order deny,allow
        Deny from all
        ErrorDocument 401 /gestioip/errors/error401.html
        ErrorDocument 403 /gestioip/errors/error403.html
        ErrorDocument 404 /gestioip/errors/error404.html
        ErrorDocument 500 /gestioip/errors/error500.html
</Directory>
<Directory "/var/[URL unfurl="true"]www/gestioip/modules">[/URL]
        AddDefaultCharset utf8
        AllowOverride None
        Order deny,allow
        Deny from all
        ErrorDocument 401 /gestioip/errors/error401.html
        ErrorDocument 403 /gestioip/errors/error403.html
        ErrorDocument 404 /gestioip/errors/error404.html
        ErrorDocument 500 /gestioip/errors/error500.html
</Directory>

<Directory /var/[URL unfurl="true"]www/gestioip/errors>[/URL]
        AddDefaultCharset utf8
        AllowOverride None
        Satisfy any
        Allow from all
        ErrorDocument 401 /gestioip/errors/error401.html
        ErrorDocument 403 /gestioip/errors/error403.html
        ErrorDocument 404 /gestioip/errors/error404.html
        ErrorDocument 500 /gestioip/errors/error500.html
</Directory>

Anyone ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top