Skip to Content.
Sympa Menu

devel - Re: [sympa-dev] Patch to make LDAP login behaviour more predictible

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • To: Matthias Warkus <address@concealed>
  • Cc: address@concealed, address@concealed
  • Subject: Re: [sympa-dev] Patch to make LDAP login behaviour more predictible
  • Date: Thu, 03 Sep 2009 12:26:44 +0200

Hi Matthias,

You're both right! We applied your patch to both 6.0 branch and the development trunk.

Thanks for submitting it!

Regards,

David

Matthias Warkus a écrit :
Hi,

my boss proposes the following change in order to make logging into
WWSympa with an LDAP account behave in a more consistent fashion:

====BEGIN DIFF====
*** bin/Auth.pm 2009-08-25 09:56:40.000000000 +0200
--- /tmp/Auth.pm 2009-08-31 12:19:18.000000000 +0200
***************
*** 285,292 ****
$ds->disconnect() or &do_log('notice', "unable to unbind");
&do_log('debug3',"canonic: $canonic_email[0]");
! return lc($canonic_email[0]);
! }
--- 285,296 ----
$ds->disconnect() or &do_log('notice', "unable to unbind");
&do_log('debug3',"canonic: $canonic_email[0]");
! ! if( &tools::valid_email($auth)) {
! return ($auth);
! }else{
! return lc($canonic_email[0]);
! } }
=====END DIFF=====

What this does is always log the LDAP user in with the actual address
they entered and not the one in their first LDAP mail attribute.

Any comments?

Sincerely,
M.W.

--
David Verdin
Comité réseau des universités




Archive powered by MHonArc 2.6.19+.

Top of Page