mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 03:52:17 +03:00
chechk_package changes and ldap configuration bug fixed
This commit is contained in:
parent
6b449d5c00
commit
69d955349e
2 changed files with 3 additions and 5 deletions
|
@ -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###
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue