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

Discovery of LDAP server fails if DNS returns dot as the last character of the SRV record

    XMLWordPrintable

Details

    Description

      Hi,

      It looks like the AD setup-up at my company returns a "." character at the and
      of the _ldap._tcp SRV record for the AD domain. When Hudson tries to access the
      LDAP using such a host name, it of course fails because it can't resolve the
      hostname. The following patch will deal with the issue by replacing any for
      chars at the end of the hostname parsed from SRV record.

      Attachments

        Issue Links

          Activity

            tjormola tjormola added a comment -

            Created an attachment (id=446)
            Fix the reported behaviour

            tjormola tjormola added a comment - Created an attachment (id=446) Fix the reported behaviour
                • Issue 3364 has been marked as a duplicate of this issue. ***
            kohsuke Kohsuke Kawaguchi added a comment - Issue 3364 has been marked as a duplicate of this issue. ***

            Code changed in hudson
            User: : kohsuke
            Path:
            trunk/hudson/plugins/active-directory/src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java
            http://fisheye4.cenqua.com/changelog/hudson/?cs=16664
            Log:
            [FIXED JENKINS-2647] Cut off trailing '.'

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/plugins/active-directory/src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java http://fisheye4.cenqua.com/changelog/hudson/?cs=16664 Log: [FIXED JENKINS-2647] Cut off trailing '.'

            Code changed in hudson
            User: : kohsuke
            Path:
            trunk/hudson/plugins/active-directory/src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java
            http://jenkins-ci.org/commit/31441
            Log:
            JENKINS-2647 fix wasn't implemented correctly.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/plugins/active-directory/src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java http://jenkins-ci.org/commit/31441 Log: JENKINS-2647 fix wasn't implemented correctly.

            People

              Unassigned Unassigned
              tjormola tjormola
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: