Jump to content

pass credentials between locations


boomnyc

Recommended Posts

Hi!

Hopefully smbd have a solution for this as Ive struggled for a few days to find one without any success what so ever. Id be most appreciative for any input provided!

 

Here's the scope:

 

I have 2 location(single virtual host):

/location01

/location02

 

Im using mod_ldap to secure access to both. My goal is to have users who are already authenticated against location01 not to be asked to authenticate against location02. Furthermore Id like users who are authenticated against location01 only be allowed to view location02 only if they are members of a specific group in AD.

 

Here's the conf:

        <Location /location01>

        Order deny,allow

        Deny from All

        AuthName "ldap"

        AuthType Basic

        AuthBasicProvider ldap

        AuthzLDAPAuthoritative off

        AuthLDAPUrl "ldap://somedomain.net:3268/dc=somedc,dc=net?sAMAccountName?sub?(objectClass=user)"      AuthLDAPBindDN "cn=someaccnt,ou=someou,ou=someou,dc=somedc,dc=somenet"

        AuthLDAPBindPassword "qwer1234"

        Require valid-user

        Satisfy any

        </Location>

 

        <Location /location02>

        Order deny,allow

        Deny from All

        AuthName "ldap"

        AuthType Basic

        AuthBasicProvider ldap

        AuthzLDAPAuthoritative off

        AuthLDAPUrl "ldap://somedomain.net:3268/dc=somedc,dc=net?sAMAccountName?sub?(objectClass=user)"      AuthLDAPBindDN "cn=someaccnt,ou=someou,ou=someou,dc=somedc,dc=somenet"

        AuthLDAPBindPassword "qwer1234"

        require ldap-group "cn=somegroup, ou=someGroups, ou=someou,dc=somedc,dc=somenet"

        Require valid-user

        Satisfy any

        </Location>

 

It works fine as you can imagine, however, when switching between location01(www.abc.com/locatio01) and location02(www.abc.com/locatio02) i get prompted for credentials.

 

Server version: Apache/2.2.8 (Ubuntu)

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.