About Active Directory (on-prem)
The Active Directory (on-prem) integration connects Serval directly to your on-premises Microsoft Active Directory - or another LDAP v3 directory - for user and group sync, group-based access management, and full directory operations from workflows. Unlike SaaS integrations, there is no OAuth and no vendor API: Serval speaks the LDAP protocol directly from the Serval worker, which dials only the server URL you configure. On self-hosted workers configured with local credentials, the worker reads your bind credentials from its own local store at execution time instead of fetching them from Serval’s cloud. Every operation uses a fresh, short-lived connection with TLS 1.2 as the minimum version. Authentication: LDAP simple bind with a dedicated service account (Server URL, Base DN, Bind DN, Bind Password, plus an optional CA certificate). Secrets are stored encrypted. Data sync: Off until you turn on Resource Sync and User Sync for the connection (see Connect in Serval for where each switch lives). Once on, users and groups sync every 4 hours as change-only sweeps where the directory supports them, with a full read of users about once a day and of groups every 16 hours. Only the full reads reconcile objects deleted in AD. Workflow actions (search, group changes, entry edits, password resets) run on demand.What the Active Directory (on-prem) integration enables
Get your credentials
You need a dedicated Active Directory service account for Serval to bind with, your domain controller’s URL (ldaps:// on port 636 recommended), your domain’s Base DN, and - if your domain controller’s TLS certificate is issued by an internal CA - the root CA certificate in PEM format. Microsoft’s guide to enabling LDAPS is here: Enable LDAP over SSL with a third-party certification authority.Create a service account
CN=svc-serval,OU=ServiceAccounts,DC=corp,DC=example,DC=com). Set a strong, non-expiring password.Grant least-privilege permissions
Find your Base DN
(Get-ADDomain).DistinguishedName in PowerShell on a domain-joined machine, or ldapsearch -x -H ldap://dc01.corp.example.com -s base namingContexts from Linux.Choose a connection method
Export your root CA certificate (internal CAs only)
certutil -ca.cert ca.pem on the DC, or openssl s_client -connect dc01.corp.example.com:636 -showcerts to capture the chain. Convert DER to PEM with certutil -encode ca.cer ca.pem or openssl x509 -inform der -in ca.cer -out ca.pem.Verify the certificate
openssl s_client -connect dc01.corp.example.com:636 -CAfile ca.pem reports “Verify return code: 0 (ok)”.Confirm network reachability
Connect in Serval
Enter the Server URL
Enter the Base DN
Enter the Bind DN
Enter the Bind Password
Paste the CA Certificate (optional)
Leave 'Allow plaintext LDAP' off unless you must
Route the connection to your hybrid worker
Turn on the syncs you want
Verifying the connection
After connecting, Serval runs three health checks:Gotchas and troubleshooting
The worker must be able to reach your domain controller
The worker must be able to reach your domain controller
TLS is on by default, even for ldap:// URLs
TLS is on by default, even for ldap:// URLs
Users without an email address are invisible to sync
Users without an email address are invisible to sync
Changes appear within one sweep, deletions after the next full sync
Changes appear within one sweep, deletions after the next full sync
Password resets require an encrypted connection
Password resets require an encrypted connection
Single-page searches silently truncate at 1,000 entries
Single-page searches silently truncate at 1,000 entries
Group membership is AD-flavored: nested groups expanded recursively
Group membership is AD-flavored: nested groups expanded recursively
Editing credentials: blank means keep
Editing credentials: blank means keep
User/Group search base overrides are not in the connect form
User/Group search base overrides are not in the connect form
Searches are validated and time-boxed
Searches are validated and time-boxed
Need help? Contact support@serval.com for assistance with your Active Directory (on-prem) integration.

