---
sourceDocument: Yokohama Platform security
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/platform-security

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# Understanding LDAP integration

# Understanding LDAP integration {#ariaid-title1}

Release version: Yokohama  
Updated January 30, 2025  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 5 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Understanding LDAP integration

LDAP integration enables your ServiceNow instance to use your existing LDAP server as the primary source for user data, ensuring centralized user management without writing changes back to the LDAP directory.
This integration supports LDAP v3-compliant directory services and requires network access, appropriate credentials, and optionally, PKI certificates for secure LDAPS connections.
Show full answer Show less  

## LDAP integration prerequisites and timing

* LDAP server must be LDAP v3 compliant.
* Inbound network access to the LDAP server must be allowed through your firewall.
* Read-only user credentials are required for the service account.
* PKI certificate is needed for LDAPS (secure LDAP) connections.
* Integration is typically configured before instance Go Live but can be set up anytime.

## Data integrity and synchronization

The instance only queries your LDAP server and does not write or modify LDAP data, preserving data integrity. Changes in LDAP are reflected in ServiceNow shortly after they occur. Synchronization of users and group memberships is maintained by LDAP Listener and daily full LDAP browse processes. However, the instance does not delete LDAP entries once removed on the LDAP side, to preserve history and references linked to users and departments.

## Security considerations

