Lines 45-47
def is_service_active(service):
|
Link Here
|
---|
|
45 |
return True |
45 |
return True |
46 |
return False |
46 |
return False |
47 |
|
47 |
|
|
|
48 |
def is_service_available(service): |
49 |
lo = univention.uldap.getMachineConnection() |
50 |
raw_filter = '(univentionService=%s)' |
51 |
filter_expr = ldap.filter.filter_format(raw_filter, (service,)) |
52 |
for (dn, _attr) in lo.search(filter_expr, attr=['cn']): |
53 |
if dn is not None: |
54 |
return True |
55 |
return False |