Uploaded image for project: 'Openfire'
  1. Openfire
  2. OF-353

LDAP InvalidNameException related to quotes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.3
    • Fix Version/s: 4.5.0
    • Component/s: Core, LDAP
    • Labels:
      None

      Description

      A bug occurs while trying to usegroup-related functionality in an LDAP-based user base.

      From the forum thread:

      We have OpenFire setup to connect (with a read-only user) to our company's Active Directory. When we use the various test screens in the Profile Settings section of OpenFire's administration section, everything appears to work fine.

      Once we try to update sharing information on groups or want to view the groups list, we get hammered by errors in the logfile:

      2009.05.13 14:09:55 [org.jivesoftware.openfire.ldap.LdapGroupProvider.getGroup(LdapGroupProvider.ja va:91)]
      javax.naming.InvalidNameException: "CN="Medewerkers CIO/IS",OU="Distribution Groups",
      OU="Messaging",OU="Users",OU="Netherlands",OU="Central_Services"": close quote 
      appears before end of component
          at javax.naming.NameImpl.extractComp(Unknown Source)
          at javax.naming.NameImpl.<init>(Unknown Source)
          at javax.naming.CompositeName.<init>(Unknown Source)
          at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(Unknown Source)
          at javax.naming.directory.InitialDirContext.getAttributes(Unknown Source)
          at org.jivesoftware.openfire.ldap.LdapGroupProvider.getGroup(LdapGroupProvider.jav a:86)
          at org.jivesoftware.openfire.group.GroupManager.getGroup(GroupManager.java:278)
          at org.jivesoftware.openfire.group.GroupManager.getGroup(GroupManager.java:257)
          at org.jivesoftware.openfire.group.GroupCollection$UserIterator.getNextElement(Gro upCollection.java:103)
          at org.jivesoftware.openfire.group.GroupCollection$UserIterator.hasNext(GroupColle ction.java:66)
          at org.jivesoftware.openfire.roster.RosterManager.hasMutualVisibility(RosterManage r.java:879)
          at org.jivesoftware.openfire.roster.Roster.addSharedUser(Roster.java:876)
          at org.jivesoftware.openfire.roster.RosterManager.groupUserAdded(RosterManager.jav a:628)
      <snip>

      This problem appears to be introduced in more recent code changes:

      I have a problem since I upgraded from OpenFire 3.5 to 3.6.3 with LDAP or rather Active Directory.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              guus Guus der Kinderen
              Reporter:
              guus Guus der Kinderen
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: