Ldap testing

From Koha Wiki

Jump to: navigation, search
Home > Documentation
Home > Documentation
Tips & Tricks > Tips & Tricks/Customising Notices and Slips > Tips & Tricks

You can test LDAP functionality using: https://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/

Enter into your koha-conf.xml:

<useldapserver>1</useldapserver>
<ldapserver id="ldapserver">
  <hostname>ldap://ldap.forumsys.com</hostname>
  <base>dc=example,dc=com</base>
  <replicate>1</replicate>
  <update>1</update>
  <user>cn=read-only-admin,dc=example,dc=com</user>
  <pass>password</pass>
  <auth_by_bind>0</auth_by_bind>
  <anonymous_bind>0</anonymous_bind>
  <principal_name>uid=%s</principal_name>
  <mapping>
      <cardnumber is="potato"></cardnumber>
      <branchcode is="">CPL</branchcode>
      <categorycode is="">PT</categorycode>
      <surname is="uid"></surname>
      <userid is="uid"></userid>
   </mapping>
 </ldapserver>

You can adjust the mappings - cardnumber was mapped to potato to ensure no value was received

Personal tools