Mercurial: Difference between revisions

Jump to navigation Jump to search
721 bytes added ,  12 April 2011
m
no edit summary
mNo edit summary
mNo edit summary
Line 50: Line 50:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-d
# Send requests to hgwebdir.cgi, appending the rest of url.
# Send requests to hgwebdir.cgi, appending the rest of url.
RewriteRule (.*) hgweb.redbrick.cgi/$1  [QSA,L]
RewriteRule (.*) index.cgi/$1  [QSA,L]


################################
################################
Line 73: Line 73:


   receive@murphy (~/public_html/hg) %  chmod 644 /home/member/r/receive/.hgpasswd
   receive@murphy (~/public_html/hg) %  chmod 644 /home/member/r/receive/.hgpasswd
== Using LDAP instead of the password file ==
In the .htaccess you created earlier replace the Options for password control with the following:
<pre>
################################
# Options for password control #
################################
AuthType Basic
AuthBasicProvider ldap
AuthName "Some sort of name"
AuthLDAPURL ldap://192.168.0.3:389/o=redbrick?uid?sub?objectClass=posixAccount
AuthzLDAPAuthoritative Off
Require valid-user
</pre>
And hey presto, no need for a password file and you can log in with your redbrick details, of course so can anyone else so if you want to restrict access replace
  Require valid-user
with
  Require user user1 user2 (Obviously replace user1 user2 with actual usernames etc)




33

edits

Navigation menu