LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Forbidden Error : Don't have access to svn repository (https://www.linuxquestions.org/questions/linux-newbie-8/forbidden-error-dont-have-access-to-svn-repository-715294/)

visu_buri 03-29-2009 12:06 PM

Forbidden Error : Don't have access to svn repository
 
hi folks,
I am getting one error when trying to access svn repository using pathbased authentication via apache( httpd.conf)
Can anybody guide me how to write properly svn-auth-file(using htpasswd) and control file

Forbidden Error : Don't have access to svn repository

Thanks in advance

Visu

TB0ne 03-29-2009 12:40 PM

Quote:

Originally Posted by visu_buri (Post 3491683)
hi folks,
I am getting one error when trying to access svn repository using pathbased authentication via apache( httpd.conf)
Can anybody guide me how to write properly svn-auth-file(using htpasswd) and control file

Forbidden Error : Don't have access to svn repository

Did you try to Google for this? First hit:
http://linuxconfig.blogspot.com/

Quote:

htpasswd -cm /etc/svn-auth-file kcr
Read from step 7 on that page which will "guide you"

visu_buri 03-31-2009 01:40 AM

svn and apache comaptability
 
hi friends,

i have svn 1.4.3 and apache 2.2.9 .
i want to access svn using apache(http://...)
it doesn't work
any compatability problems?
do we need specific versions to of each to configure ?
plz post reply

and one more problem
when i am trying to configure svn 1.4.3 with apache 2.o.59
the module mod_dav_svn is not there in modules
how can i get it.
is there any solution without that ?

plz reply

Thanks
Vsu

TB0ne 03-31-2009 11:29 AM

Quote:

Originally Posted by visu_buri (Post 3493323)
hi friends,

i have svn 1.4.3 and apache 2.2.9 .
i want to access svn using apache(http://...)
it doesn't work
any compatability problems?
do we need specific versions to of each to configure ?
plz post reply

and one more problem
when i am trying to configure svn 1.4.3 with apache 2.o.59
the module mod_dav_svn is not there in modules
how can i get it.
is there any solution without that ?

plz reply

Thanks
Vsu

Well, you still haven't responded to the FIRST question you posted...did you get the SVN problems you initally asked about resolved? Based on the first post in this thread, you already HAD apache and svn installed and running, and were having authentication problems.

You say "it doesn't work"...how about posting an actual error message? Giving some useful information, would help us to answer you question. Also, you don't say anything about your environment, firewalls, or what version/distro of Linux you're using.


And, if you have a new question, it's best to open a new thread for it, rather than shoving it on to the end of one that you haven't answered yet. And PLEASE spell out your words...

visu_buri 04-03-2009 03:30 AM

svn and apache working fine but LDAP not working
 
hi friends
my svn access with apache is working fine.
thanks for your suggestions.

now I want to authenticate the same svn using LDAP.
for that I am using OpenDS 1.2.0 in opensolaris environment.
here i am getting some problem like

ldap_simple_bind_s() failed.Can't contact server .

i wrote httpd.conf and ldif file propely only but i didnot get where the error exactly.

Can anybody share sample ldif file and resp httpd.conf plz...


Thanks

Visu

TB0ne 04-03-2009 08:07 AM

Quote:

Originally Posted by visu_buri (Post 3496958)
hi friends
my svn access with apache is working fine.
thanks for your suggestions.

now I want to authenticate the same svn using LDAP.
for that I am using OpenDS 1.2.0 in opensolaris environment.
here i am getting some problem like

ldap_simple_bind_s() failed.Can't contact server .

i wrote httpd.conf and ldif file propely only but i didnot get where the error exactly.

Can anybody share sample ldif file and resp httpd.conf plz...

As I posted before:

Quote:

And, if you have a new question, it's best to open a new thread for it, rather than shoving it on to the end of one that you haven't answered yet. And PLEASE spell out your words...
But you still don't spell out your words, and keep tacking questions on to ones you haven't answered previously. If you're not going to do people the courtesy of responding to what they write, why should we answer you?

visu_buri 04-03-2009 11:36 PM

svn with apache working fine
 
here is my solution

add the following in /etc/apache2/2.2/httpd.conf

LoadModule dav_svn_module libexec/mod_dav_svn.so
LoadModule authz_svn_module libexec/mod_authz_svn.so

<Location /svn/repos>
DAV svn
SVNPath /absolute/path to your /repos
AuthType Basic

AuthName "Initial Repository Layout"


AuthUserFile /etc/svn-auth-file
# AuthzSVNAccessFile /path to your/svn/access/control
require valid-user
</Location>

And give permissions properly
[/] ---this was my problem i made it as [\] wrong

sysadmm 11-28-2013 01:54 PM

I was getting 403 Forbidden error while trying to access SVN repository too. In my case the reason for this was invalid syntax in authz.conf file (this file is referred in apache config with AuthzSVNAccessFile directive).

Invalid file:

Code:

[groups]
system-admins = avz
devs1 = john, ryan
devs2 = meggy

[/]
*=
@system-admins = rw

[/repo1]
@devs1

[/repo2]
@devs2 = rw

The correct version:

Code:

[groups]
system-admins = avz
devs1 = john, ryan
devs2 = meggy

[/]
*=
@system-admins = rw

[/repo1]
@devs1 = rw

[/repo2]
@devs2 = rw

Hope this will help somebody.

---------- Post added 11-28-13 at 09:55 PM ----------

BTW, if you need to make basic http auth in apache with more than one password file, you can use this manual:
http://avz.org.ua/wp/2013/01/30/apac...assword-files/


All times are GMT -5. The time now is 05:53 AM.