summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/samba/gp_cert_auto_enroll_ext.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/samba/gp_cert_auto_enroll_ext.py b/python/samba/gp_cert_auto_enroll_ext.py
index 585dc560550..fe86d7f3428 100644
--- a/python/samba/gp_cert_auto_enroll_ext.py
+++ b/python/samba/gp_cert_auto_enroll_ext.py
@@ -356,7 +356,7 @@ class gp_cert_auto_enroll_ext(gp_pol_ext):
for e in pol_conf.entries:
if e.keyname == section and e.valuename == 'AEPolicy':
# This policy applies as specified in [MS-CAESO] 4.4.5.1
- if e.data == 0x8000:
+ if e.data & 0x8000:
continue # The policy is disabled
enroll = e.data & 0x1 == 0x1
manage = e.data & 0x2 == 0x2
@@ -462,8 +462,8 @@ class gp_cert_auto_enroll_ext(gp_pol_ext):
return output
for e in pol_conf.entries:
if e.keyname == section and e.valuename == 'AEPolicy':
- enroll = e.data & 0x1 == 1
- if e.data == 0x8000 or not enroll:
+ enroll = e.data & 0x1 == 0x1
+ if e.data & 0x8000 or not enroll:
continue
output['Auto Enrollment Policy'] = {}
url = 'ldap://%s' % get_dc_hostname(self.creds, self.lp)