title: SVN with LDAP authentication not working
body: <p>I'll first start with my setup. For this we have 2 servers</p>
  
  <p>Server1 is going to be used for all the sourcecode, files, etc.., 
  And on Server2 we have all our user information and logins.
  Both servers are running on Centos 6.4</p>
  
  <p>Now we want to setup a SVN repository on server1 thats working with apache (httpd) and has a LDAP authentication that uses accounts from server 2.</p>
  
  <p>Previously i set up a CVS repo aswel so i'm 100% sure ldap is working.</p>
  
  <p>My SVN repo is working as it should with apache, but i just can't seem to set my ldap authentication correctly.</p>
  
  <p>I've been looking for a few days now and i don't know what to do anymore.</p>
  
  <p>My <code>/etc/httpd/conf.d/subversion.conf</code> looks like the following</p>
  
  <pre><code>&lt;Location /svn&gt;
  
      DAV svn
      SVNPath                 /var/www/svn/testProject
      AuthType                Basic
      AuthName                "My repo"
      AuthzLDAPAuthoritative  on
      AuthLDAPURL             "ldap://192.168.1.2:389/cn=users,dc=server2,dc=intranet,dc=myCompany,dc=com?sAMAccountName?sub?(objectClass=*)" NONE
      AuthUserFile            /var/www/svn-auth-conf
      Require valid-user
      #AuthzSVNAccessFile     /var/www/svn-acces-control
  </code></pre>
  
  <p></p>
  
  <p>my <code>/etc/openldap/ldap.conf</code> on server1 looks like this</p>
  
  <pre><code>REFERRALS off
  TLS_CACERTDIR /etc/openldap/cacerts
  URI ldap://macserver.intranet.zappware.com
  BASE cn=users,dc=server2,dc=intranet,dc=myCompany,dc=com
  </code></pre>
  
  <p>On server1 i have root access so i am able to setup it up correctly.
  When i go to Server2 on my user account i can do a ldapsearch like this</p>
  
  <pre><code>userM$ ldapsearch -x -b cn=users,dc=server2,dc=intranet,dc=myCompany,dc=com
  </code></pre>
  
  <p>I get all the user accounts on that server</p>
  
  <p>but when i try <code>ldapsearch -x -b cn=users,dc=server2,dc=intranet,dc=myCompany,dc=com -W sAMAccount</code> 
  Server2 asks me for the LDAP password. But i don't have that password, and our previous IT manager who did all the server stuff, has left the company.</p>
  
  <p>so i thought i could just make another password and put in in the</p>
  
  <pre><code>/etc/openldap/slapd.conf
  </code></pre>
  
  <p>but when i check that file on server 2 its just empty</p>
  
  <p>Hopefully there is someone who could give me some new and helpfull tips on how to solve this</p>