* The LDAP connection is made from a fixed IP address and port, authenticating with a read-only LDAP account.
* Support for standard LDAP, encrypted LDAPS connections (using your LDAP server's SSL certificate), and optional IPSEC VPN tunnels for enhanced security.
* Use of a MID Server on the local network is recommended to shield your LDAP server from external traffic.
* Attribute-level control via transform maps allows limiting data exposure to the instance.

## Importing LDAP data

It is best practice to define and map only the necessary LDAP attributes into the ServiceNow user database, tailored to your project scope and business requirements.

## Supported LDAP servers and environment setup

* ServiceNow integrates with LDAP v3-compliant servers such as Microsoft Active Directory, Novell, Domino (Lotus Notes), and Open LDAP using JNDI.
* Multiple LDAP domains are supported by configuring separate LDAP server records for each domain controller and ensuring unique username attributes (e.g., objectSid, email, userPrincipalName) to avoid conflicts.

## Handling LDAP query limits

To manage Active Directory's default query limit of 1000 objects, ServiceNow either breaks queries into smaller alphabetical chunks or uses paging, which is supported by default on Microsoft Active Directory servers and is more efficient for large environments.

## LDAP authentication and password handling

* LDAP uses "Simple Bind" when a password is supplied; otherwise, anonymous login must be allowed.
* The ServiceNow instance authenticates users by retrieving their distinguished name (DN) and rebinding with the user's DN and password.
* User passwords are only transmitted within the HTTPS session and are not stored in the instance.
* User records include a "Source" field to indicate LDAP validation and an "LDAP Server" field to specify which LDAP server to use for authentication.  
An LDAP integration allows your instance to use your existing LDAP server as the
primary source of user data.

## LDAP integration prerequisites

* The directory services server must be LDAP v3 compliant
* Inbound network access through the firewall must be allowed (to the LDAP server)
* External IP or Name of the LDAP server
* User credentials with read-only access
* For LDAPS, a PKI certificate
{#r_LDAPIntegrationFAQs__ul_qpm_dky_3q}

## LDAP integration timing

LDAP integrations are usually done before the instance Go Live, but can be integrated at
any time.

## LDAP server data integrity

Some users are concerned about a third party (the instance in this case) making changes
(writing) to your LDAP server. In an LDAP integration, your instance does not write to the
internal LDAP directory. The instance queries for information, and updates its database
accordingly.

No changes are made to the internal LDAP server by the instance. The service account is
read only.

Most changes (including additions) to your LDAP server are available to the instance within
seconds, depending on how many components of the full LDAP integration are in place.

To keep LDAP records synchronized, schedule a periodic scan of the LDAP server to pick up
changes.

The instance does not synchronize department records. Users and group memberships are kept
up-to-date by the LDAP Listener mechanism and a daily full LDAP Browse, but the instance
does not delete any of these entries once they disappear from LDAP.

If an entry were to be deleted, the entire history would also get deleted, and any
references to it would be cleared or deleted. Configuration Items (CIs), SLA Agreements,
Software Licenses, Purchase Orders, and Service Catalog Entries all have a reference to
Department, and if Department is deleted, then those references get cleared. There are many
references to Users, and so deleting a user would lose all history of what that user did.
Currently, the decision to delete or not to delete is made by our customers.

## Security

The connection is made from a single machine using a fixed IP address through a specific
port on your firewall. Authentication is done with a read-only LDAP account of your
choosing. You can use standard LDAP, or load the public side of an [SSL
certificate installed on your directory](https://servicenow-prod.fluidtopics.net/8wimBNRgZajTB_ILnm5VYA "You can install an X.509 certificate for your LDAP integration."), in which case we can use LDAPS. To add
another layer of security, we also offer the option of a point-to-point IPSEC VPN tunnel.
Speak to your account manager for details and pricing.  
{#r_LDAPIntegrationFAQs__table_gjy_tt2_lq__entry__2}

| Connection | Description |
|-|-|
| MID Server | To shield your LDAP server from external network traffic, install a MID Server on the local network and configure the system to communicate with the MID Server over a secure channel. |
| LDAPS | To establish an encrypted LDAPS connection, load the public side of your LDAP server's SSL certificate. The integration uses the certificate to encrypt all communication between the LDAP server and the instance. |
| VPN | To secure the LDAP server with an encrypted point-to-point IPSEC VPN tunnel, speak to your account manager for details and pricing. |
[Table 1. Secure LDAP connections]

{#r_LDAPIntegrationFAQs__table_gjy_tt2_lq}

Another security aspect to consider is the data shared in an LDAP integration. To limit the
data exposed to your instance, specify attributes in your transform map. For more
information, see [LDAP transform maps](https://servicenow-prod.fluidtopics.net/ujosC~qrJ0xvzyDkw7Gj7w "The transform map moves data from the import set table to the target table (User or Group).").

## Importing LDAP data to the instance

It is recommended that attributes are defined to import only required data. Defined
attributes get mapped into the instance user database.

We cannot answer the question of which specific attributes are needed because this is
determined by the scope of the project and business requirements.

## Supported types of LDAP servers

The instance has successfully integrated with Microsoft Active Directory, Novell, Domino
(Lotus Notes), and Open LDAP. We use JNDI to interface with the LDAP Server. As long as your
LDAP server is LDAP v3 compliant, the integration is successful.

## LDAP single-sign-on

Along with the data population functionality provided with the LDAP import, you can use the
External Authentication functionality supported by the application to prevent your users
from needing to sign on each time.

## Multiple LDAP domains

The recommended method for handling multiple domains is to create a separate LDAP server
record for each domain. Each LDAP server record must point to a domain controller for that
domain. This means the local network must allow connections to each of the domain
controllers.

After expanding to more than one network domain, it is critical that you identify unique
LDAP attributes for the application usernames and import coalesce values. A common unique
coalesce attribute for Active Directory is [objectSid](http://msdn.microsoft.com/en-us/library/windows/desktop/ms679024(v=vs.85).aspx). Unique usernames may vary based on the
LDAP data design. Common attributes are `email` or
`userPrincipalName`.

## Handling query limits

By default, Active Directory 2000/2003 has an LDAP query limit ([maxPageSize](http://support.microsoft.com/kb/315071)) of 1000 objects to prevent excessive loads and denial of service
attacks. We have two methods of dealing with this limit.

The default method is to break up the query to return less than 1000 objects at a time. For
example, query only for object starting with the letter 'a', then query for 'b' objects. The
more efficient method for large environments is to enable paging. Paging is supported by
default on all Microsoft Active Directory servers. It automatically splits the results into
multiple result sets, so we don't have to split up the query into multiple requests.

## LDAP query type

If an LDAP password is supplied then a "Simple Bind" is performed. If no LDAP password is
supplied then "none" is used, in which case the LDAP server must allow anonymous login.

## LDAP authentication

We use provided service account credentials for LDAP to retrieve the user DN from the LDAP
server. Given the DN value for the user, we then rebind with LDAP given the users DN and the
provided password.

## Password storage

The password that the user enters is contained entirely in their HTTPS session. We do not
store that password anywhere.

## Setting up LDAP authentication

These fields on the user record pertain to LDAP:  
* Source: The Source field identifies whether or not a user is validated using LDAP. If the source field starts with "ldap", then the user is validated via LDAP. If the Source field does not start with "ldap", then the password on the user record is used to validate the user upon login.
* LDAP Server: The instance supports multiple LDAP servers, so the LDAP Server field determines which server should be used to authenticate the user.
{#r_LDAPIntegrationFAQs__ul_zpc_fdf_jq}

