Article - CS349297

"Active Directory error occurred" "LDAP: error code 1" is seen in the SecurityLog when using LDAP/Directory Services to authenticate ThingWorx Platform

Modified: 24-Oct-2021   


Applies To

  • ThingWorx Platform 8.4 to 9.5

Description

  • Cannot get Active Directory users to authenticate correctly in ThingWorx Platform
  • LDAP users cannot authenticate in ThingWorx Platform
  • Configured a Directory Services entity and users cannot authenticate in ThingWorx
  • Executing Verify under Test Connection on the Configuration tab of a Directory Services entity is failing with the following:
    • Unable to Connect
  • java.lang.NullPointerException: userName was null is present in the SecurityLog
  • SecurityLog.log within <ThingworxStorage>\logs shows the following lines when attempting to login as a Directory Services/LDAP user:
    • [L: WARN] [O: S.c.t.s.ApplicationContext] [I: ] [U: ] [S: ] [T: http-nio-80-exec-5] ApplicationContext.sessionDestroyed(HttpSessionEvent) failed. [ java.lang.NullPointerException: userName was null ][ userName was null ]
      [L: ERROR] [O: S.c.t.s.d.ActiveDirectoryDirectoryService] [I: ] [U: ] [S: ] [T: http-nio-80-exec-5] Active Directory error occurred. [explanation: javax.naming.NamingException: [LDAP: error code 1 - 000020D6: SvcErr: DSID-031007E5, problem 5012 (DIR_ERROR), data 0_ ]; remaining name '<Distinguished Name>']
      [O: S.c.t.s.d.ActiveDirectoryDirectoryService] [I: ] [U: ] [S: ] [T: http-nio-80-exec-5] Active Directory error occurred. [explanation: javax.naming.NamingException: [LDAP: error code 1 - 000020D6: SvcErr: DSID-031007E5, problem 5012 (DIR_ERROR), data 0_ ]; remaining name '<Distinguished Name>']
This is a printer-friendly version of Article 349297 and may be out of date. For the latest version click CS349297