[Koha] [KOHA] Unable to do LDAP Authentication with Koha 3.1 Latest from HEAD/GIT [[[[[[Invalid Username or Password]]]]] Error

Susan Mustafa susan.mustafa at gmail.com
Tue Aug 10 17:28:16 NZST 2010


Dear All,

It seems this issue was related to the <principle_name> tag.

I had to put <principle_name>%s at meek.ca</principle_name> for it to work.

Hope this helps someone else,

Regards,


On Tue, Aug 10, 2010 at 8:41 AM, Susan Mustafa <susan.mustafa at gmail.com>wrote:

> Dear Members,
>
>
> I need to do LDAP Authentication with the latest Koha version, but it does
> not work.  [[[[Invalid Username or Password ]]]]
>
> *Below is a subsection of the koha-conf.xml file:*
>
> <!-- ADDITIONAL KOHA CONFIGURATION DIRECTIVE -->
> <!-- db_scheme should follow the DBD driver name -->
> <!-- port info: mysql:3306 Pg:5432 (5433 on Debian) -->
> <config>
>  <db_scheme>mysql</db_scheme>
>  <database>koha</database>
>  <database>koha</database>
>  <hostname>localhost</hostname>
>  <port>3306</port>
>  <user>koha</user>
>  <pass>koha</pass>
>  <biblioserver>biblios</biblioserver>
>  <biblioservershadow>1</biblioservershadow>
>  <authorityserver>authorities</authorityserver>
>  <authorityservershadow>1</authorityservershadow>
>  <intranetdir>/var/www/koha-2010-08-04</intranetdir>
>  <opacdir>/var/www/koha-2010-08-04/opac</opacdir>
>  <opachtdocs>/var/www/koha-2010-08-04/koha-tmpl/opac-tmpl</opachtdocs>
>
>  <intrahtdocs>/var/www/koha-2010-08-04/koha-tmpl/intranet-tmpl</intrahtdocs>
>
>  <includes>/var/www/koha-2010-08-04/koha-tmpl/intranet-tmpl/prog/en/includes/</includes>
>  <logdir>/home/mistuser/koha-dev/var/log</logdir>
>  <pazpar2url>http://localhost:11002/search.pz2</pazpar2url>
>  <install_log>/home/mistuser/koha-dev/misc/koha-install-log</install_log>
>  <useldapserver>0</useldapserver><!-- see C4::Auth_with_ldap for extra
> configs you must add if you want to turn this on -->
>  <memcached_servers></memcached_servers>
>  <memcached_namespace></memcached_namespace>
>
> <!-- LDAP SERVER (optional) -->
> <useldapserver>1</useldapserver>
> <ldapserver id="ldapserver"  listenref="ldapserver">
>  <hostname>10.111.20.20:389</hostname>
>  <base>ou=MEEK,dc=meek,dc=ca</base>
>  <user>CN=KOHA SSO,OU=Staff,OU=Users,OU=MEEK,DC=meek,DC=ca </user>
>  <pass>P at ssword123</pass><!-- password, if not anonymous -->
>  <replicate>1</replicate>       <!-- add new users from LDAP to Koha
> database -->
>  <update>0</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>%s at meek.ac.ca</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"              >Calgary, Canada</city>
>                 <zipcode      is="postalcode"     ></zipcode>
>                 <branchcode   is="">meek</branchcode>
>                 <userid       is="samAccountName"            ></userid>
>                 <password     is=""   ></password>
>                 <email        is="mail"           ></email>
>                 <categorycode is=""></categorycode>
>                 <phone        is="telephonenumber"></phone>
>                 <dateexpiry   is=""></dateexpiry>
>
>  </mapping>
> </ldapserver>
>
> </config>
> </yazgfs>
>
>
> Please note that I copied this portion of the LDAP XML from my 3.0
> Version[Production] which had LDAP Working and then I added the extra
> <Principle_name> thing to the xml.
>
>
> What else do I have to do after changing this koha-conf.xml file? Kindly
> note, that this info of authentication works, because it worked on the 3.0
> before but not on the HEAD/Git.  Its copy paste + <principle_name> tag.
>
> I checked the error logs, both produce nothing, which is very very odd.
>
> The only error I get happens on screen and it is [[[Invalid Username and
> Password]]]]
>
> Kindly awaiting a reply.  This is really important.
>
> Best Regards,
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20100810/7fc01ab6/attachment.htm 


More information about the Koha mailing list