vendredi 5 février 2016

ApacheDS Guide

I had couple of issue removing a partition on apacheds. It seems that if you do not perform the operations in the right order you could crash you server and it would not start again. Here are the steps I performs to successfully remove a partition.

Remove the organization node


Connect to the configuration panel

Go to the advanced partition editor


Remove the partition

Delete the indexes on the partion:


Restart the server.
It should be ok

Connect from command line:

ldapsearch -x -H ldap://localhost:10399 -D"uid=admin,ou=system" -wXXXXX  -s sub "(cn=Soullard)" -LLL +



mercredi 3 février 2016

Configure SVN HTTPD and APACHE DS

Connecting SVN, httpd and apache DS

Coarse grained configuration (every developper has access to every repository)

On centos
yum install mod_ldap

The authorization is based on the entry in the persons ou, the authorization is based on the membership to the group dev.

Here  is the configuration file of apache httpd




        DAV svn
        SVNPath /var/subversion
        AuthType Basic
        AuthName "Subversion Referential"
        AuthBasicProvider ldap
        AuthLDAPBindDN "uid=admin,ou=system"
        AuthLDAPBindPassword "mypassword"
        AuthLDAPURL "ldap://ldapserver:10399/dc=mycompany,dc=com?uid?sub??(ou=Persons)" NONE
        Require ldap-group  cn=dev,ou=Groups,dc=mycompany,dc=com






Here is the group structure