Skip navigation
7658 Views 10 Replies Latest reply: Jun 23, 2009 11:20 AM by JustInCase2090 RSS
JustInCase2090 Bronze 6 posts since
Jun 10, 2009
Currently Being Moderated

Jun 11, 2009 2:24 PM

Group Mapping LDAP

I recently set up a windows server to run openfire, I tried to tie it in with an LDAP server and for the most part everything seems to be working fine, it finds all the users and any info for them. The only problem is that when it comes to the group mapping part I do not know any of the info to put in, the defaults are all there, cn, member, description, but the test fails and if I save it doesn't find any of the groups. On another similar post someone said to go in to advanced settings and alter the BASE DN but the advanced only has posix mode and group filter, they are also still at their defualts.

 

I really have no idea where to go from here. If anyone has any tips, maybe on how I might find the the correct info on my LDAP server, or other things to try that would really help. I really don't ever remember changing anything like this from the defaults on the LDAP server but I guess I must have.

 

I know the question is a little vague, sorry if its a stupid question, but thanks in advance for any help.

 

 

 

Also I do have an old server running wildfire, I didnt set it up but I have been looking the the config files to try and find the correct settings but am having no luck. Does anyone know where openfire saves the configuration for the group mapping, I have been searching everywhere so I could compair the two but even running a search for things like "objectClass" comes up with no results. If anyone has a hint as to where I might find the config file that would be a huge help. Also mabey if anyone has an example of what the fields should look like that might help me know what Im looking for as I go through my old servers config.

 

Message was edited by: JustInCase2090

  • dankdub Bronze 13 posts since
    Jun 2, 2009
    Currently Being Moderated
    Jun 11, 2009 12:47 PM (in response to JustInCase2090)
    Re: Group Mapping LDAP

    Softerra's LDAP Browser (http://www.ldapadministrator.com/download.htm) or LDP (Windows Support Tools) should give you additional insight into your LDAP server's configuration/settings.

     

    It's okay to define this stuff post setup too, via the admin web page. It sounds like you're still in the setup wizard, based on your post. Sorry if my assumption is incorrect. If you search this site for 'LDAP' you should be able to find all the info you need to come up to speed and get your environment going... Best of luck! You'll get there

      • dankdub Bronze 13 posts since
        Jun 2, 2009
        Currently Being Moderated
        Jun 12, 2009 10:05 AM (in response to JustInCase2090)
        Re: Group Mapping LDAP

        My ldap.groupMemberField is set to member and my ldap.groupNameField is set to CN - these are the recommended settings, per the install guide for an AD LDAP server.

         

        I'm not sure that I understand what you mean by, "if that was the case then wouldn't my current setting be making all the groups show up but without any members." Where? Spark client? Admin Console?

         

        Here's a brief overview of what I did, I hope this helps...

         

        • Created a 'service' account for LDAP access and assigned the necessary permissions via ADSIedit.msc.
        • Set my base DN to the top level of AD (example: DC=MyDomain,DC=local).
        • Created a global security group in AD for all the users whom I wanted to grant IM access to (example OpenFireUsers). Added appropriate users to said group.
        • Created an OU for all OpenFire groups, placed OpenFireUsers group in OpenFire OU.
        • Set my user filter to the OpenFireUsers group, example:

                (&(objectClass=organizationalPerson) (memberOf=CN=OpenFireUsers,OU=OpenFire,DC=MyDomain,DC=local)

        • Created OpenFire specific groups based on department/role (example OpenFireTeacher, OpenFireTeacherAid, OpenFireAdminStaff) in the OpenFire OU. Added users to their job/department specific goup.
        • Set my group filter to a very generic/simple filter (example: (objectClass=Group) mostly bc I was having some issues that I've yet to work out. This will display all groups within AD under the Users/Groups, Groups tab of the Admin Console. I just selected the groups that i wanted to share and to whom I wanted to share them with and then simplified the groups display name (example Teachers, Teacher Aids, Admin Staff).
        • In Spark your groups, by default, will only show up if a member of the group is logged in *or* if you go to Contacts->Show Empty Groups.

         

        If none of this helps or is coming from far left field, please try to be more concise in articulating the problem you're trying to solve and where you're trying to solve it. Best of luck.

      • sixthring KeyContributor 3,797 posts since
        Apr 2, 2007
        Currently Being Moderated
        Jun 13, 2009 6:53 AM (in response to JustInCase2090)
        Re: Group Mapping LDAP

        What type of LDAP server?  The old config is in a fire called openfire.xml found in the openfire install directory then the config folder.  If it is wildfire, just look for the same thing but using wildfire.

          • jexbigin Bronze 68 posts since
            Jun 12, 2009
            Currently Being Moderated
            Jun 17, 2009 5:45 PM (in response to JustInCase2090)
            Re: Group Mapping LDAP

            I think I know what your having a problem with.  If so I had a similar issue. (http://www.igniterealtime.org/community/thread/38835)

             

            If the first part is you want only the users you put in you JabberAccess security group either directy or indirectly then the users BaseDN can be quite wide but the filter would be along the lines of

            (&(objectClass=user)(memberOf:1.2.840.113556.1.4.1941:=CN=JabberAccess,OU=Compan yName,DC=Company,DC=local))  -- this will return all the users that are members of JabberAccess either by direct membership or membership of a meber group.

             

            For the groups, you can put in a filter like (&(objectClass=group)(CN=JabberAccess,OU=CompanyName,DC=Company,DC=local)) and not change anything.

             

            Brian

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points