Syncing /usr/share/ahenk to src and recreating ahenk.install

This commit is contained in:
Tuncay ÇOLAK 2021-03-18 14:45:55 +03:00
parent a36aca1433
commit e9d1543e43
10 changed files with 421 additions and 307 deletions

489
debian/ahenk.install vendored
View file

@ -1,299 +1,300 @@
etc/logrotate.d/ahenk
etc/logrotate.d
etc/init.d/ahenk
etc/init.d
etc/ahenk/ahenk.conf
etc/ahenk/log.conf
etc/ahenk
etc/logrotate.d/ahenk
etc/logrotate.d
etc
usr/share/libpam-script/pam_script_ses_open
usr/share/libpam-script/pam_script_ses_close
usr/share/libpam-script
usr/share/ahenk/base/util/util.py
usr/share/ahenk/base/util
usr/share/ahenk/base/model/profile.py
usr/share/ahenk/base/model/profile_bean.py
usr/share/ahenk/base/model/task.py
usr/share/ahenk/base/model/enum/message_type.py
usr/share/ahenk/base/model/enum/content_type.py
usr/share/ahenk/base/model/enum/__init__.py
usr/share/ahenk/base/model/enum/message_code.py
usr/share/ahenk/base/model/enum
usr/share/ahenk/base/model/task_bean.py
usr/share/ahenk/base/model/plugin.py
usr/share/ahenk/base/model/__init__.py
usr/share/ahenk/base/model/message_factory.py
usr/share/ahenk/base/model/policy.py
usr/share/ahenk/base/model/response.py
usr/share/ahenk/base/model/modes/logout_mode.py
usr/share/ahenk/base/model/modes/safe_mode.py
usr/share/ahenk/base/model/modes/__init__.py
usr/share/ahenk/base/model/modes/init_mode.py
usr/share/ahenk/base/model/modes/shutdown_mode.py
usr/share/ahenk/base/model/modes/login_mode.py
usr/share/ahenk/base/model/modes
usr/share/ahenk/base/model/plugin_bean.py
usr/share/ahenk/base/model/policy_bean.py
usr/share/ahenk/base/model
usr/share/ahenk/base/timer/timer.py
usr/share/ahenk/base/timer/setup_timer.py
usr/share/ahenk/base/timer
usr/share/ahenk/base/execution/__init__.py
usr/share/ahenk/base/execution/execution_manager.py
usr/share/ahenk/base/execution
usr/share/ahenk/base/config/config_manager.py
usr/share/ahenk/base/config/__init__.py
usr/share/ahenk/base/config
usr/share/ahenk/base/system/system.py
usr/share/ahenk/base/system
usr/share/ahenk/base/timer/setup_timer.py
usr/share/ahenk/base/timer/timer.py
usr/share/ahenk/base/timer
usr/share/ahenk/base/util/util.py
usr/share/ahenk/base/util
usr/share/ahenk/base/event/event_base.py
usr/share/ahenk/base/event/event_manager.py
usr/share/ahenk/base/event
usr/share/ahenk/base/agreement/ahenkmessage.py
usr/share/ahenk/base/agreement/agreement.py
usr/share/ahenk/base/agreement/ask.py
usr/share/ahenk/base/agreement/unregistrationmessage.py
usr/share/ahenk/base/agreement/confirm.py
usr/share/ahenk/base/agreement
usr/share/ahenk/base/scheduler/scheduler_factory.py
usr/share/ahenk/base/scheduler/__init__.py
usr/share/ahenk/base/scheduler/base_scheduler.py
usr/share/ahenk/base/scheduler/custom/scheduledb.py
usr/share/ahenk/base/scheduler/custom/schedule_job.py
usr/share/ahenk/base/scheduler/custom/custom_scheduler.py
usr/share/ahenk/base/scheduler/custom/__init__.py
usr/share/ahenk/base/scheduler/custom/all_match.py
usr/share/ahenk/base/scheduler/custom
usr/share/ahenk/base/scheduler
usr/share/ahenk/base/messaging/messaging.py
usr/share/ahenk/base/messaging/messenger.py
usr/share/ahenk/base/messaging/anonymous_messenger.py
usr/share/ahenk/base/messaging/__init__.py
usr/share/ahenk/base/messaging/message_response_queue.py
usr/share/ahenk/base/messaging
usr/share/ahenk/base/default_policy/config-files/xfce4-notifyd.xml
usr/share/ahenk/base/default_policy/config-files
usr/share/ahenk/base/default_policy/default_policy.py
usr/share/ahenk/base/default_policy/__init__.py
usr/share/ahenk/base/default_policy
usr/share/ahenk/base/deamon/__init__.py
usr/share/ahenk/base/deamon/base_daemon.py
usr/share/ahenk/base/deamon
usr/share/ahenk/base/mail/mail_manager.py
usr/share/ahenk/base/mail
usr/share/ahenk/base/messaging/__init__.py
usr/share/ahenk/base/messaging/anonymous_messenger.py
usr/share/ahenk/base/messaging/messaging.py
usr/share/ahenk/base/messaging/message_response_queue.py
usr/share/ahenk/base/messaging/messenger.py
usr/share/ahenk/base/messaging
usr/share/ahenk/base/task/task_in_queue.py
usr/share/ahenk/base/task/__init__.py
usr/share/ahenk/base/task/task_job.py
usr/share/ahenk/base/task/task_manager.py
usr/share/ahenk/base/task
usr/share/ahenk/base/command/command_runner.py
usr/share/ahenk/base/command/command_manager.py
usr/share/ahenk/base/command/fifo.py
usr/share/ahenk/base/command
usr/share/ahenk/base/__init__.py
usr/share/ahenk/base/event/event_base.py
usr/share/ahenk/base/event/event_manager.py
usr/share/ahenk/base/event
usr/share/ahenk/base/agreement/confirm.py
usr/share/ahenk/base/agreement/agreement.py
usr/share/ahenk/base/agreement/ahenkmessage.py
usr/share/ahenk/base/agreement/ask.py
usr/share/ahenk/base/agreement/unregistrationmessage.py
usr/share/ahenk/base/agreement
usr/share/ahenk/base/plugin/abstract_plugin.py
usr/share/ahenk/base/plugin/plugin_queue.py
usr/share/ahenk/base/plugin/plugin_manager_factory.py
usr/share/ahenk/base/plugin/plugin.py
usr/share/ahenk/base/plugin/__init__.py
usr/share/ahenk/base/plugin/plugin_manager.py
usr/share/ahenk/base/plugin/file_handler.py
usr/share/ahenk/base/plugin/plugin_install_listener.py
usr/share/ahenk/base/plugin
usr/share/ahenk/base/file/ssh_file_transfer.py
usr/share/ahenk/base/file/http_file_transfer.py
usr/share/ahenk/base/file/file_transfer_manager.py
usr/share/ahenk/base/file
usr/share/ahenk/base/scope.py
usr/share/ahenk/base/execution/__init__.py
usr/share/ahenk/base/execution/execution_manager.py
usr/share/ahenk/base/execution
usr/share/ahenk/base/database/ahenk_db_service.py
usr/share/ahenk/base/database
usr/share/ahenk/base/logger/__init__.py
usr/share/ahenk/base/logger/ahenk_logger.py
usr/share/ahenk/base/logger
usr/share/ahenk/base/scheduler/scheduler_factory.py
usr/share/ahenk/base/scheduler/base_scheduler.py
usr/share/ahenk/base/scheduler/__init__.py
usr/share/ahenk/base/scheduler/custom/schedule_job.py
usr/share/ahenk/base/scheduler/custom/all_match.py
usr/share/ahenk/base/scheduler/custom/__init__.py
usr/share/ahenk/base/scheduler/custom/scheduledb.py
usr/share/ahenk/base/scheduler/custom/custom_scheduler.py
usr/share/ahenk/base/scheduler/custom
usr/share/ahenk/base/scheduler
usr/share/ahenk/base/task/task_manager.py
usr/share/ahenk/base/task/task_job.py
usr/share/ahenk/base/task/__init__.py
usr/share/ahenk/base/task/task_in_queue.py
usr/share/ahenk/base/task
usr/share/ahenk/base/file/file_transfer_manager.py
usr/share/ahenk/base/file/ssh_file_transfer.py
usr/share/ahenk/base/file/http_file_transfer.py
usr/share/ahenk/base/file
usr/share/ahenk/base/registration/execute_cancel_sssd_ad_authentication.py
usr/share/ahenk/base/registration/config-files/ldap
usr/share/ahenk/base/registration/config-files/pam_script
usr/share/ahenk/base/registration/config-files/krb5.conf
usr/share/ahenk/base/registration/config-files/sssd_ad.conf
usr/share/ahenk/base/registration/config-files/sssd.conf
usr/share/ahenk/base/registration/config-files
usr/share/ahenk/base/registration/execute_ldap_login.py
usr/share/ahenk/base/registration/execute_sssd_authentication.py
usr/share/ahenk/base/registration/__init__.py
usr/share/ahenk/base/registration/execute_sssd_ad_authentication.py
usr/share/ahenk/base/registration/registration.py
usr/share/ahenk/base/registration/execute_cancel_ldap_login.py
usr/share/ahenk/base/registration/scripts/ldap-login.sh
usr/share/ahenk/base/registration/scripts/ad.sh
usr/share/ahenk/base/registration/scripts
usr/share/ahenk/base/registration/config-files/pam_script
usr/share/ahenk/base/registration/config-files/ldap
usr/share/ahenk/base/registration/config-files/krb5_ad.conf
usr/share/ahenk/base/registration/config-files/ahenk.pulseaudio.desktop
usr/share/ahenk/base/registration/config-files/sssd.conf
usr/share/ahenk/base/registration/config-files/sssd_ad.conf
usr/share/ahenk/base/registration/config-files
usr/share/ahenk/base/registration/execute_cancel_sssd_authentication.py
usr/share/ahenk/base/registration/__init__.py
usr/share/ahenk/base/registration/registration.py
usr/share/ahenk/base/registration/execute_cancel_ldap_login.py
usr/share/ahenk/base/registration/execute_sssd_ad_authentication.py
usr/share/ahenk/base/registration
usr/share/ahenk/base/system/system.py
usr/share/ahenk/base/system
usr/share/ahenk/base/scope.py
usr/share/ahenk/base/model/task.py
usr/share/ahenk/base/model/modes/shutdown_mode.py
usr/share/ahenk/base/model/modes/login_mode.py
usr/share/ahenk/base/model/modes/__init__.py
usr/share/ahenk/base/model/modes/init_mode.py
usr/share/ahenk/base/model/modes/logout_mode.py
usr/share/ahenk/base/model/modes/safe_mode.py
usr/share/ahenk/base/model/modes
usr/share/ahenk/base/model/plugin_bean.py
usr/share/ahenk/base/model/task_bean.py
usr/share/ahenk/base/model/__init__.py
usr/share/ahenk/base/model/profile.py
usr/share/ahenk/base/model/profile_bean.py
usr/share/ahenk/base/model/policy_bean.py
usr/share/ahenk/base/model/message_factory.py
usr/share/ahenk/base/model/response.py
usr/share/ahenk/base/model/plugin.py
usr/share/ahenk/base/model/enum/content_type.py
usr/share/ahenk/base/model/enum/message_code.py
usr/share/ahenk/base/model/enum/__init__.py
usr/share/ahenk/base/model/enum/message_type.py
usr/share/ahenk/base/model/enum
usr/share/ahenk/base/model/policy.py
usr/share/ahenk/base/model
usr/share/ahenk/base/__init__.py
usr/share/ahenk/base/plugin/plugin_install_listener.py
usr/share/ahenk/base/plugin/plugin_queue.py
usr/share/ahenk/base/plugin/abstract_plugin.py
usr/share/ahenk/base/plugin/plugin_manager.py
usr/share/ahenk/base/plugin/plugin_manager_factory.py
usr/share/ahenk/base/plugin/__init__.py
usr/share/ahenk/base/plugin/file_handler.py
usr/share/ahenk/base/plugin/plugin.py
usr/share/ahenk/base/plugin
usr/share/ahenk/base/deamon/base_daemon.py
usr/share/ahenk/base/deamon/__init__.py
usr/share/ahenk/base/deamon
usr/share/ahenk/base/mail/mail_manager.py
usr/share/ahenk/base/mail
usr/share/ahenk/base/database/ahenk_db_service.py
usr/share/ahenk/base/database
usr/share/ahenk/base/command/command_manager.py
usr/share/ahenk/base/command/fifo.py
usr/share/ahenk/base/command/command_runner.py
usr/share/ahenk/base/command
usr/share/ahenk/base
usr/share/ahenk/__init__.py
usr/share/ahenk/ahenkd.py
usr/share/ahenk/helper/__init__.py
usr/share/ahenk/helper/system.py
usr/share/ahenk/helper/__init__.py
usr/share/ahenk/helper
usr/share/ahenk/__init__.py
usr/share/ahenk/plugins/script/execute_script.py
usr/share/ahenk/plugins/script/main.py
usr/share/ahenk/plugins/script/policy.py
usr/share/ahenk/plugins/script
usr/share/ahenk/plugins/ldap-login/execute_ldap_login.py
usr/share/ahenk/plugins/ldap-login/execute_ad_login.py
usr/share/ahenk/plugins/ldap-login/init.py
usr/share/ahenk/plugins/ldap-login/execute_cancel_ldap_login.py
usr/share/ahenk/plugins/ldap-login/main.py
usr/share/ahenk/plugins/ldap-login
usr/share/ahenk/plugins/login-manager/shutdown.py
usr/share/ahenk/plugins/login-manager/machine_shutdown.py
usr/share/ahenk/plugins/login-manager/scripts/cron.sh
usr/share/ahenk/plugins/login-manager/scripts/check.py
usr/share/ahenk/plugins/login-manager/scripts
usr/share/ahenk/plugins/login-manager/init.py
usr/share/ahenk/plugins/login-manager/machine_restart.py
usr/share/ahenk/plugins/login-manager/safe.py
usr/share/ahenk/plugins/login-manager/main.py
usr/share/ahenk/plugins/login-manager/manage.py
usr/share/ahenk/plugins/login-manager/policy.py
usr/share/ahenk/plugins/login-manager
usr/share/ahenk/plugins/manage-root/shutdown.py
usr/share/ahenk/plugins/manage-root/login.py
usr/share/ahenk/plugins/manage-root/set_root_password.py
usr/share/ahenk/plugins/manage-root/init.py
usr/share/ahenk/plugins/manage-root/safe.py
usr/share/ahenk/plugins/manage-root/main.py
usr/share/ahenk/plugins/manage-root/logout.py
usr/share/ahenk/plugins/manage-root/policy.py
usr/share/ahenk/plugins/manage-root
usr/share/ahenk/plugins/network-manager/delete_host.py
usr/share/ahenk/plugins/network-manager/change_hostname.py
usr/share/ahenk/plugins/network-manager/add_dns.py
usr/share/ahenk/plugins/network-manager/get_network_information.py
usr/share/ahenk/plugins/network-manager/add_network.py
usr/share/ahenk/plugins/network-manager/delete_network.py
usr/share/ahenk/plugins/network-manager/block_port.py
usr/share/ahenk/plugins/network-manager/delete_domain.py
usr/share/ahenk/plugins/network-manager/main.py
usr/share/ahenk/plugins/network-manager/delete_dns.py
usr/share/ahenk/plugins/network-manager/allow_port.py
usr/share/ahenk/plugins/network-manager/add_host.py
usr/share/ahenk/plugins/network-manager/add_network.py
usr/share/ahenk/plugins/network-manager/main.py
usr/share/ahenk/plugins/network-manager/get_network_information.py
usr/share/ahenk/plugins/network-manager/delete_dns.py
usr/share/ahenk/plugins/network-manager/add_dns.py
usr/share/ahenk/plugins/network-manager/block_port.py
usr/share/ahenk/plugins/network-manager/delete_host.py
usr/share/ahenk/plugins/network-manager/add_domain.py
usr/share/ahenk/plugins/network-manager/change_hostname.py
usr/share/ahenk/plugins/network-manager
usr/share/ahenk/plugins/ldap/init.py
usr/share/ahenk/plugins/ldap/safe.py
usr/share/ahenk/plugins/ldap/login.py
usr/share/ahenk/plugins/ldap/main.py
usr/share/ahenk/plugins/ldap/move_agent.py
usr/share/ahenk/plugins/ldap/delete_agent.py
usr/share/ahenk/plugins/ldap/policy.py
usr/share/ahenk/plugins/ldap/task_command_id.py
usr/share/ahenk/plugins/ldap/rename_entry.py
usr/share/ahenk/plugins/ldap/shutdown.py
usr/share/ahenk/plugins/ldap/logout.py
usr/share/ahenk/plugins/ldap
usr/share/ahenk/plugins/conky/ask.py
usr/share/ahenk/plugins/conky/execute_xmessage.py
usr/share/ahenk/plugins/conky/safe.py
usr/share/ahenk/plugins/conky/main.py
usr/share/ahenk/plugins/conky/execute_conky.py
usr/share/ahenk/plugins/conky/policy.py
usr/share/ahenk/plugins/conky
usr/share/ahenk/plugins/resource-usage/agent_info
usr/share/ahenk/plugins/resource-usage/shutdown.py
usr/share/ahenk/plugins/resource-usage/resource_info_alert.py
usr/share/ahenk/plugins/resource-usage/resource_info_fetcher.py
usr/share/ahenk/plugins/resource-usage/send_mail.py
usr/share/ahenk/plugins/resource-usage/main.py
usr/share/ahenk/plugins/resource-usage/agent_info.py
usr/share/ahenk/plugins/resource-usage
usr/share/ahenk/plugins/disk-quota/fstab.py
usr/share/ahenk/plugins/disk-quota/get_quota.py
usr/share/ahenk/plugins/disk-quota/init.py
usr/share/ahenk/plugins/disk-quota/line.py
usr/share/ahenk/plugins/disk-quota/safe.py
usr/share/ahenk/plugins/disk-quota/main.py
usr/share/ahenk/plugins/disk-quota/api/disk_quota.py
usr/share/ahenk/plugins/disk-quota/api/disk_quota_ltsp.py
usr/share/ahenk/plugins/disk-quota/api
usr/share/ahenk/plugins/disk-quota/policy.py
usr/share/ahenk/plugins/disk-quota
usr/share/ahenk/plugins/remote-access/setup-vnc-server.py
usr/share/ahenk/plugins/remote-access/main.py
usr/share/ahenk/plugins/remote-access
usr/share/ahenk/plugins/service/service_management.py
usr/share/ahenk/plugins/service/init.py
usr/share/ahenk/plugins/service/service_list.py
usr/share/ahenk/plugins/service/main.py
usr/share/ahenk/plugins/service/get_services.py
usr/share/ahenk/plugins/service
usr/share/ahenk/plugins/resource-usage/agent_info.py
usr/share/ahenk/plugins/resource-usage/agent_info
usr/share/ahenk/plugins/resource-usage/main.py
usr/share/ahenk/plugins/resource-usage/resource_info_alert.py
usr/share/ahenk/plugins/resource-usage/send_mail.py
usr/share/ahenk/plugins/resource-usage/resource_info_fetcher.py
usr/share/ahenk/plugins/resource-usage/shutdown.py
usr/share/ahenk/plugins/resource-usage
usr/share/ahenk/plugins/sudoers/safe.py
usr/share/ahenk/plugins/sudoers/main.py
usr/share/ahenk/plugins/sudoers/policy.py
usr/share/ahenk/plugins/sudoers
usr/share/ahenk/plugins/local-user/add_user.py
usr/share/ahenk/plugins/local-user/scripts/remove_locked_users.sh
usr/share/ahenk/plugins/local-user/scripts/find_locked_users.sh
usr/share/ahenk/plugins/local-user/scripts
usr/share/ahenk/plugins/local-user/get_users.py
usr/share/ahenk/plugins/local-user/init.py
usr/share/ahenk/plugins/local-user/get_groups.py
usr/share/ahenk/plugins/local-user/edit_user.py
usr/share/ahenk/plugins/local-user/main.py
usr/share/ahenk/plugins/local-user/delete_user.py
usr/share/ahenk/plugins/local-user/panelconf/xfce4-panel.xml
usr/share/ahenk/plugins/local-user/panelconf
usr/share/ahenk/plugins/local-user
usr/share/ahenk/plugins/ldap/shutdown.py
usr/share/ahenk/plugins/ldap/login.py
usr/share/ahenk/plugins/ldap/move_agent.py
usr/share/ahenk/plugins/ldap/init.py
usr/share/ahenk/plugins/ldap/safe.py
usr/share/ahenk/plugins/ldap/main.py
usr/share/ahenk/plugins/ldap/delete_agent.py
usr/share/ahenk/plugins/ldap/task_command_id.py
usr/share/ahenk/plugins/ldap/logout.py
usr/share/ahenk/plugins/ldap/policy.py
usr/share/ahenk/plugins/ldap/rename_entry.py
usr/share/ahenk/plugins/ldap
usr/share/ahenk/plugins/rsyslog/main.py
usr/share/ahenk/plugins/rsyslog/policy.py
usr/share/ahenk/plugins/rsyslog
usr/share/ahenk/plugins/disk-quota/init.py
usr/share/ahenk/plugins/disk-quota/safe.py
usr/share/ahenk/plugins/disk-quota/main.py
usr/share/ahenk/plugins/disk-quota/policy.py
usr/share/ahenk/plugins/disk-quota/get_quota.py
usr/share/ahenk/plugins/disk-quota/line.py
usr/share/ahenk/plugins/disk-quota/fstab.py
usr/share/ahenk/plugins/disk-quota/api/disk_quota.py
usr/share/ahenk/plugins/disk-quota/api/disk_quota_ltsp.py
usr/share/ahenk/plugins/disk-quota/api
usr/share/ahenk/plugins/disk-quota
usr/share/ahenk/plugins/network-inventory/main.py
usr/share/ahenk/plugins/network-inventory/multiple-file-transfer.py
usr/share/ahenk/plugins/network-inventory/scannetwork.py
usr/share/ahenk/plugins/network-inventory/installahenk.py
usr/share/ahenk/plugins/network-inventory
usr/share/ahenk/plugins/conky/safe.py
usr/share/ahenk/plugins/conky/main.py
usr/share/ahenk/plugins/conky/policy.py
usr/share/ahenk/plugins/conky/execute_conky.py
usr/share/ahenk/plugins/conky/execute_xmessage.py
usr/share/ahenk/plugins/conky/ask.py
usr/share/ahenk/plugins/conky
usr/share/ahenk/plugins/local-user/panelconf/xfce4-panel.xml
usr/share/ahenk/plugins/local-user/panelconf
usr/share/ahenk/plugins/local-user/init.py
usr/share/ahenk/plugins/local-user/main.py
usr/share/ahenk/plugins/local-user/delete_user.py
usr/share/ahenk/plugins/local-user/get_groups.py
usr/share/ahenk/plugins/local-user/add_user.py
usr/share/ahenk/plugins/local-user/edit_user.py
usr/share/ahenk/plugins/local-user/scripts/find_locked_users.sh
usr/share/ahenk/plugins/local-user/scripts/remove_locked_users.sh
usr/share/ahenk/plugins/local-user/scripts
usr/share/ahenk/plugins/local-user/get_users.py
usr/share/ahenk/plugins/local-user
usr/share/ahenk/plugins/file-management/main.py
usr/share/ahenk/plugins/file-management/write_to_file.py
usr/share/ahenk/plugins/file-management/get_file_content.py
usr/share/ahenk/plugins/file-management
usr/share/ahenk/plugins/ldap-login/init.py
usr/share/ahenk/plugins/ldap-login/main.py
usr/share/ahenk/plugins/ldap-login/execute_ldap_login.py
usr/share/ahenk/plugins/ldap-login/execute_cancel_ldap_login.py
usr/share/ahenk/plugins/ldap-login/execute_ad_login.py
usr/share/ahenk/plugins/ldap-login
usr/share/ahenk/plugins/browser/main.py
usr/share/ahenk/plugins/browser/policy.py
usr/share/ahenk/plugins/browser
usr/share/ahenk/plugins/usb/manage-usb.py
usr/share/ahenk/plugins/usb/init.py
usr/share/ahenk/plugins/usb/main.py
usr/share/ahenk/plugins/usb/policy.py
usr/share/ahenk/plugins/usb/scripts/ENABLED_webcam.sh
usr/share/ahenk/plugins/usb/scripts/DISABLED_usbhid.sh
usr/share/ahenk/plugins/usb/scripts/DISABLED_webcam.sh
usr/share/ahenk/plugins/usb/scripts/ENABLED_printer.sh
usr/share/ahenk/plugins/usb/scripts/ENABLED_usbhid.sh
usr/share/ahenk/plugins/usb/scripts/DISABLED_printer.sh
usr/share/ahenk/plugins/usb/scripts/ENABLED_usbstorage.sh
usr/share/ahenk/plugins/usb/scripts/DISABLED_usbstorage.sh
usr/share/ahenk/plugins/usb/scripts
usr/share/ahenk/plugins/usb/logout.py
usr/share/ahenk/plugins/usb
usr/share/ahenk/plugins/remote-access/main.py
usr/share/ahenk/plugins/remote-access/setup-vnc-server.py
usr/share/ahenk/plugins/remote-access
usr/share/ahenk/plugins/package-manager/init.py
usr/share/ahenk/plugins/package-manager/get_execution_info.py
usr/share/ahenk/plugins/package-manager/repositories.py
usr/share/ahenk/plugins/package-manager/main.py
usr/share/ahenk/plugins/package-manager/package_sources.py
usr/share/ahenk/plugins/package-manager/show_package_archive.py
usr/share/ahenk/plugins/package-manager/installed_packages.py
usr/share/ahenk/plugins/package-manager/package_management.py
usr/share/ahenk/plugins/package-manager/package_archive.py
usr/share/ahenk/plugins/package-manager/scripts/sourcelist.sh
usr/share/ahenk/plugins/package-manager/scripts
usr/share/ahenk/plugins/package-manager/check_package.py
usr/share/ahenk/plugins/package-manager/packages.py
usr/share/ahenk/plugins/package-manager
usr/share/ahenk/plugins/user-privilege/shutdown.py
usr/share/ahenk/plugins/user-privilege/init.py
usr/share/ahenk/plugins/user-privilege/safe.py
usr/share/ahenk/plugins/user-privilege/main.py
usr/share/ahenk/plugins/user-privilege/policy.py
usr/share/ahenk/plugins/user-privilege/shutdown.py
usr/share/ahenk/plugins/user-privilege
usr/share/ahenk/plugins/manage-root/init.py
usr/share/ahenk/plugins/manage-root/safe.py
usr/share/ahenk/plugins/manage-root/login.py
usr/share/ahenk/plugins/manage-root/main.py
usr/share/ahenk/plugins/manage-root/policy.py
usr/share/ahenk/plugins/manage-root/shutdown.py
usr/share/ahenk/plugins/manage-root/set_root_password.py
usr/share/ahenk/plugins/manage-root/logout.py
usr/share/ahenk/plugins/manage-root
usr/share/ahenk/plugins/script/main.py
usr/share/ahenk/plugins/script/policy.py
usr/share/ahenk/plugins/script/execute_script.py
usr/share/ahenk/plugins/script
usr/share/ahenk/plugins/login-manager/init.py
usr/share/ahenk/plugins/login-manager/safe.py
usr/share/ahenk/plugins/login-manager/main.py
usr/share/ahenk/plugins/login-manager/policy.py
usr/share/ahenk/plugins/login-manager/machine_shutdown.py
usr/share/ahenk/plugins/login-manager/scripts/cron.sh
usr/share/ahenk/plugins/login-manager/scripts/check.py
usr/share/ahenk/plugins/login-manager/scripts
usr/share/ahenk/plugins/login-manager/manage.py
usr/share/ahenk/plugins/login-manager/shutdown.py
usr/share/ahenk/plugins/login-manager/machine_restart.py
usr/share/ahenk/plugins/login-manager
usr/share/ahenk/plugins/sudoers/safe.py
usr/share/ahenk/plugins/sudoers/main.py
usr/share/ahenk/plugins/sudoers/policy.py
usr/share/ahenk/plugins/sudoers
usr/share/ahenk/plugins/usb/manage-usb.py
usr/share/ahenk/plugins/usb/scripts/ENABLED_printer.sh
usr/share/ahenk/plugins/usb/scripts/ENABLED_usbstorage.sh
usr/share/ahenk/plugins/usb/scripts/DISABLED_printer.sh
usr/share/ahenk/plugins/usb/scripts/DISABLED_usbhid.sh
usr/share/ahenk/plugins/usb/scripts/DISABLED_usbstorage.sh
usr/share/ahenk/plugins/usb/scripts/DISABLED_webcam.sh
usr/share/ahenk/plugins/usb/scripts/ENABLED_webcam.sh
usr/share/ahenk/plugins/usb/scripts/ENABLED_usbhid.sh
usr/share/ahenk/plugins/usb/scripts
usr/share/ahenk/plugins/usb/init.py
usr/share/ahenk/plugins/usb/main.py
usr/share/ahenk/plugins/usb/logout.py
usr/share/ahenk/plugins/usb/policy.py
usr/share/ahenk/plugins/usb
usr/share/ahenk/plugins/file-management/write_to_file.py
usr/share/ahenk/plugins/file-management/main.py
usr/share/ahenk/plugins/file-management/get_file_content.py
usr/share/ahenk/plugins/file-management
usr/share/ahenk/plugins/package-manager/package_archive.py
usr/share/ahenk/plugins/package-manager/installed_packages.py
usr/share/ahenk/plugins/package-manager/package_sources.py
usr/share/ahenk/plugins/package-manager/package_management.py
usr/share/ahenk/plugins/package-manager/packages.py
usr/share/ahenk/plugins/package-manager/scripts/sourcelist.sh
usr/share/ahenk/plugins/package-manager/scripts
usr/share/ahenk/plugins/package-manager/check_package.py
usr/share/ahenk/plugins/package-manager/repositories.py
usr/share/ahenk/plugins/package-manager/init.py
usr/share/ahenk/plugins/package-manager/show_package_archive.py
usr/share/ahenk/plugins/package-manager/main.py
usr/share/ahenk/plugins/package-manager/get_execution_info.py
usr/share/ahenk/plugins/package-manager
usr/share/ahenk/plugins/network-inventory/installahenk.py
usr/share/ahenk/plugins/network-inventory/multiple-file-transfer.py
usr/share/ahenk/plugins/network-inventory/scannetwork.py
usr/share/ahenk/plugins/network-inventory/main.py
usr/share/ahenk/plugins/network-inventory
usr/share/ahenk/plugins/browser/main.py
usr/share/ahenk/plugins/browser/policy.py
usr/share/ahenk/plugins/browser
usr/share/ahenk/plugins
usr/share/ahenk/ahenkd.py
usr/share/ahenk/api/service/ps_util.py
usr/share/ahenk/api/service
usr/share/ahenk/api

