LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   .htaccess/ Multiple OUs (AD) (https://www.linuxquestions.org/questions/linux-server-73/htaccess-multiple-ous-ad-739853/)

noir911 07-13-2009 06:29 PM

[Resolved] .htaccess/ Multiple OUs (AD)
 
How can I add multiple OUs in the .htaccess file? It seems that the second OU always takes precedence over the first
one. I could use MS Global Catalogue server on port 3268 but I just want to add another OU, not give access to every one.

Here is my .htaccess. Thanks for any help.

Code:


AuthName "Company"
AuthType Basic
AuthLDAPURL ldap://ad.company.com:389/ou=staff,ou=marketing,dc=ad,dc=company,dc=com?sAMAccountName?sub             
AuthLDAPURL ldap://ad.company.com:389/ou=Process,ou=marketing,dc=ad,dc=company,dc=com?sAMAccountName?sub       
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
require valid-user


TheMadIndian 07-17-2009 10:35 PM

Quote:

Originally Posted by noir911 (Post 3606630)
How can I add multiple OUs in the .htaccess file? It seems that the second OU always takes precedence over the first
one. I could use MS Global Catalogue server on port 3268 but I just want to add another OU, not give access to every one.

Here is my .htaccess. Thanks for any help.

Code:


AuthName "Company"
AuthType Basic
AuthLDAPURL ldap://ad.company.com:389/ou=staff,ou=marketing,dc=ad,dc=company,dc=com?sAMAccountName?sub             
AuthLDAPURL ldap://ad.company.com:389/ou=Process,ou=marketing,dc=ad,dc=company,dc=com?sAMAccountName?sub       
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
require valid-user


You can drop the sub OUs and create a group in marketing and add the users you require to that group and then add this line to your htaccess file
Require ldap-group cn=group_that_needs_access,ou=marketing,dc=ad,dc=company,dc=com


All times are GMT -5. The time now is 08:35 PM.