From 69d955349ef4431f57a115ed8a7af2b76e08ece2 Mon Sep 17 00:00:00 2001 From: agahhulusi Date: Thu, 18 Nov 2021 10:17:00 +0300 Subject: [PATCH] chechk_package changes and ldap configuration bug fixed --- src/base/registration/config-files/sssd.conf | 2 -- src/plugins/package-manager/check_package.py | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/base/registration/config-files/sssd.conf b/src/base/registration/config-files/sssd.conf index 38e467a..a95df1f 100644 --- a/src/base/registration/config-files/sssd.conf +++ b/src/base/registration/config-files/sssd.conf @@ -17,7 +17,6 @@ debug_level = 9 id_provider = ldap auth_provider = ldap access_provider = ldap -#ldap_access_filter = (employeeType=admin) ldap_access_order = ppolicy pam_verbosity=2 ###ldap_pwdlockout_dn### @@ -34,7 +33,6 @@ ldap_user_gecos = cn ldap_tls_reqcert = never ldap_auth_disable_tls_never_use_in_production = true override_shell = /bin/bash -enumerate = true cache_credentials = true sudo_provider = ldap ###ldap_sudo_search_base### diff --git a/src/plugins/package-manager/check_package.py b/src/plugins/package-manager/check_package.py index 490ceef..a8ad1ae 100644 --- a/src/plugins/package-manager/check_package.py +++ b/src/plugins/package-manager/check_package.py @@ -29,14 +29,14 @@ class CheckPackage(AbstractPlugin): if data[0] == 'Version': # Package is installed if package_version is None or len(package_version) == 0: - result = 'Paket yüklü' + result = 1 res['version'] = data[1] elif data[1] is not None and (package_version + '\n') in data[ 1]: # Package version is the same with wanted version - result = 'Paket yüklü' + result = 0 res['version'] = data[1] else: - result = 'Paket yüklü; fakat başka bir versiyonla' + result = 2 res['version'] = data[1] else: # Package is not installed result = 'Paket yüklü değil'