View file

@ -51,7 +51,6 @@ class DefaultPolicy:
else:
self.logger.info(".config/autostart folder exists.")
self.logger.info("Checking if {0}-autostart-for-profile.desktop autorun file exists.".format(exec_command))
if not Util.is_exist("{0}/.config/autostart/{1}-autostart-for-profile.desktop".format(homedir, exec_command)):
self.logger.info("{0}-autostart-for-profile.desktop autorun file does not exists. Creating file.".format(exec_command))
Util.create_file("{0}/.config/autostart/{1}-autostart-for-profile.desktop".format(homedir, exec_command))
@ -60,6 +59,10 @@ class DefaultPolicy:
"Exec={0}{1} www.liderahenk.org".format(firefox_path, exec_command)
Util.write_file("{0}/.config/autostart/{1}-autostart-for-profile.desktop".format(homedir, exec_command), content)
self.logger.info("Autorun config is written to {0}-autostart-for-profile.desktop.".format(exec_command))
gid = self.util.file_group(homedir)
cmd = "chown -R {0}:{1} {2}/.config/autostart".format(username, gid, homedir)
self.util.execute(cmd)
self.logger.info("Set permissons for {0}/.config/autostart directory".format(homedir))
else:
self.logger.info("{0}-autostart-for-profile.desktop exists".format(exec_command))
else:
@ -131,4 +134,4 @@ class DefaultPolicy:
new_element.attrib["value"] = app_name_for_blocking
tree.write(fileName)
else:
self.logger.info("'" + app_name_for_blocking + "' is already added to muted_applications tag.")
self.logger.info("'" + app_name_for_blocking + "' is already added to muted_applications tag.")

