Hello, I try to configure ldap but i don't succeed Here's the error Software error: not well-formed (invalid token) at line 280, column 15, byte 11694 at /usr/lib/perl5/XML/Parser.pm line 187 BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Output.pm line 31. Compilation failed in require at /usr/share/koha/intranet/cgi-bin/mainpage.pl line 24. BEGIN failed--compilation aborted at /usr/share/koha/intranet/cgi-bin/mainpage.pl line 24. I think to a mapping's problem but i need your opinion. My ldap's conf is the following <ldapserver id=”ldapserver” listenref=”ldapserver”> <hostname>xxxxx</hostname> <base>ou=people,dc=ecp,dc=fr</base> <user>xxxxx</user><!– DN, if not anonymous –> <pass>xxxxx</pass><!– password, if not anonymous –> <replicate>1</replicate> <!– add new users from LDAP to Koha database –> <update>1</update> <!– update existing users in Koha database –> <auth_by_bind>1</auth_by_bind> <!– set to 1 to authenticate by binding instead of password comparison, e.g., to use Active Directory–> <principal_name>uid=%s,ou=people,dc=**,dc=**</principal_name> <!– optional, for auth_by_bind: a printf format to make userPrincipalName from koha userid –> <mapping> <!– match koha SQL field names to your LDAP record field names –> <firstname is=”givenname”></firstname> <surname is=”sn”> </surname> <address is=””>Ecole Centrale Paris</address> <city is=””>Chantenay-Malabry</city> <zipcode is=””>92290</zipcode> <branchcode is=”">ECAM</branchcode> <userid is=”uid”></userid> <password is=”userPassword"></password> <cardnumber is=”ecpbadgeNumber></cardnumber> <email is="email"></email> <categorycode is="supannEtuDiplome">employee</categorycode> <phone is=”telephonenumber”>******</phone> <dateenrolled is=”">2011-03-27</dateenrolled> <dateexpiry is=”">2011-05-13</dateexpiry> </mapping> </ldapserver> best regards samuel
Samuel desseaux <samuel.desseaux@ecp.fr>
not well-formed (invalid token) at line 280, column 15, byte 11694 at /usr/lib/perl5/XML/Parser.pm line 187 BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Output.pm line 31. [...]
I think to a mapping's problem but i need your opinion.
My ldap's conf is the following <ldapserver id=”ldapserver” listenref=”ldapserver”>
I think it's more fundamental. The XML cannot be understood (parsed). You must not put curly quotes in XML. Use straight quotes. Also if you have any unusual characters in any values, you should replace them with equivalent ÿ type hex codes (00FF is y-umlaut). http://www.alanwood.net/unicode/latin_1_supplement.html might help. xmllint --noout koha-conf.xml # will check that it is OK. Hope that helps, -- MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op. http://koha-community.org supporter, web and library systems developer. In My Opinion Only: see http://mjr.towers.org.uk/email.html Available for hire (including development) at http://www.software.coop/
participants (2)
-
MJ Ray -
Samuel desseaux