[Koha-bugs] [Bug 10908] Fix broken auth_by_bind LDAP mode

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 7 08:59:49 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10908

M. Tompsett <mtompset at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mtompset at hotmail.com

--- Comment #10 from M. Tompsett <mtompset at hotmail.com> ---
sudo apt-get install ldap-server

Make sure to remember the password you use to set this up!
Next, we'll figure out the connection string.

sudo slapcat

The second entries 'dn' line will be important in setting up LDAP
authentication

sudo apt-get install phpldapadmin

Now you should be able to web browse to http.../phpldapadmin and actually log
in with the information you got from slapcat.

cn=admin;dc=<from slapcat>
<password set while installing ldap-server>

Congratulations, you have an LDAP server with just the admin user set up on
your machine. Feel free to "sudo apt-get remove phpldapadmin". That was just to
prove the set up was working.

Then you'll need to tweak your koha-conf.xml

hostname should be the nice name you'd use for the machine.
base I matched to be "dc=<slapcat mess>"
same with user.
and of course principle_name.
in the mapping section, the branchcode and patron code better be in your system
already.


<useldapserver>1</useldapserver><!-- see C4::Auth_with_ldap for extra configs
you must add if you want to turn this on -->
<ldapserver id='ldapserver'  listenref='ldapserver'>
<hostname>demo.library.kohasystem.ca</hostname>
<base>dc=nodomain</base>
<user>CN=admin,OU=Special,OU=Accounts,DC=nodomain</user>
<pass>ldap123</pass>
<replicate>1</replicate>
<update>1</update>
<auth_by_bind>1</auth_by_bind>
<principal_name>CN=%s,DC=nodomain</principal_name>
<mapping>
<firstname    is='givenname'></firstname>
<surname      is='sn'> </surname>
<address      is='postaladdress'>3900 University Blvd</address>
<city         is='l'>Tyler, TX</city>
<zipcode      is='postalcode'>75799</zipcode>
<branchcode   is=''>MNL</branchcode>
<userid       is='cn'></userid>
<password     is=''></password>
<cardnumber   is='extensionattribute2'></cardnumber>
<email        is='userprincipalname'></email>
<categorycode is=''>PT</categorycode>
<phone        is='telephonenumber'>903-566-7343</phone>
<dateenrolled is=''>2011-03-27</dateenrolled>
<dateexpiry   is=''>2011-05-13</dateexpiry>
</mapping>
</ldapserver>

Hope this helps, KF.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list