View file

@ -53,7 +53,7 @@ class Logger(object):
try:
exc_type, exc_value, exc_trace_back = sys.exc_info()
caller = getframeinfo(stack()[1][0])
message = message.decode("utf-8")
if exc_type is None and exc_value is None and exc_trace_back is None:
self.logger.error('[{0} {1}]\t {2}'.format(self.get_log_header(caller.filename), caller.lineno, message))
else:

View file

@ -0,0 +1,13 @@
[Desktop Entry]
Version=1.0
Name=PulseAudio Sound System
Name[tr]=PulseAudio Ses Sistemi
Comment=Start the PulseAudio Sound System
Comment[tr]=PulseAudio Ses Sistemini Başlat
Exec=pulseaudio --start
Terminal=false
Type=Application
Categories=
GenericName=
X-GNOME-Autostart-Phase=Initialization
X-KDE-autostart-phase=1

View file

@ -1,37 +0,0 @@
[libdefaults]
default_realm = ENGEREK.LOCAL
kdc_timesync = 1
ccache_type = 4
forwardable = true
proxiable = true
fcc-mit-ticketflags = true
[realms]
ENGEREK.LOCAL = {
admin_server = liderahenk.engerek.local
kdc = liderahenk.engerek.local
}
[domain_realm]
.engerek.local = ENGEREK.LOCAL
------------------------------------------------------------------------------------------
[libdefaults]
default_realm = ENGEREK.LOCAL
kdc_timesync = 1
ccache_type = 4
forwardable = true
proxiable = true
fcc-mit-ticketflags = true
[realms]
###realm### = {
###admin_server###
###kdc###
}
[domain_realm]
###own_domain_realm###

