Re: [viewvc-dev] Enabling LDAP authentication in viewvc

"C. Michael Pilato" <[email protected]> Fri, 08 May 2015 10:49:05 -0400
Newsgroups gmane.comp.version-control.cvs.viewcvs.devel
Organization CollabNet, Inc.
Message-ID <[email protected]>
------=_Part_16434_2125383009.1431096624338
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

On 05/08/2015 06:56 AM, flora vinarashi wrote:
> Hi Team,
> I need some help from you regarding viewvc authentication.
> As of now, there is no authentication for viewvc in our application.
> When the user hits /viewvc/viewvc.cgi, user is able to view all the
> repositories available in the server.
> I have tried changing the configuration setting in viewvc.conf for
> svnauthz file. After doing those changes, all the repositories having
> public access are only listed.
> I want the viewvc to be configured in such a way that when the user
> hits viewvc, they should be able to view their own repositories along
> with public access repositories.
> How this could be done?
> Viewvc version used in our application is 1.1.3

ViewVC does not currently provide an authentication framework.  It
simply piggy-backs on the authentication framework provided by Apache
HTTP Server.  So if you want to enable LDAP authentication for ViewVC,
you need to do so in the Apache configuration that governs your ViewVC
<Location>.  Once a user has authenticated against Apache, ViewVC will
receive the authenticated username from Apache via the CGI environment. 
It will then use that username in its authorization/access checks.

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Enterprise Cloud Development

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

To unsubscribe from this discussion, e-mail: [[email protected]].
------=_Part_16434_2125383009.1431096624338
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    <div class=3D"moz-cite-prefix">On 05/08/2015 06:56 AM, flora vinarashi
      wrote:<br>
    </div>
    <blockquote
      cite=3D"mid:[email protected]=
.com"
      type=3D"cite">
      <div style=3D"color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, Sans-Serif;font-size:16px">
        <div id=3D"yui_3_16_0_1_1431082726484_2102" dir=3D"ltr"><font
            face=3D"Times New Roman">
          </font></div>
        <div id=3D"yui_3_16_0_1_1431082726484_2156" style=3D"margin: 0cm 0c=
m
          0pt;"><font id=3D"yui_3_16_0_1_1431082726484_2157"
            face=3D"Calibri">Hi Team,</font><o:p
            id=3D"yui_3_16_0_1_1431082726484_2155"></o:p></div>
        <div id=3D"yui_3_16_0_1_1431082726484_2127" style=3D"margin: 0cm 0c=
m
          0pt;"><font id=3D"yui_3_16_0_1_1431082726484_2126"
            face=3D"Calibri">I need some help from you regarding viewvc
            authentication.</font><o:p
            id=3D"yui_3_16_0_1_1431082726484_2130"></o:p></div>
        <div id=3D"yui_3_16_0_1_1431082726484_2132" style=3D"margin: 0cm 0c=
m
          0pt;"><font id=3D"yui_3_16_0_1_1431082726484_2131"
            face=3D"Calibri">As of now, there is no authentication for
            viewvc in our
            application. When the user hits /viewvc/viewvc.cgi, user is
            able to view all
            the repositories available in the server.</font></div>
        <div id=3D"yui_3_16_0_1_1431082726484_2137" style=3D"margin: 0cm 0c=
m
          0pt;"><font id=3D"yui_3_16_0_1_1431082726484_2134"
            face=3D"Calibri">I have tried changing the configuration
            setting in
            viewvc.conf for svnauthz file. After doing those changes,
            all the repositories
            having public access are only listed. </font></div>
        <div id=3D"yui_3_16_0_1_1431082726484_2138" style=3D"margin: 0cm 0c=
m
          0pt;"><font id=3D"yui_3_16_0_1_1431082726484_2125"
            face=3D"Calibri">I want the viewvc to be configured in such a
            way that when
            the user hits viewvc, they should be able to view their own
            repositories along
            with public access repositories.</font></div>
        <o:p id=3D"yui_3_16_0_1_1431082726484_2123"><font face=3D"Times New
            Roman">H</font><font id=3D"yui_3_16_0_1_1431082726484_2146"
            face=3D"Calibri">ow this could be done?</font></o:p>
        <div id=3D"yui_3_16_0_1_1431082726484_2149" style=3D"margin: 0cm 0c=
m
          0pt;"><font id=3D"yui_3_16_0_1_1431082726484_2148"
            face=3D"Calibri">Viewvc version used in our application is
            1.1.3</font></div>
      </div>
    </blockquote>
    <br>
    ViewVC does not currently provide an authentication framework.=C2=A0 It
    simply piggy-backs on the authentication framework provided by
    Apache HTTP Server.=C2=A0 So if you want to enable LDAP authentication
    for ViewVC, you need to do so in the Apache configuration that
    governs your ViewVC &lt;Location&gt;.=C2=A0 Once a user has authenticat=
ed
    against Apache, ViewVC will receive the authenticated username from
    Apache via the CGI environment.=C2=A0 It will then use that username in
    its authorization/access checks.<br>
    <pre class=3D"moz-signature" cols=3D"72">--=20
C. Michael Pilato <a class=3D"moz-txt-link-rfc2396E" href=3D"mailto:cmpilat=
[email protected]">&lt;[email protected]&gt;</a>
CollabNet   &lt;&gt;   <a class=3D"moz-txt-link-abbreviated" href=3D"http:/=
/www.collab.net">www.collab.net</a>   &lt;&gt;   Enterprise Cloud Developme=
nt
</pre>
  </body>
</html>

------=_Part_16434_2125383009.1431096624338--