title: ldap authentication with gitblit 1.0
body: <p>I have just obtained Gitblit's newest release 1.0 available Here</p>
  
  <p>I am trying to integrate the LDAP method of authentication. Since I think my ldap is non typical I'm having trouble with what the terms match against. </p>
  
  <p>So far, I have been following the limited resources (since 1.0 just came out) and the google groups. </p>
  
  <p>However, I cannot even get my server to connect.</p>
  
  <p>I will paste the fields that Gitblit needs for authentication, and then I will paste some of the relevant fields listed in my ldap..</p>
  
  <p>I've had trouble with the ldap structure before, but I'm wondering if it is just me.</p>
  
  <p>Thanks!</p>
  
  <p>inside: gitblit.properties</p>
  
  <pre><code>realm.ldap.server = http://127.0.0.1 #for this purpose
  
  # Login username for LDAP searches.
    realm.ldap.username = username
  
  # Login password for LDAP searches.
    realm.ldap.password = password
  
  # Root node for all LDAP users
    realm.ldap.accountBase = CN=Users,DC=rem,DC=pri
  
  # Filter criteria for LDAP users
  # Query pattern to use when searching for a user account. This may be any valid 
  # LDAP query expression, including the standard (&amp;) and (|) operators.
  #    ${username} - The text entered as the user name
    realm.ldap.accountPattern = (&amp;(objectClass=person)(sAMAccountName=${jsmith}))
  
  # Root node for all LDAP groups to be used as Gitblit Teams
  # This is the root node from which subtree team searches will begin.
    realm.ldap.groupBase = 
  
  # Filter criteria for LDAP groups
  # Variables may be injected via the ${variableName} syntax.
  # Recognized variables are:
  #    ${username} - The text entered as the user name
  #    ${dn} - The Distinguished Name of the user logged in
  # All attributes from the LDAP User record are available. For example, if a user
  # has an attribute "fullName" set to "John", "(fn=${fullName})" will be 
  # translated to "(fn=John)".
    realm.ldap.groupMemberPattern = (&amp;(objectClass=group))
  </code></pre>
  
  <p>This is a picture of what my directory listing looks like (obviously the identifying things have been removed)</p>
  
  <p><img src="https://i.stack.imgur.com/AYZbO.png" alt="ldap directory"></p>