View file

@ -0,0 +1,22 @@
[libdefaults]
###default_realm###
kdc_timesync = 1
ccache_type = 4
forwardable = true
proxiable = true
fcc-mit-ticketflags = true
dns_lookup_realm = false
dns_lookup_kdc = true
dns_canonicalize_hostname = true
rdns = false
[realms]
[domain_realm]

View file

@ -23,3 +23,14 @@ ldap_id_mapping = True
use_fully_qualified_names = False
fallback_homedir = /home/%u
access_provider = ad
ad_gpo_access_control = permissive
ad_gpo_ignore_unreadable = true
enumerate = true
auth_provider = ad
chpass_provider = ad
dyndns_update = true
dyndns_update_ptr = false
###ad_hostname###
ldap_schema = ad
ldap_sasl_mech = gssapi
ldap_krb5_init_creds = true

View file

@ -4,6 +4,7 @@
from base.scope import Scope
from base.util.util import Util
from base.system.system import System
import re
class ExecuteCancelSSSDAdAuthentication:
@ -11,6 +12,7 @@ class ExecuteCancelSSSDAdAuthentication:
scope = Scope().get_instance()
self.logger = scope.get_logger()
self.util = Util()
self.system = System()
self.ad_info_path = "/etc/ahenk/ad_info"
def cancel(self):
@ -21,8 +23,10 @@ class ExecuteCancelSSSDAdAuthentication:
file_data = self.util.read_file_by_line(self.ad_info_path)
self.ip_address = file_data[0].strip("\n")
self.host_name = file_data[1].strip("\n")
self.domain_name = file_data[2].strip("\n")
self.logger.info(self.ip_address)
self.logger.info(self.host_name)
self.logger.info(self.domain_name)
self.logger.info("Information read successfully from ad_info.")
else:
self.logger.error("ad_info file not found")
@ -51,17 +55,23 @@ class ExecuteCancelSSSDAdAuthentication:
file_dhclient.write(file_data)
file_dhclient.close()
# Configure hosts for deleting AD "IP address" and "AD hostname"
hosts_conf_path = "/etc/hosts"
file_hosts = open(hosts_conf_path, 'r')
file_data = file_hosts.read()
if ("{0} {1}".format(self.ip_address, self.host_name)) in file_data:
file_data = file_data.replace(("{0} {1}".format(self.ip_address, self.host_name)), " ")
self.logger.info("hosts is configured")
if ("{0} {1}".format(self.ip_address, self.domain_name)) in file_data:
file_data = file_data.replace(("{0} {1}".format(self.ip_address, self.domain_name)), " ")
self.logger.info("hosts is deleted")
else:
self.logger.error("hosts is not configured")
self.logger.error("hosts domain is not deleted")
if ("{0} {1}".format(self.ip_address, self.host_name)) in file_data:
file_data = file_data.replace(("{0} {1}".format(self.ip_address, self.host_name)), " ")
self.logger.info("hosts is deleted")
else:
self.logger.error("hosts hostname is not deleted")
file_hosts.close()
file_hosts = open(hosts_conf_path, 'w')
file_hosts.write(file_data)

