LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-13-2009, 06:29 PM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
[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

Last edited by noir911; 07-16-2009 at 06:12 AM.
 
Old 07-17-2009, 10:35 PM   #2
TheMadIndian
Member
 
Registered: Dec 2007
Distribution: Fedora Slackware CentOS slax RHEL
Posts: 117

Rep: Reputation: 23
Quote:
Originally Posted by noir911 View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Autologins; Multiple Users; Multiple Sessions mrclisdue Linux - Desktop 1 09-26-2007 05:50 AM
.htaccess help sgware General 1 12-10-2006 01:52 PM
.htaccess Help GUIPenguin Linux - Security 6 02-22-2005 02:25 PM
.htaccess tailine Linux - Newbie 27 06-16-2003 07:27 AM
htaccess help skillcoyne Linux - General 4 04-02-2003 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration