Skip to content

Exacq

Support Portal CMS

Preventing Conflicting User Authentication Types (LDAP/AD vs OAuth) in Enterprise Manager

Overview

Enterprise Manager (EM) supports these authentication types:

Local Managed and Unmanaged users
LDAP / Active Directory
OAuth (Azure AD / Entra ID / Okta / other IDPs)

A significant issue occurs when a user or admin switches from LDAP/AD to OAuth, especially when their OAuth identity provider is synchronized with Active Directory.

When EM previously imported AD users, and the same usernames later appear through OAuth, EM ends up with two identity records for the same username—each with a different authentication type. EM does not currently merge or migrate these identities, resulting in authentication failures and user/role synchronization problems.

If EM was connected to LDAP/AD at any point, it stored users in the DB with:
auth_type = ldap

When a customer later switches to OAuth (usually via Azure AD/Entra ID), EM receives the same usernames as:
auth_type = oauth

Because EM treats these as different identity types, EM cannot reconcile them.

This causes:
-OAuth login failures
-Failed user and role synchronization
-Importer update errors
-Permissions not updating on NVRs

Customer symptoms include:
-OAuth logins fail
-Roles and permissions defined in EM do not sync to NVRs
-Group/role mappings appear to apply but never propagate
-Importer logs show repeated user update warnings

Logs May show the following or similar:
WARNING [Importer2:XXXX,ServerUserAndPrivilegeManager:XXXX,users.py:75]
Failed to update evapi user on server_id: user: , userrole: is_ldap: False as owner:

or:
OAuth login failed: user exists with different authentication type

This indicates EM attempted to update a user whose stored auth_type does not match the method currently expected (OAuth vs LDAP) and will likely result in log in failures and other undesirable cascading effects. These rarely surface in the UI but appear in detailed logging.

This scenario occurs when:
-The customer previously had LDAP/AD integration in EM
-They later switch EM authentication to OAuth
-Their OAuth provider is synchronized with Active Directory
-The same usernames appear again under the OAuth provider
-The legacy LDAP entries remain in the EM database
Because EM does not currently have logic to migrate, merge, or warn about auth-type conflicts, it fails on authentication and synchronization.

Failure to prevent this causes major operational issues:

  1. OAuth logins fail
    EM rejects authentication because the LDAP identity already exists.
  2. User/role synchronization fails
    Permissions configured in EM do not propagate to NVRs.
  3. Importer threads halt on conflicted users
    Role mapping and updates fail silently.
  4. Troubleshooting becomes misleading
    Symptoms resemble EVAPI or SQL problems even though root cause is identity conflict.
  5. Cleanup can require DB rebuild
    Production sites may require SQL cleanup with L3 assistance.

Warning: Before a customer switches authentication methods:

Step 1 – Determine whether EM used AD/LDAP before
Ask:
“Has your Enterprise Manager ever been connected to Active Directory or LDAP?”

Step 2 – Confirm whether their current OAuth IDP syncs with AD
If yes, duplicate usernames are expected.

Step 3 – Remove legacy AD entries before enabling OAuth:

Option A (recommended for non‑production or new deployments):
Rebuild the EM database to clear all LDAP/AD identities cleanly.

Option B (for production systems):
Open an L3 case to guage whether we can remove LDAP users via SQL.
Do not delete LDAP users through the EM UI without guidance.

Step 4 – Enable OAuth only after LDAP identities are fully removed

A fix to prevent this issue is planned for the next release of ExacqVision Enterprise Manager.
This fix is expected to:
-Detect when a username exists under multiple authentication types
-Provide warnings or UI feedback
-Prevent creation of conflicting identities
-Potentially support identity migration or cleanup logic

Escalate when:
-The customer is already in production
-LDAP entries cannot be safely removed from UI
-SQL cleanup is required
-OAuth continues to fail after cleanup
-Importer logs show repeated failed evapi user update entries

Include the following:

  • Full EM Debug Level Support Diagnostic Logging
    -Summary of authentication method history
    -IDP/AD sync information
    -Names of affected users

Error Log Reference (for quick identification):
WARNING [Importer2:XXXX,ServerUserAndPrivilegeManager:XXXX,users.py:75]
Failed to update evapi user … is_ldap: False

This is the primary signature of a conflicting LDAP/OAuth user record.

Final Notes:
This issue is preventable through proper sequencing.
L2 must proactively warn customers who are migrating from AD to OAuth.
A fix is coming in the next EM release, but until then, cleanup or DB rebuild is required.
EM does not yet support automatic identity migration between auth types.