View file

@ -4,12 +4,15 @@
from base.scope import Scope
from base.util.util import Util
from base.system.system import System
import time
class ExecuteSSSDAdAuthentication:
def __init__(self):
scope = Scope().get_instance()
self.logger = scope.get_logger()
self.util = Util()
self.system = System()
def authenticate(self, domain_name, host_name, ip_address, password, ad_username):
try:
@ -81,7 +84,6 @@ class ExecuteSSSDAdAuthentication:
lines = lines.replace(lines, ("#" + lines))
resolve_conf_temp.write(lines)
resolve_conf_temp.close()
file_default_resolve = open(resolve_conf_path, 'r')
file_data = file_default_resolve.read()
@ -99,9 +101,17 @@ class ExecuteSSSDAdAuthentication:
file_default_hosts = open(host_path, 'r')
file_data = file_default_hosts.read()
if ("{0} {1}".format(ip_address, host_name)) not in file_data:
file_data = file_data + "\n" + ("{0} {1}".format(ip_address, host_name))
self.logger.info("/etc/hosts is configured")
if ("{0} {1}".format(ip_address, host_name)) not in file_data:
file_data = file_data + "\n" + ("{0} {1}".format(ip_address, host_name))
self.logger.info("/etc/hosts is configured for hostname")
else:
self.logger.info("/etc/hosts is NOT configured for hostname")
if ("{0} {1}".format(ip_address, domain_name)) not in file_data:
file_data = file_data + "\n" + ("{0} {1}".format(ip_address, domain_name))
self.logger.info("/etc/hosts is configured for domainname")
else:
self.logger.info("/etc/hosts is NOT configured for domainname")
file_default_hosts.close()
file_default_hosts = open(host_path, 'w')
@ -117,7 +127,7 @@ class ExecuteSSSDAdAuthentication:
self.logger.error("Script başarısız oldu : " + str(p_err))
# Installation of required packages
(result_code, p_out, p_err) = self.util.execute("sudo apt-get -y install sssd sssd-tools adcli packagekit samba-common-bin samba-libs")
(result_code, p_out, p_err) = self.util.execute("sudo apt-get -y install sssd sssd-tools adcli packagekit samba-common-bin samba-libs dnsutils")
if (result_code == 0):
self.logger.info("İndirmeler Başarılı")
else:
@ -137,18 +147,41 @@ class ExecuteSSSDAdAuthentication:
file_default_pam.write(file_data)
file_default_pam.close()
# Execute the commands that require for join Domain
(result_code, p_out, p_err) = self.util.execute("realm discover {}".format(domain_name.upper()))
if (result_code == 0):
self.logger.info("Realm Discover komutu başarılı")
else:
self.logger.error("Realm Discover komutu başarısız : " + str(p_err))
self.discover_try_counter2 = 0
try:
while (True):
self.discover_try_counter2 = self.discover_try_counter2 + 1
if (self.discover_try_counter2 == 5):
break
else:
(result_code, p_out, p_err) = self.util.execute("realm discover {}".format(domain_name.upper()))
if (result_code == 0):
self.logger.info("Realm Discover komutu başarılı")
break
else:
self.logger.error("Realm Discover komutu başarısız : ")
time.sleep(2)
except Exception as e:
self.logger.error(e)
self.logger.info("Active Directory Discover işlemi esnasında hata oluştu.")
(result_code, p_out, p_err) = self.util.execute("echo \"{0}\" | realm join --user={1} {2}".format(password, ad_username, domain_name.upper()))
if (result_code == 0):
self.logger.info("Realm Join komutu başarılı")
else:
self.logger.error("Realm Join komutu başarısız : " + str(p_err))
self.join_try_counter = 0
try:
while (True):
self.join_try_counter = self.join_try_counter + 1
if (self.join_try_counter == 5):
break
else:
(result_code, p_out, p_err) = self.util.execute("echo \"{0}\" | realm join --user={1} {2}".format(password, ad_username, domain_name.upper()))
if (result_code == 0):
self.logger.info("Realm Join komutu başarılı")
break
else:
self.logger.error("Realm Join komutu başarısız : ")
time.sleep(2)
except Exception as e:
self.logger.error(e)
self.logger.info("Active Directory Join işlemi esnasında hata oluştu.")
# Configure sssd template
sssd_config_template_path = "/usr/share/ahenk/base/registration/config-files/sssd_ad.conf"
@ -175,6 +208,7 @@ class ExecuteSSSDAdAuthentication:
file_data = file_data.replace("###[domain/###", "[domain/{}]".format(domain_name))
file_data = file_data.replace("###ad_domain###", "ad_domain = {}".format(domain_name))
file_data = file_data.replace("###krb5_realm###", "krb5_realm = {}".format(domain_name.upper()))
file_data = file_data.replace("###ad_hostname###", "ad_hostname = {0}.{1}".format(self.system.Os.hostname(), domain_name.lower()))
file_sssd.close()
file_sssd = open(sssd_config_file_path, 'w')
@ -188,6 +222,39 @@ class ExecuteSSSDAdAuthentication:
else:
self.logger.error("Chmod komutu başarısız : " + str(p_err))
# Configure krb5 template
krb5_config_template_path = "/usr/share/ahenk/base/registration/config-files/krb5_ad.conf"
krb5_config_folder_path = "/etc"
krb5_config_file_path = "/etc/krb5.conf"
if not self.util.is_exist(krb5_config_folder_path):
self.util.create_directory(krb5_config_folder_path)
self.logger.info("{0} folder is created".format(krb5_config_folder_path))
if self.util.is_exist(krb5_config_file_path):
self.util.delete_file(krb5_config_file_path)
self.logger.info("delete krb5 org conf")
self.util.copy_file(krb5_config_template_path, krb5_config_folder_path)
self.logger.info("{0} config file is copied under {1}".format(krb5_config_template_path, krb5_config_folder_path))
self.util.rename_file("/etc/krb5_ad.conf", "/etc/krb5.conf")
# Configure krb5_ad.conf
file_krb5 = open(krb5_config_file_path, 'r')
file_data = file_krb5.read()
file_data = file_data.replace("###default_realm###", "default_realm = {}".format(domain_name.upper()))
file_krb5.close()
file_krb5 = open(krb5_config_file_path, 'w')
file_krb5.write(file_data)
file_krb5.close()
# Arrangement of chmod as 644 for krb5_ad.conf
(result_code, p_out, p_err) = self.util.execute("chmod 644 {}".format(krb5_config_file_path))
if(result_code == 0):
self.logger.info("Chmod komutu başarılı bir şekilde çalıştırıldı")
else:
self.logger.error("Chmod komutu başarısız : " + str(p_err))
# Configure sssd for language environment
default_sssd_path = "/etc/default/sssd"
file_default_sssd = open(default_sssd_path, 'r')
@ -211,11 +278,10 @@ class ExecuteSSSDAdAuthentication:
file_default_sssd.close()
self.util.execute("systemctl restart nscd.service")
# self.util.execute("pam-auth-update --force")
self.logger.info("AD Login operation has been completed.")
self.logger.info("AD Login işlemi başarı ile sağlandı.")
return True
except Exception as e:
self.logger.error(str(e))
self.logger.info("AD Login işlemi esnasında hata oluştu.")

