Lines 515-523
class UniventionLDAPSchema(UniventionLDAPExtensionWithListenerHandler):
|
Link Here
|
---|
|
515 |
os.unlink(backup_filename) |
515 |
os.unlink(backup_filename) |
516 |
os.close(backup_fd) |
516 |
os.close(backup_fd) |
517 |
|
517 |
|
|
|
518 |
self._todo_list.append(dn) |
518 |
self._do_reload = True |
519 |
self._do_reload = True |
519 |
if dn in self._todo_list: |
|
|
520 |
self._todo_list = [x for x in self._todo_list if x != dn] |
521 |
|
520 |
|
522 |
finally: |
521 |
finally: |
523 |
listener.unsetuid() |
522 |
listener.unsetuid() |
Lines 768-781
class UniventionLDAPACL(UniventionLDAPExtensionWithListenerHandler):
|
Link Here
|
---|
|
768 |
ucr_handlers.update() |
767 |
ucr_handlers.update() |
769 |
ucr_handlers.commit(ucr, ['/etc/ldap/slapd.conf']) |
768 |
ucr_handlers.commit(ucr, ['/etc/ldap/slapd.conf']) |
770 |
|
769 |
|
|
|
770 |
self._todo_list.append(dn) |
771 |
self._do_reload = True |
771 |
self._do_reload = True |
772 |
if listener.configRegistry.get('server/role') == 'domaincontroller_master': |
|
|
773 |
if dn in self._todo_list: |
774 |
self._todo_list = [x for x in self._todo_list if x != dn] |
775 |
if not self._todo_list: |
776 |
self._do_reload = False |
777 |
else: |
778 |
self._todo_list.append(dn) |
779 |
|
772 |
|
780 |
finally: |
773 |
finally: |
781 |
listener.unsetuid() |
774 |
listener.unsetuid() |