Пример #1
0
def main():
    """Start the initial sync and two delta threads."""
    initialize_aad_sync()
    # Create sync listener threads.
    inbound_sync_thread = DeltaSyncThread("Azure Inbound",
                                          inbound_sync_listener)
    outbound_sync_thread = DeltaSyncThread("Azure Outbound",
                                           outbound_sync_listener)
    # Start sync listener threads.
    inbound_sync_thread.start()
    outbound_sync_thread.start()
Пример #2
0
def main():
    """Start the initial sync and two delta threads."""
    tenant_id = get_config("TENANT_ID")
    if not tenant_id:
        LOGGER.warning("No Azure provider configured, exiting...")
        return

    initialize_aad_sync()
    # Create sync listener threads.
    inbound_sync_thread = DeltaSyncThread("Azure Inbound", inbound_sync_listener)
    outbound_sync_thread = DeltaSyncThread("Azure Outbound", outbound_sync_listener)
    # Start sync listener threads.
    inbound_sync_thread.start()
    outbound_sync_thread.start()
Пример #3
0
def main():
    """Start the initial sync and two delta threads."""
    env = Env()
    azure_sync = env.int("ENABLE_AZURE_SYNC", 0)
    if not azure_sync:
        LOGGER.warning("Azure sync not enabled. Exiting...")
        return
    tenant_id = os.getenv("TENANT_ID")
    if not tenant_id:
        LOGGER.warning("No Azure provider configured, exiting...")
        return

    initialize_aad_sync()
    # Create sync listener threads.
    inbound_sync_thread = DeltaSyncThread("Azure Inbound",
                                          inbound_sync_listener)
    outbound_sync_thread = DeltaSyncThread("Azure Outbound",
                                           outbound_sync_listener)
    # Start sync listener threads.
    inbound_sync_thread.start()
    outbound_sync_thread.start()