View file

@ -151,6 +151,8 @@ class Registration:
self.install_and_config_ad(reg_reply)
self.change_permissions_for_local_users()
self.create_ahenk_pulseaudio_desktop_file()
except Exception as e:
self.logger.error('Registration error. Error Message: {0}.'.format(str(e)))
print(e)
@ -377,6 +379,9 @@ class Registration:
writing_file.close()
self.logger.info("gdm.conf has been configured.")
self.logger.info('GNOME conf file deleted')
self.delete_ahenk_pulseaudio_desktop_file()
Util.shutdown()
except Exception as e:
self.logger.error("Error while running purge_and_unregister process.. Error Message " + str(e))
@ -599,3 +604,23 @@ class Registration:
writing_file.close()
self.logger.info("gdm.conf has been configured.")
def create_ahenk_pulseaudio_desktop_file(self):
ahenkpulseaudio = "/etc/xdg/autostart/ahenk.pulseaudio.desktop"
ahenkpulseaudio_template = "/usr/share/ahenk/base/registration/config-files/ahenk.pulseaudio.desktop"
if not self.util.is_exist(ahenkpulseaudio):
self.logger.info("ahenk.pulseaudio.desktop autostart file doesn't exist")
self.util.create_file(ahenkpulseaudio)
file_ahenkpulseaudio = open(ahenkpulseaudio, 'a')
self.util.copy_file(ahenkpulseaudio_template, ahenkpulseaudio)
file_ahenkpulseaudio.close()
self.logger.info("ahenk.pulseaudio.desktop has been configured.")
else:
self.logger.info("ahenk.pulseaudio.desktop autostart file exist")
def delete_ahenk_pulseaudio_desktop_file(self):
ahenkpulseaudio = "/etc/xdg/autostart/ahenk.pulseaudio.desktop"
if self.util.is_exist(ahenkpulseaudio):
self.util.delete_file(ahenkpulseaudio)
self.logger.info("ahenk.pulseaudio.desktop autostart file deleted")
else:
self.logger.info("ahenk.pulseaudio.desktop autostart file doesn't exist")