1
byu_xj
SVN Apache and Xoops users
  • 2006/5/13 3:00

  • byu_xj

  • Just popping in

  • Posts: 13

  • Since: 2006/1/11


I have been working to get Apache2 WebDAV with SVN to authenticate against the XOOPS user database. I wanted to duplicate the work done by http://blog.platinumsolutions.com/node/46

I can proclaim success on the first goal of the project. I will not detail the steps to get apache2 SVN and auth_mysql installed. After these are installed and apache2 is running properly then you can modify the apache configuration file for SVN.

Here are the contents of my configuration file.
<IfDefine SVN>
        <
IfModule !mod_dav_svn.c>
                
LoadModule dav_svn_module       modules/mod_dav_svn.so
        
IfModule>
        <
Location /svn>
                
DAV svn
                SVNParentPath 
/usr/data/repository/
                
AuthType Basic
                AuthName 
"Subversion repository"
                
SSLRequireSSL
                AuthMySQLUser auth_svn
                AuthMySQLPassword pass
                AuthMySQLDB xoops_database
                AuthMySQLUserTable xxxx_users
                AuthMySQLNameField loginname
                AuthMySQLPasswordField pass
                AuthMySQLPwEncryption md5
                
Require valid-user
        
Location>
        <
IfDefine SVN_AUTHZ>
                <
IfModule !mod_authz_svn.c>
                        
LoadModule authz_svn_module     modules/mod_authz_svn.so
                
IfModule>
        IfDefine>
IfDefine>


The directives in the above code should obviously be modified for your installation of xoops.
AuthMySQLUser auth_svn
AuthMySQLPassword auth


These are the directives that specify the username and password of a MySQL user that has select permission on the user table of the XOOPS database.

This above will allow access control to svn repositories from all registered users in the XOOPS database. The next step is to get group control integrated. I do not know php or MySQL but getting group integration is as easy as writing a XOOPS script to write a flat text file in the proper format and in the proper location.

If any of you are interested doing this then here is a link that descibes the format(among other things).
http://gentoo-wiki.com/HOWTO_Apache2_with_subversion_SVN_and_DAV

Login

Who's Online

167 user(s) are online (56 user(s) are browsing Support Forums)


Members: 0


Guests: 167


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits