def handle(self, **options): server = options['server'] connection = ldap_access.get_connection_from_server(server) sync_ldap_users_and_groups(connection)
def handle_noargs(self, **options): sync_ldap_users_and_groups()