diff --git a/src/adldap/ad_security.cpp b/src/adldap/ad_security.cpp index 07f76e1c..4d92a561 100644 --- a/src/adldap/ad_security.cpp +++ b/src/adldap/ad_security.cpp @@ -28,6 +28,7 @@ #include "samba/security_descriptor.h" #include "ad_filter.h" +#include "common_task_manager.h" #include @@ -158,6 +159,8 @@ const QList common_rights_list = { // and when reading it. #define GENERIC_READ_FIXED (SEC_ADS_GENERIC_READ & ~SEC_ADS_LIST_OBJECT) +CommonTaskManager *common_task_manager = new CommonTaskManager(); + SecurityRightState::SecurityRightState(const bool data_arg[SecurityRightStateInherited_COUNT][SecurityRightStateType_COUNT]) { for (int inherited = 0; inherited < SecurityRightStateInherited_COUNT; inherited++) { for (int type = 0; type < SecurityRightStateType_COUNT; type++) { diff --git a/src/adldap/ad_security.h b/src/adldap/ad_security.h index 3e010742..e5885338 100644 --- a/src/adldap/ad_security.h +++ b/src/adldap/ad_security.h @@ -36,6 +36,7 @@ class AdConfig; class AdObject; struct security_descriptor; struct dom_sid; +class CommonTaskManager; typedef void TALLOC_CTX; extern const QList well_known_sid_list; @@ -80,6 +81,9 @@ struct SecurityRight { (another.flags == flags); } }; +Q_DECLARE_METATYPE(SecurityRight) + +extern CommonTaskManager *common_task_manager; QString ad_security_get_well_known_trustee_name(const QByteArray &trustee); QString ad_security_get_trustee_name(AdInterface &ad, const QByteArray &trustee);