LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 03-29-2009, 12:06 PM   #1
visu_buri
LQ Newbie
 
Registered: Oct 2008
Posts: 12

Rep: Reputation: 0
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
 
Old 03-29-2009, 12:40 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,803

Rep: Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365
Quote:
Originally Posted by visu_buri View Post
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"
 
Old 03-31-2009, 01:40 AM   #3
visu_buri
LQ Newbie
 
Registered: Oct 2008
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 03-31-2009, 11:29 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,803

Rep: Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365
Quote:
Originally Posted by visu_buri View Post
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...
 
Old 04-03-2009, 03:30 AM   #5
visu_buri
LQ Newbie
 
Registered: Oct 2008
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 04-03-2009, 08:07 AM   #6
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,803

Rep: Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365
Quote:
Originally Posted by visu_buri View Post
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?
 
Old 04-03-2009, 11:36 PM   #7
visu_buri
LQ Newbie
 
Registered: Oct 2008
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 11-28-2013, 01:54 PM   #8
sysadmm
LQ Newbie
 
Registered: Nov 2013
Posts: 1

Rep: Reputation: Disabled
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/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2: Access forbidden! Error 403 vous Linux - Server 4 10-11-2011 04:46 AM
Error during SVN Repo Access through EClipse? your_shadow03 Linux - Server 1 08-27-2008 12:20 AM
Access Forbidden error in suselinux 10.1 shan_nathan Linux - Server 2 07-20-2007 09:45 AM
Forbidden access error on user web page accounts gain Linux - General 3 07-03-2006 11:30 PM
Error 403 Forbidden access in Apache anoop_cn Linux - Software 1 09-21-2004 09:32 AM


All times are GMT -5. The time now is 09:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration