hueron: Apache2 Auth. über LDAP

Beitrag lesen

Liebes Forum,

nach nun etwas längerer Recherche bin ich nun zum Entschluss gelangt euch im Hilfe zu fragen.

Ausgangspunkt ist eine Studienarbeit auf einem Suse10.1 Rechner worauf eine Versionsverwaltung mit Subversion läuft. Diese soll nun durch eine Benutzername &Passwortabfrage(abgleich) mit einem LDAP(win2003) geschehen. Die Versionsverwaltung funktioniert bereits nur bei der Auth. des Testnutzers komme ich einfach nicht mehr weiter.

Als erstes möchte ich mal die svn.conf Datei vorstellen, welche im vhosts.d Order liegt.

<VirtualHost 192.168.1.17:80>
    ServerAdmin webmaster@dummy-host.example.com
    ServerName lnxc-servs.infma-labor.local
    DocumentRoot "/srv/www/svn/"
    CustomLog /var/log/apache2/svn-access_log combined
    HostnameLookups Off
    UseCanonicalName Off
    ServerSignature On
#Module für Subversion
LoadModule dav_module /usr/lib/apache2/mod_dav.so
LoadModule dav_svn_module /usr/lib/apache2/mod_dav_svn.so
LoadModule authz_svn_module /usr/lib/apache2/mod_authz_svn.so

#Module für Ldap
LoadModule ldap_module /usr/lib/apache2/mod_ldap.so
Loadmodule authnz_ldap_module /usr/lib/apache2/mod_authnz_ldap.so

#-----------LDAP Parameter Start --------------
        LDAPCacheEntries 1024
        LDAPCacheTTL 60
        LDAPOpCacheEntries 1024
        LDAPOpCacheTTL 60
        LDAPSharedCacheSize 200000
#-----------LDAP Parameter Ende -------------- s to

<IfModule mod_dav_svn.c>

<Directory /srv/www/svn>

Eintrag für LDAP

AuthType Basic
      AuthName "Subversion Autorisierung"
    AuthBasicAuthoritative    on
    AuthLDAPGroupAttribute memberUid
           AuthLDAPBindDN "cn=ronny,ou=Domaenen-Subversion,ou=Global,cn=Groups,dc=infma-labor,dc=local"
           AuthLDAPBindPassword "ronny"
    AuthLDAPURL "ldap://win-servf/cn=ronny,ou=Domaenen-Subversion,ou=Global,cn=Groups,dc=infma-labor,dc=local?uid"
           require group "cn=Domaenen-Subversion,ou=Global,o=infma-labor.local"

Zugriff auf SVN

Options         +Indexes +Multiviews -FollowSymLinks

IndexOptions    FancyIndexing \                         ScanHTMLTitles \                         NameWidth=* \                         DescriptionWidth=* \                         SuppressLastModified \                         SuppressSize
        AllowOverride All

order allow,deny
        allow from all
</Directory>

<Location /svn>
   DAV svn
   SVNPath /srv/svn/repos/new
</Location>

</IfModule>

</VirtualHost>

Diese svn.conf habe ich mit Hilfe folgendes HowTo´s vervollständigt.
http://www.linux-club.de/ftopic66803.html

Ich erhalte folgende Fehlermeldungen:

#Fehlermeldung im Browser (nach Eingabe von BN & PW)

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500
svn
Wed Dec 13 10:50:49 2006
Apache/2.2.0 (Linux/SUSE)

#Fehlermeldung im error_log
[Wed Dec 13 10:50:49 2006] [error] [client 192.168.1.17] (9)Bad file descriptor: Could not open password file: (null)

#Meldung im Access_log
192.168.1.17 - - [13/Dec/2006:10:50:49 +0100] "GET / HTTP/1.1" 500 1070 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060911 SUSE/1.5.0.7-1.5 Firefox/1.5.0.7"

Für jeden Sachdienlichen Hinweis bin ich sehr Dankbar.

MfG

Ronny