From fc42ca7564a550a3fcde5b37b5d6135ce9c04abe Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Thu, 19 Dec 2024 15:26:08 +0100 Subject: [PATCH] MT#59447 fix admin LDAP uri Change-Id: Ie9be0d5ea8428a8a96ebfbadb0d285f5082474b5 --- lib/NGCP/Panel/Utils/Auth.pm | 2 +- lib/NGCP/Panel/Utils/Ldap.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/NGCP/Panel/Utils/Auth.pm b/lib/NGCP/Panel/Utils/Auth.pm index 03c33d7208..2cefec525f 100644 --- a/lib/NGCP/Panel/Utils/Auth.pm +++ b/lib/NGCP/Panel/Utils/Auth.pm @@ -134,7 +134,7 @@ sub perform_auth { } } elsif ($dbadmin->auth_mode eq $ldap_auth_method) { $c->log->debug("login via ldap"); - my ($code,$message) = auth_ldap_simple($c,get_user_dn($user),$pass); + my ($code,$message) = auth_ldap_simple($c,get_user_dn($c,$user),$pass); if ($code == $ldapauthfailed) { $res = 0; } elsif ($code != $ldapauthsuccessful) { diff --git a/lib/NGCP/Panel/Utils/Ldap.pm b/lib/NGCP/Panel/Utils/Ldap.pm index a1210b9b71..06296b96ff 100644 --- a/lib/NGCP/Panel/Utils/Ldap.pm +++ b/lib/NGCP/Panel/Utils/Ldap.pm @@ -111,7 +111,7 @@ sub auth_ldap_simple { my $label = 'LDAP auth: '; - my $ldap_uri = $c->config->{ldap}->{admins}->{uri}; + my $ldap_uri = $c->config->{ldap_admin}->{uri}; my $message = undef; if (length($user_dn) > 0) {