Archive for May, 2007

Subversion+Apache2+Auth_LDAP 2006-08-03 09:54 vf# cd /usr/ports/www/apache2 vf# make install clean WITH_LDAP_MODULES=yes vf# cd /usr/ports/devel/svn vf# make insall clean WITH_MOD_DAV_SVN=yes 也可以加上WITH_SVNSERVE_WRAPPER=yes DAV svn SVNParentPath /home/svn Options Indexes FollowSymLinks AllowOverride None order allow,deny allow from all AuthType basic AuthName “Subversion” AuthLDAPURL ldap://localhost:389/ou=People,o=example?uid?sub?(objectClas s=*) #貌似必须使用uid(默认值),我只好给每个认证用户加了objectClass=uidObject AuthLDAPBindDN cn=readonly,o=expamle AuthLDAPBindPassword read@Example AuthLDAPGroupAttributeIsDN on require valid-user 参考:http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html vf# mkdir /home/svn vf# […]

saslauthd.conf 2006-08-02 23:07 vf# vf# cd /usr/ports/security/cyrus-sasl2-saslauthd/ vf# make install clean WITH_OPENLDAP=yes vf# vi /usr/local/etc/saslauthd.conf ldap_servers: ldap://127.0.0.1/ ldap_bind_dn: cn=keeper,o=ashlar ldap_password: read@Ashlar ldap_search_base: ou=People,o=ashlar ldap_filter: uid=%u #默认uid=%u ldap_id: cn=keeper,o=ashlar #和ldap_bind_dn几乎一样 vf# /usr/local/etc/rc.d/saslauthd.sh forcestart