anchor.diff:  adding new entry  "uid=john,ou=People,dc=gocd,dc=org"
   ~~~
   
  -Check if the user is successfully added.
  +Check if the user is successfully added:
   
   ~~~ shell
   ldapsearch -x -LLL -b dc=gocd,dc=org 'uid=john' cn gidNumber
   ~~~
   
  -**Output**
  +Output:
   
   ~~~ shell
   ldapsearch -x -LLL -b dc=gocd,dc=org 'uid=john' cn gidNumber
  
positive.code: Next we'll add a user to the OpenLDAP server and see if we are able to connect.
  
  
  ##**Step 2 — Add user to ldap server**
  
  Create an add.ldif file and add below content for user details.
  
  ~~~ shell
  dn: ou=People,dc=gocd,dc=org
  
negative.code: ldappasswd -x -D cn=admin,dc=gocd,dc=org -W -S "uid=john,ou=People,dc=gocd,dc=org"
  ~~~
  
  
  ##**Step 3 — Setup LDAP authentication for GoCD**
  
  This configuration will help you connect to the  OpenLDAP server you setup.
  
  <img src="/assets/images/blog/cd-hacks/gocd-authorize-config-ldap.gif" alt="Open LDAP with GoCD"/>
  
  
  [Screenshot of the GoCD LDAP authentication setup]
  
  <img src="/assets/images/blog/cd-hacks/gocd-add-auth-ldap.png" alt="Open LDAP with GoCD"/>
  
  
  Users can also configure this via **Config XML** tab on the Admin section:
  
  