s3: Make run_rpc_command take strings instead of a ndr_interface_table
[sfrench/samba-autobuild/.git] / libgpo / gpo_sec.c
index 1bcfa1cbf1a3e8cb7473b01232624a6905aeba2d..f20746422ce07bc4c1762d82440b66fd40a405a2 100644 (file)
@@ -23,6 +23,7 @@
 #include "libgpo/ads_convenience.h"
 #include "librpc/gen_ndr/security.h"
 #include "librpc/gen_ndr/ndr_misc.h"
 #include "libgpo/ads_convenience.h"
 #include "librpc/gen_ndr/security.h"
 #include "librpc/gen_ndr/ndr_misc.h"
+#include "../libcli/security/secace.h"
 #include "../libgpo/gpo.h"
 #endif
 
 #include "../libgpo/gpo.h"
 #endif
 
@@ -79,11 +80,7 @@ static bool gpo_sd_check_agp_object(const struct security_ace *ace)
 
 static bool gpo_sd_check_agp_access_bits(uint32_t access_mask)
 {
 
 static bool gpo_sd_check_agp_access_bits(uint32_t access_mask)
 {
-#if _SAMBA_BUILD_ == 4
        return (access_mask & SEC_ADS_CONTROL_ACCESS);
        return (access_mask & SEC_ADS_CONTROL_ACCESS);
-#else
-       return (access_mask & SEC_RIGHTS_EXTENDED);
-#endif
 }
 
 #if 0
 }
 
 #if 0