[Koha] LDAP changes from 19.xx to 21.05 ?

Hector Gonzalez Jaime cacho at genac.org
Tue Oct 12 13:17:49 NZDT 2021


Hello, we recently tried to update our development server to 21.05, and 
it mostly works, but it does not like our LDAP setup, which is unchanged.

plack-error.log is filled with errors from this one:

Error while loading /etc/koha/plack.psgi: No ldapserver "hostname" 
defined in KOHA_CONF: /etc/koha/sites/clavius/koha-conf.xml at 
/usr/share/koha/lib/C4/Auth_with_ldap.pm line 58, <DATA> line 755.

Now, we did not touch our LDAP configuration, which was correct and 
working with 19.11.  Can somebody help find out what changed? Our ldap 
configuration is like this now:


  <ldapserver id="ldapserver" listenref="ldapserver">
     <hostname>ip.address.for.server</hostname>
     <base>ou=users,dc=domain,dc=example,dc=org</base>
     <replicate>1</replicate>
     <update>1</update>   <!-- update existing users in Koha database -->
     <auth_by_bind>1</auth_by_bind>
<principal_name>uid=%s,ou=users,dc=domain,dc=example,dc=org</principal_name>
     <mapping> <!-- match koha SQL field names to your LDAP record field 
names -->
       <firstname    is="givenname"      ></firstname>
       <surname      is="sn"             ></surname>
       <address      is="postaladdress"  ></address>
       <city         is="l"              >Tijuana, BCN</city>
       <zipcode      is=""               ></zipcode>
       <branchcode   is="" >TJNA</branchcode>
       <userid       is="uid"            ></userid>
       <password     is=""               ></password>
       <email        is="mail"           ></email>
       <phone        is=""               ></phone>
       <categorycode is="" >STUDENT</categorycode>
       <privacy      is=""               >1</privacy>
     </mapping>
   </ldapserver>

Thanks.

-- 
Hector Gonzalez
cacho at genac.org



More information about the Koha mailing list