Published March 27, 2026By garethhowell
Categorized as Knowledge Support, Support, Categories Tagged Level2, user management, SSO, propagate, Roles, failed to update user, Entra, user authentication, Okta, auth, OAuth, enteprise manager, log in failed, user exists, EM, 23738, authentication type, Permissions, user sync, evAPI, SSO fails, Importer, mapping

Post navigation

Previous post

Axis Q1800-LE-3 Adds an Additional Stream in the Client

Next post

Remote Connectivity for Desktop Client – What to Expect

Recent Posts

  • Exacq Data Preservation, Transfer & Offload – Important Information
  • Creating Low Res Sub Streams for Exacq Mobile Application
  • Remote Connectivity for Desktop Client – What to Expect
  • Preventing Conflicting User Authentication Types (LDAP/AD vs OAuth) in Enterprise Manager
  • Axis Q1800-LE-3 Adds an Additional Stream in the Client

Archives

  • March 2026
  • February 2026
  • January 2026
  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • September 2020
  • June 2020
  • May 2020
  • March 2020
  • December 2019
  • November 2019
  • October 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • July 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • June 2012
  • May 2012
  • April 2012
  • February 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009

Categories

  • Case Studies
  • exacqVision Client Linux
  • S2
  • Software Categories
  • Sell Sheets
  • exacqVision Client Windows msi
  • AMAG-G4S
  • exacqVision Server Edge
  • Presentations
  • exacqVision Client Windows x64
  • evSentry
  • What's New?
  • Storage Calculator
  • exacqVision Client MacOS
  • MASterMind
  • Product Lifecycle
  • Software Downloads
  • exacqVision Client Windows
  • Exacq Legacy Camera Support
  • FAQs
  • Software Categories
  • exacqVision Client Windows msi x64
  • Archive Sync
  • Solutions
  • Software Categories
  • exacqVision Client MacOS arm64
  • Transacq Installers
  • Announcements
  • Software Categories
  • exacqVision Enterprise Windows
  • VideoGuard Installers
  • Latest Announcements
  • Software Categories
  • exacqVision Enterprise Linux
  • evLPR – Hikvision
  • Notifications
  • Software Categories
  • Installation Software
  • Software Landing Page
  • Software Categories
  • exacqVision Webservice Linux
  • Software Categories
  • exacqVision Server Windows
  • exacqVision Webservice Windows
  • 64-bit Hybrid Capture Card Installers
  • exacqVision Server Linux
  • exacqVision Webservice Windows x64
  • exacqVision Webservice M-Series
  • exacqVision Server Windows x64
  • exacqVision Webservice Linux x64
  • exacqVision Server M-Series
  • exacqVision Server Linux x64
  • Lenel
  • exacqVision Client M-Series
  • Sales Materials
  • exacqVision Client Linux x64
  • DSX
  • exacqVision Server Edge
  • ACTiPI
  • Knowledge Support
  • Technical Advisory Bulletins
  • Cloudvue
  • Cloudvue Cameras
  • Exclude from Global Search
  • Video Library
  • User Guides
  • Configuration
  • Plugin
  • Quick Start Guides
  • Demo
  • ArchivePI
  • Release Notes
  • Cloudvue Gateway
  • Log Level
  • Verbose
  • Documentation
  • exacqVision EDGE
  • Highlighted
  • Data Sheets
  • Installation
  • ArecontPI
  • Highlighted Video Guides
  • exacqVision Enterprise
  • Cloudvue Access Control
  • Warning
  • Support
  • Integrations
  • Marketing
  • exacqVision Client
  • Error
  • Other
  • AxisPI
  • exacqVision Server
  • Critical
  • exacqVision Mobile
  • Youtube Video Library
  • Categories
  • exacqVision Webservice
  • Products
  • exacqVision Hardware
  • Uncategorized
  • exacqVision Integrations
  • Logs
  • Core
  • DahuaPI
  • EventPI
  • ExportPI
  • EvtLogPI
  • GenericCameraPI
  • HikVisionPI
  • Illustra3PI
  • IpCamDetectPI
  • IQeyePI
  • LogPI
  • NotifyPI
  • OnvifnvcPI
  • Other
  • PanasonicPI
  • PosPI
  • PsfPI
  • SamsungPI
  • StreamPI
  • StretchPI
  • SysMgmtPI
  • tDVRPI
  • UpdatePI
  • VivotekPI
  • XdvPI

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Exacq
Proudly powered by WordPress.