koha Active Directory
Hello I'm connecting koha to our active directory system, i saw in the koha_conf.xml there is this option with this comment <useldapserver>0</useldapserver> My problem is I'm unable to find the module C4::Auth_with_ldap, the koha server run in debian squeeze server Thank a lot -- View this message in context: http://koha.1045719.n5.nabble.com/koha-Active-Directory-tp4399726p4399726.ht... Sent from the Koha - Discuss mailing list archive at Nabble.com.
I configured koha-conf.xml but there is something wrong... the error log say this: [Mon May 16 14:23:08 2011] [error] [client X.X.X.X] [Mon May 16 14:23:08 2011] opac-user.pl: DBD::mysql::st execute failed: Cannot add or update a child row: a foreign key constraint fails (`koha`.`borrowers`, CONSTRAINT `borrowers_ibfk_1` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`)) at /usr/share/koha/lib/C4/SQLHelper.pm line 147, <DATA> line 522., referer: http://hbcdsl10/cgi-bin/koha/opac-user.pl [Mon May 16 14:23:08 2011] [error] [client X.X.X.X]] [Mon May 16 14:23:08 2011] opac-user.pl: AddMember failed at /usr/share/koha/lib/C4/Auth_with_ldap.pm line 152., referer: http://hbcdsl10/cgi-bin/koha/opac-user.pl Thanks Daniel -- View this message in context: http://koha.1045719.n5.nabble.com/koha-Active-Directory-tp4399726p4400225.ht... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Le 16/05/2011 14:25, schwitzd a écrit :
I configured koha-conf.xml but there is something wrong...
the error log say this:
[Mon May 16 14:23:08 2011] [error] [client X.X.X.X] [Mon May 16 14:23:08 2011] opac-user.pl: DBD::mysql::st execute failed: Cannot add or update a child row: a foreign key constraint fails (`koha`.`borrowers`, CONSTRAINT `borrowers_ibfk_1` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`)) at /usr/share/koha/lib/C4/SQLHelper.pm line 147, <DATA> line 522., referer: http://hbcdsl10/cgi-bin/koha/opac-user.pl [Mon May 16 14:23:08 2011] [error] [client X.X.X.X]] [Mon May 16 14:23:08 2011] opac-user.pl: AddMember failed at /usr/share/koha/lib/C4/Auth_with_ldap.pm line 152., referer: http://hbcdsl10/cgi-bin/koha/opac-user.pl
Thanks Daniel
You have a configuration problem : Your borrowers categories are not correctly set. -- Henri-Damien LAURENT
Hi laurent Sorry but how I can check my borrowers category? you mean the Patron Category? Thanks a lot Daniel -- View this message in context: http://koha.1045719.n5.nabble.com/koha-Active-Directory-tp4399726p4400321.ht... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Le 16/05/2011 14:56, schwitzd a écrit :
Hi laurent
Sorry but how I can check my borrowers category? you mean the Patron Category?
Thanks a lot Daniel
Yes. Patron Category is a mandatory field. And it has to be described when adding a new borrower. If the patron category is not set, then it will fail adding the patron. you can set that with describing it in the koha-conf.xml If you have more than one library to set, then it may be more complex to have that correctly set, and would require adjustments in C4::Auth_with_ldap. -- Henri-Damien LAURENT
This is my koha-conf.xml and the printscreen is my Patron Category http://imageshack.us/photo/my-images/718/patrona.png at the moment we have just one library. -- View this message in context: http://koha.1045719.n5.nabble.com/koha-Active-Directory-tp4399726p4400560.ht... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Le 16/05/2011 16:25, schwitzd a écrit :
This is my koha-conf.xml and the printscreen is my Patron Category http://imageshack.us/photo/my-images/718/patrona.png
at the moment we have just one library.
-- View this message in context: http://koha.1045719.n5.nabble.com/koha-Active-Directory-tp4399726p4400560.ht... Sent from the Koha - Discuss mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
In the koha-conf.xml, add a <categorycode is="employeetype">YOURHARDCODEDCATEGORYCODE</categorycode>
Hi Sorry but in the koha-conf there is already a categorycode <categorycode is="category">Default Catefory Code</categorycode> I have to delete this and add yours? What I have to insert isteadof YOURHARDCODEDCATEGORYCODE? Thanks a lot Daniel -- View this message in context: http://koha.1045719.n5.nabble.com/koha-Active-Directory-tp4399726p4400656.ht... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Le 16/05/2011 16:54, schwitzd a écrit :
Hi
Sorry but in the koha-conf there is already a categorycode <categorycode is="category">Default Catefory Code</categorycode>
I have to delete this and add yours?
Well it is quite the same. But you may.
What I have to insert isteadof YOURHARDCODEDCATEGORYCODE? S could be a first good guess. hope that helps.
Thanks a lot Daniel
-- View this message in context: http://koha.1045719.n5.nabble.com/koha-Active-Directory-tp4399726p4400656.ht... Sent from the Koha - Discuss mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
I tried but in the log file there is the same error message... one question the attribute employeetype in active directory must be one of the patron category code? -- View this message in context: http://koha.1045719.n5.nabble.com/koha-Active-Directory-tp4399726p4400694.ht... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Le 16/05/2011 17:08, schwitzd a écrit :
I tried but in the log file there is the same error message... one question the attribute employeetype in active directory must be one of the patron category code?
It would be better if it could be, yes. But you could take a custom ldap field. Hope that helps. -- Henri-Damien LAURENT
thanks now I'm able to login... but there is one other problem, our active directory structure is like this - City -- Departement1 -- Departement2 -- Departementn The user are splitted in the departement OU. If i configure Koha to link in one Departement OU the user inside this it could login in koha but the other one OU no... If I link koha to the up level OU (City) nobody can login into koha. -- View this message in context: http://koha.1045719.n5.nabble.com/koha-Active-Directory-tp4399726p4400817.ht... Sent from the Koha - Discuss mailing list archive at Nabble.com.
any ideas? -- View this message in context: http://koha.1045719.n5.nabble.com/koha-Active-Directory-tp4399726p4406006.ht... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Le 16/05/2011 17:55, schwitzd a écrit :
thanks now I'm able to login... but there is one other problem, our active directory structure is like this
- City -- Departement1 -- Departement2 -- Departementn
The user are splitted in the departement OU. If i configure Koha to link in one Departement OU the user inside this it could login in koha but the other one OU no... If I link koha to the up level OU (City) nobody can login into koha.
Hi, I sent a proposition on koha-devel list about the management of multiple OU, I've had no feedback. It was a quite heavy rewrite of the Auth_with_ldap.pm... But was allowing a more manageable way to do identification for each library. And I think there was also some documentation with this module. But definetely, what you would need is a new feature and not possible at the moment with the code. -- Henri-Damien LAURENT
Thanks a lot for your support. I will waiting this new feature :D -- View this message in context: http://koha.1045719.n5.nabble.com/koha-Active-Directory-tp4399726p4406157.ht... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Meaby I have understood. in my case must be like this: <categorycode is="employeetype">S</categorycode> but the attribut employeetype in active directory must be the same of one Patron category? -- View this message in context: http://koha.1045719.n5.nabble.com/koha-Active-Directory-tp4399726p4400688.ht... Sent from the Koha - Discuss mailing list archive at Nabble.com.
participants (2)
-
LAURENT Henri-Damien -
schwitzd