Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17923

ComException thrown from ActiveDirectoryAuthenticationProvider constructor

      Excerpt from error screen:

      com4j.ExecutionException: com4j.ComException: 8007054b Failed to MkParseDisplayName : The specified domain either does not exist or could not be contacted. : .\com4j.cpp:217
      	at com4j.ComThread.execute(ComThread.java:203)
      	at com4j.Task.execute(Task.java:25)
      	at com4j.COM4J.getObject(COM4J.java:256)
      	at hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider.<init>(ActiveDirectoryAuthenticationProvider.java:46)
      

      Installed Jenkins 1.509.1 service on a fresh Windows Server 2012 installation and tried turning on AD authentication. No idea if an AD server was even running, but I should be allowed to experiment right? Instead I got this error when I pressed Save from the security configuration screen, which is not very friendly. Should rather show an error in form validation etc.

      Not even sure why these calls are being done from the constructor; seems to be unused except for logging.

          [JENKINS-17923] ComException thrown from ActiveDirectoryAuthenticationProvider constructor

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          src/main/java/hudson/plugins/active_directory/ActiveDirectoryAuthenticationProvider.java
          src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java
          src/main/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealm/config.jelly
          http://jenkins-ci.org/commit/active-directory-plugin/fbe42164339e5e399de5b8f37a328dbdabd64809
          Log:
          [FIXED JENKINS-17923]

          added form validation check to the ADSI codepath.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: src/main/java/hudson/plugins/active_directory/ActiveDirectoryAuthenticationProvider.java src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java src/main/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealm/config.jelly http://jenkins-ci.org/commit/active-directory-plugin/fbe42164339e5e399de5b8f37a328dbdabd64809 Log: [FIXED JENKINS-17923] added form validation check to the ADSI codepath.

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: