Re: [viewvc-users] Password control for viewvc

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <[email protected]>
Edwin Soh wrote:
> Hi,
>  
> Is it possible to implement a password control for viewvc as below:
>  
> password = raw_input("Enter password :")
> if password == "password"
>   # can proceed
> else :
>  # denied. Exit program
>  
> If possible, how to do it? 

Authentication is a function offered for free by your web server (if you are
using one).  For example, under Apache, you can force users to authenticate
against ViewVC by protecting the ViewVC location with authn directives:

ScriptAlias /viewvc /usr/local/viewvc/bin/cgi/viewvc.cgi
<Location /viewvc>
    AuthType Basic
    AuthName "ViewVC Users"
    AuthUserFile /usr/local/viewvc/passwd
    Require valid-user
</Location>

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2407107

To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkrUihAACgkQokEGqRcG/W4lGACZAQZcHkxl6wCZOjc7yTz/hLiN
um4AoKKjgITZ/BjMwnrt2VMl4zclQ8ET
=VWUe
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.