LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2011, 04:25 AM   #1
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Rep: Reputation: 31
Two authentication mechanisms in apache


Is there any way to provide different methods of authentication on a apache directory (used for webDAV). I need it to use htpasswd and winbind, can't find any guides on implementing them both. Basically domain users need to be able to access the webdav and other users (who will be provided with a username and password NOT on the domain).
 
Old 02-03-2011, 01:14 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Don't know if it will be applicable to your situation but I have a Mercurial site set up to accept connections without authentication if coming from the same host and with LDAP authentication for everyone else. The connections without authentication are used for Hudson which is installed on the same server, so that it can run its builds without problems. Anybody else (developers) connecting to Mercurial need to provide their LDAP credentials. This is what I have in /etc/httpd/conf.d/mercurial.conf:
Code:
NameVirtualHost *:80

<VirtualHost *:80>
  ServerAdmin xxx@xxxxx.es
  ScriptAlias    /code   /var/www/cgi-bin/hg.cgi

<Directory /var/www/cgi-bin>
  AuthType Basic
  AuthName "CDN Team Rocks, please provide your username/password combination."
  Order allow,deny
  Allow from ci-cdn64new
  AuthBasicProvider ldap
  AuthzLDAPAuthoritative off
  AuthLDAPURL ldap://xxxxxxxx.xx.xxxx:389/o=TID?uid?sub?
  require valid-user
  Satisfy any
</Directory>

</VirtualHost>
and it works perfectly. Hope it helps you out or at least gives you an idea.

Kind regards,

Eric
 
  


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
[SOLVED] Postfix SASL : No Authentication Mechanisms Cybrax Linux - Newbie 1 11-13-2010 01:58 AM
Samba, Openldap and authentication mechanisms matiasquestions Linux - Server 0 01-07-2010 10:41 AM
beehive: Is it possible to use other authentication mechanisms? eantoranz Linux - Software 0 10-07-2008 12:45 PM
apache authentication 70mas Linux - Software 1 03-23-2007 06:58 AM
apache authentication d-rez Linux - Security 1 05-30-2002 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:12 AM.

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