Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
lemonldap-ng
lemonldap-ng
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 205
    • Issues 205
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 2
    • Merge Requests 2
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Packages
    • Packages
    • Container Registry
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • LemonLDAP NG
  • lemonldap-nglemonldap-ng
  • Issues
  • #1281

Closed
Open
Opened Jul 25, 2017 by Mathieu Parent@sathieu
  • Report abuse
  • New issue
Report abuse New issue

purgeLocalCache should use conf from manager

Here is my proposed fix, inspired by purgeCentralCache:

diff --git a/lemonldap-ng-handler/example/scripts/purgeLocalCache b/lemonldap-ng-handler/example/scripts/purgeLocalCache
index f945dc52b..7929c7187 100755
--- a/lemonldap-ng-handler/example/scripts/purgeLocalCache
+++ b/lemonldap-ng-handler/example/scripts/purgeLocalCache
@@ -19,9 +19,14 @@ my $debug = 0;
 #=============================================================================
 my $lmconf = Lemonldap::NG::Common::Conf->new()
   or die $Lemonldap::NG::Common::Conf::msg;
-my $conf = $lmconf->getLocalConf(HANDLERSECTION)
+my $conf = $lmconf->getConf or die "Unable to get configuration ($!)";
+my $localconf = $lmconf->getLocalConf(HANDLERSECTION)
   or die "Unable to get local configuration ($!)";
 
+if ($localconf) {
+    $conf->{$_} = $localconf->{$_} foreach ( keys %$localconf );
+}
+
 print "Configuration loaded\n" if $debug;
 
 # Handler cache
Assignee
Assign to
1.9.15
Milestone
1.9.15
Assign milestone
Time tracking
None
Due date
None
1
Labels
Handler
Assign labels
  • View project labels
Reference: lemonldap-ng/lemonldap-ng#1281