[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-register-public] [task #5727] Submission of Plugin Lemon LDAP

From: sebastien diaz
Subject: [Savannah-register-public] [task #5727] Submission of Plugin Lemon LDAP for Sympa
Date: Mon, 17 Jul 2006 17:21:38 +0200
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)


                 Summary: Submission of Plugin Lemon LDAP for Sympa
                 Project: Savannah Administration
            Submitted by: sebdiaz
            Submitted on: lundi 17.07.2006 à 17:21
         Should Start On: lundi 17.07.2006 à 00:00
   Should be Finished on: jeudi 27.07.2006 à 00:00
                Category: Project Approval
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Percent Complete: 0%
             Open/Closed: Open
                  Effort: 0.00



A new project has been registered at Savannah 
The project account will remain inactive until a site admin approve or
discard the registration.


While this item will be useful to track the registration process, approving
or discarding the registration must be done using the specific "Group
Administration" page, accessible only to site administrators, effectively
logged as site administrators (superuser):


######### REGISTRATION DETAILS ######### 

Full Name:
  Plugin Lemon LDAP for Sympa

System Group Name:

  non-GNU software & documentation

  GNU General Public License V2 or later

I'm developing a Plugin for the mailing list manager.
This plugin is a technical authentification with
My code is actually light without Makefile. But I need a technical ressource
to save my work for all user that want use LemonLdap and Sympa.
I send my Light Code
package sympaHandler;
use strict;
use warnings;
use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::Const -compile => qw(OK);
use MIME::Base64;
sub handler {
        my $r=shift;
        open(DAT,">/logs/gcp/sympa/cocoEE.log") ;
        my $myCookies=$r->headers_in->get('Cookie');
        print DAT "AA=$myCookies\n";
        print DAT "BB=";
        print DAT $r->header_in("Authorization");
        print DAT "\n";
        my $auth = $r->header_in("Authorization");
        $auth =~ s/Basic//;
        my ($user, $pass)=split(/:/, decode_base64($auth));
        print DAT "user=$user\n";

        if ($user ne ""&& !$myCookies =~ m/sympauser/)
        my $LDAPHOST=$r->dir_config('LemonSympaLDAPHost');
        my $LDAPFilter=$r->dir_config('LemonSympaLDAPFilter');
        my $LDAPEmailAttr=$r->dir_config('LemonSympaLDAPEmailAttribute');
        my $LDAPEmailSel=$r->dir_config('LemonSympaLDAPEmailSelect');
        my $LemonConf=$r->dir_config('LemonSympaConfFile');
        my $LemonWWConf=$r->dir_config('LemonSympaWWConfFile');

        use lib '/applis/gcp/sympa/sympa/bin';
        use wwslib;
        use Log;
        use Conf;
        use Exporter;
use List;
        use mail;
        use smtp;
        use Conf;
        use Commands;
        use Language;
        use Log;
        use Auth;
        use admin;
        use CGI;
        use CGI::Cookie ;
        require "/applis/gcp/sympa/sympa/bin/";
## Configuration
my $wwsconf = {};

## Change to your wwsympa.conf location
my $conf_file = '/applis/gcp/sympa/sympa/etc/wwsympa.conf';
my $sympa_conf_file = '/applis/gcp/sympa/sympa/etc/sympa.conf';
$conf_file = $LemonWWConf;
$sympa_conf_file = $LemonConf;
my $robot ;
my $param;
my $ip;

Other Software Required:
  This plugin need Sympa and LDAP perl module, perl_mod for apache, CGI perl
Module, ....


Reply to this item at:


  Message posté via/par Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]