I'm using the debian package, and upgraded with apt-get update; apt-get dist-upgrade. Just ran them again now and it doesn't update koha-common, so I should be at the last 21.05.xx version, dpkg reports it is: 21.05.04-1 The upgrade itself didn't show any errors, but plack-error.log was filled with that one about ldapserver, so I created a new koha site, and used that configuration file to adapt our old configuration to the new koha version, but just copied the LDAP part over as it was untouched. After reading the bug report I removed id="ldapserver" and listenref="ldapserver" from my configuration and it works now. On 10/12/21 2:31 AM, Jonathan Druart wrote:
Looks like you hit bug 28385, but it's supposed to be fixed on 21.05. Are you using the debian package? How did you upgrade?
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28385
Le mar. 12 oct. 2021 à 02:17, Hector Gonzalez Jaime <cacho@genac.org> a écrit :
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@genac.org
_______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
-- Hector Gonzalez cacho@genac.org