Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
subversion "Authorization failed"
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Obelix
Tux's lil' helper
Tux's lil' helper


Joined: 22 Aug 2011
Posts: 100

PostPosted: Wed Jul 25, 2012 9:39 pm    Post subject: subversion "Authorization failed" Reply with quote

Hallo,

kann mir bitte jemand mal behilflich sein, bei folgendem Problem:
Wenn ich versuche auf ein repository zuzugreifen, bekomme ich immer "Authorization failed".

Folgende Installation läuft bei mir:

/etc/conf.d/svnserve
Code:
# Options for svnserve
SVNSERVE_OPTS="--root=/var/svn  --log-file=/var/log/svnserve.log"

# User and group as which to run svnserve
SVNSERVE_USER="root"
SVNSERVE_GROUP="root"

root deswegen, statt apache, was der default wäre, damit der Parameter --log-file nicht dazu führt, dass der daemon crasht (vermutlich, weil er nicht nach /var/log schreiben darf)

/etc/init.d/svnserve ist unverändert

/var/svn sieht folgendermaßen aus:
Code:
conf
libs-source
...
also ein Verzeichnis für eine globale config und einige repos.

im repository libs-source gibt es ebenfalls ein conf-Verzeichnis, in dem eine svnserve.conf liegt
Code:
[general]
anon-access = none
password-db = /var/svn/conf/passwd
authz-db = /var/svn/conf/authz
realm = libs-source
[sasl]


also die repository config verweise auf das globale config-Verzeichnis für passwd und authz.
diese haben folgenden Inhalt:

authz
Code:
[repository:/libs-source]
obelix=rw
rainer=rw

(btw: ich habs auch mit Gruppen-Rechten und Rechten für alle getestet)

passwd:
Code:
[users]
obelix=geheim



so.
es ist jetzt egal, ob ich per kde-svn, von Windows mit dem repo-Explorer oder von der shell aus per
Code:
svn info svn://192.168.1.230:/libs-source/CAPI.NET/CAPI.NET.sln

zugreife. Ich soll mich authentifizieren und bekomme trotz korrektem Passwort "Authorization failed".

Es hatte schon mal funktioniert, aber ich wollte eigentlich WebSVN dazu bringen, dass es ebenfalls mit den gleichen user/passwd die Zugriffe auf die repos verwaltet. Aber das klappt schon gar nicht, und seit ich da rumgebastelt habe, kann man per svn auch nichts mehr machen.

Ich wäre für Unterstützung echt dankbar, denn ich suche heute schon den zweiten Tag - und ich weiß nicht mehr, was ich noch nicht getestet habe von den Vorschägen, die man bei google zu dem Thema findet.

Gruß
Obelix
_________________
read my lips: NO MORE BUGS!!
Back to top
View user's profile Send private message
Obelix
Tux's lil' helper
Tux's lil' helper


Joined: 22 Aug 2011
Posts: 100

PostPosted: Mon Jul 30, 2012 10:21 pm    Post subject: Reply with quote

...sollte sich jemand dafür interessieren:

Das Problem war die Syntax im authz file. Da kann man googlen, was man will, man wird auf verschiedene Schreibweisen treffen. Die, die bei mir korrekt ist lautet:

[libs-source:/]
@acs=rw

also allgemein:
[RepositoryName:/Pfad]
@Gruppe=rw
UserName=r
_________________
read my lips: NO MORE BUGS!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum