Skip to Content.
Sympa Menu

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

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Matthias Warkus <address@concealed>
  • To: address@concealed, address@concealed
  • Subject: [sympa-dev] Patch to make LDAP login behaviour more predictible
  • Date: Tue, 01 Sep 2009 15:46:46 +0200

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.
--
Philipps-Universität Marburg // Hochschulrechenzentrum (HRZ)
Matthias Warkus, M.A.
Hans-Meerwein-Straße // MZG, 06A02 // 35032 Marburg
+49 6421 28 23549




Archive powered by MHonArc 2.6.19+.

Top of Page