[Koha-bugs] [Bug 12026] Shibboleth auto-provisioning

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 12 11:47:41 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12026

--- Comment #88 from Zeno Tajoli <z.tajoli at cineca.it> ---
Hi Katrin,

in fact to answer your question you need to read also the code.
I do some answers:

>Is there documentation about this new feature available somewhere?
The documentation is inside C4/Auth_with_shibboleth.pm in POD format.
To see it:
perldoc C4/Auth_with_shibboleth.pm

>Is it possible to choose if you want to add a new user and update existing users like it is with LDAP?

No. The system only adds a new user, it does not update an existing user. And
it adds a new user only when, inside login process, it finds that there isn't
an existing user with userid = the shibboleth attribure defined with this XML
in koha-conf.xml:
<matchpoint>userid</matchpoint>
<mapping>
   <userid is="uid"></userid>
</mapping>

>Do the attributes have to match exactly to what Koha expects (branchcode, categorycode specifically) or is there a way to do a mapping?

You can mapping using koha-conf.xml. This is an example:

<matchpoint>userid</matchpoint>
<mapping>
   <userid is="uid"></userid>
   <surname is="sn"></surname>
   <categorycode is="tip"></categorycode>
   <branchcode is="cod"></branchcode>
   <email is="uid"></email>
   <emailpro is="mail"></emailpro>
</mapping>
The <matchpoint> ... </matchpoint> and the connected attribute are clearly
mandatory.
Also attributes for categorycode and branchcode are mandatory, I think.
Ohters are optional.

Bye

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


More information about the Koha-bugs mailing list