Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Send a one-time password when the LDAP server is down feature not working - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Send a one-time password when the LDAP server is down feature not working
KB0815996

Send a one-time password when the LDAP server is down feature not working


815 Views Last updated : Jul 24, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

Whenever the LDAP is down then instance will displaying a hyper link to request for a temporal password in the login screen, upon request instance will send an email to the user with a temporal password, but this feature was not working though the LDAP server was not reachable.

An LDAP property is available to send a one-time password to a user if the user is unable to log in because the LDAP server is down. You can also configure another property to control how long the password is valid, but in certain cases onetime password email is not getting triggered though the LDAP server is not reachable.

Below is the property which will trigger this functionality and it is there in instance by default. 

glide.ldap.onetime.password.enabled


Release

All Versions

Cause

Below is the flow to trigger one-time password when the LDAP server is down:

 As per the OOB script logic, user should click on "generateLDAPOneTimePasswordInfoMsg" from the login screen inorder to get a onetime password email.

 

  1. Validate the system properties set for the feature "Send a one-time password when the LDAP server is down" and are they set to active.
    glide.ldap.onetime.password.enabled
    glide.authenticate.onetime.password.validity
    2. Validate the notification configured for the Onetime password and it is set to active.
    Notification name : OneTimePasswordEmailNotification
    3. Validate the records created under security_nonce table, verify does the record exists with context "LDAPAuth" if the record is not created in security_nonce table then notification will not      trigger
    4. Validate does the event password.onetime is getting generated or not in the sysevent table.
    Verify does the below script includes are set to active or not.
    GlideOneTimePasswordGenerator
    LDAPOneTimePasswordGenerator

Resolution

As per the OOB script logic, request for onetime password hyper link will only be populated to user when below conditions are met.

  1. LDAP server should fail with a valid error message , it should not fail with Credentials invalid error message.
    2. User Record should have valid DN and it should route to the same LDAP server which is getting "timedout".
    3. Below error message should populate in error messages when user tries to login.
    "No user information found in ldap for test@xyz.com"
    No DN returned for test@xyz.com
    LDAP: connect timed out

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.