--- lib/LDAP/Koha.pm 2009/03/25 23:23:12 40 +++ lib/LDAP/Koha.pm 2009/03/27 16:55:53 43 @@ -22,11 +22,11 @@ our $user = 'unconfigured-user'; our $passwd = 'unconfigured-password'; -our $max_results = 3; # 100; # FIXME +our $max_results = 10; # 100; # FIXME require 'config.pl' if -e 'config.pl'; -my $dbh = DBI->connect($dsn . $database, $user,$passwd, { RaiseError => 1, AutoCommit => 0 }) || die $DBI::errstr; +my $dbh = DBI->connect($dsn . $database, $user,$passwd, { RaiseError => 1, AutoCommit => 1 }) || die $DBI::errstr; # Net::LDAP::Entry will lc all our attribute names anyway, so # we don't really care about correctCapitalization for LDAP @@ -40,7 +40,7 @@ -- SAFEQ specific mappings from UMgr-LDAP.conf surname as displayName, - cardnumber as pager, + rfid_sid as pager, email as mail, categorycode as organizationalUnit, borrowernumber as objectGUID, @@ -54,7 +54,7 @@ 'objectGUID' => 'borrowernumber', 'displayName' => 'surname', 'sn' => 'surname', - 'pager' => 'cardnumber', + 'pager' => 'rfid_sid', }; # attributes which are same for whole set, but somehow