Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-181

add mail support for grouper

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Won't Fix
    • Major
    • 1.5.0
    • 1.5.0
    • API
    • None

    Description

      Hey,

      For 1.5 I was thinking of having a loader that syncs up groups with email lists.
      Basically I was thinking it would be very simple, but would be nice for Grouper to support this (well, really just provide an example).

      Here is how it could work:

      1. Groups synced to mail lists would have a type and attribute: grouperMailList (type), grouperMailListName(attribute), value is the mail list alias
      2. The loader would periodically (default is daily?) process all the mail list types, and would probably just make new lists each time (keep it simple at first) if the group membership has changed in the last day
      3. I would assume either you use sympa, or you can make scripts to import data in this format into your mail server

      http://www.sympa.org/manual/database#importing_data_from_a_text_file

      4. The loader will get all the users in the group, then it needs to get the email address somehow. I think this part can be a hook or a subject attribute. If hook, you need to implement how to go from subjectId to email address (or maybe 100 subjectIds to 100 email addresses ). It could also be a query you configure in your properties file (and put a link in your grouper DB to your IDM DB)
      5. Then grouper would make the textfield, and run two commands. One to copy the file to another server, and one to load it into your DB. At penn, our grouper server is not our mail list server, so I was thinking I would just have a command use public key SSH so Grouper thinks it is running a command, but really it is running it on another server. I can show you this part later... but if both servers are unix (or have SSH support), it should be easy
      6. Then, we could also have a membership hook which makes this happen more real-time. So if a membership in a mail group is changed, it will cause the mail list to be changed quicker than daily (maybe for UI it is immediate, but for LOADER/WS it is 2 minutes delayed?)

      If you are using another mail server, no problem, the just configure a script that takes data in the above format (email address space name), and it will work fine.

      Also note, this architecture could easily be used for other things... e.g. website ACLs where you need a group with a list of id's, and an apache plugin that takes those id's and handles the authorization... or it could be a "pull" where we give a component (like the web service client in the grouper-ws-test project) which will get the new list, perhaps only if it has changed...

      Thoughts?
      Chris

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: