Bugzilla – Attachment 121265 Details for
Bug 28385
LDAP server configuration broken since migration from XML::Simple
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28385: Add tests
Bug-28385-Add-tests.patch (text/plain), 2.31 KB, created by
Jonathan Druart
on 2021-05-21 06:48:45 UTC
(
hide
)
Description:
Bug 28385: Add tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-05-21 06:48:45 UTC
Size:
2.31 KB
patch
obsolete
>From 382735e6f279ac1fab2673fde5dea64ffaa49086 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 21 May 2021 08:24:51 +0200 >Subject: [PATCH] Bug 28385: Add tests > >This does not test bug 28385 directly but 28278 instead. >--- > t/Koha/Config.t | 14 +++++++++++++- > t/data/koha-conf.xml | 10 +++++++++- > 2 files changed, 22 insertions(+), 2 deletions(-) > >diff --git a/t/Koha/Config.t b/t/Koha/Config.t >index 5493b098cab..ba0caa80a90 100755 >--- a/t/Koha/Config.t >+++ b/t/Koha/Config.t >@@ -117,7 +117,19 @@ subtest 'read_from_file() tests' => sub { > 'backup_db_via_tools' => '0', > 'backup_conf_via_tools' => '0', > 'install_log' => '/home/koha/misc/koha-install-log', >- 'useldapserver' => '0', >+ 'useldapserver' => '1', >+ 'ldapserver' => { >+ ldapserver => { >+ hostname => 'ldap://another_ldap_server:389', >+ user => 'user', >+ pass => 'password', >+ mapping => { >+ firstname => { >+ is => 'givenName' >+ } >+ } >+ } >+ }, > 'useshibboleth' => '0', > 'zebra_lockdir' => '/home/koha/var/lock/zebradb', > 'lockdir' => '__LOCK_DIR__', >diff --git a/t/data/koha-conf.xml b/t/data/koha-conf.xml >index 28cc2689e5b..ae5faf6feff 100644 >--- a/t/data/koha-conf.xml >+++ b/t/data/koha-conf.xml >@@ -101,7 +101,15 @@ > <supportdir>/home/koha/src/misc</supportdir> > --> > <install_log>/home/koha/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 --> >+ <useldapserver>1</useldapserver><!-- see C4::Auth_with_ldap for extra configs you must add if you want to turn this on --> >+ <ldapserver id="ldapserver"> >+ <hostname>ldap://another_ldap_server:389</hostname> >+ <user>user</user> >+ <pass>password</pass> >+ <mapping> >+ <firstname is="givenName" ></firstname> >+ </mapping> >+ </ldapserver> > <useshibboleth>0</useshibboleth><!-- see C4::Auth_with_shibboleth for extra configs you must do to turn this on --> > <zebra_lockdir>/home/koha/var/lock/zebradb</zebra_lockdir> > <lockdir>__LOCK_DIR__</lockdir> >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28385
:
121147
|
121148
|
121244
|
121263
|
121265
|
121279
|
121361