bugfix: case insensitive LDAP lookups

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

bugfix: case insensitive LDAP lookups

michelinux (Bugzilla)
--- assp.pl.1.2.6.53    2006-12-01 14:01:32.000000000 +0100
+++ assp.pl     2006-12-01 14:13:51.000000000 +0100
@@ -2633,6 +2633,7 @@

 sub localmaildomain {
   my $h = shift;
+  $h =~ tr/A-Z/a-z/;
   $ldapflt = $ldLDAPFilter;
   $ldapflt =~ s/DOMAIN/$h/g;
   $ldaproot = $LDAPRoot;
@@ -2647,6 +2648,7 @@
 # do LDAP lookup

   $current_email = "$1$h";
+  $current_email =~ tr/A-Z/a-z/;
   $at_position = index($current_email, '@');
   $current_username = substr($current_email, 0, $at_position);
   $current_domain = substr($current_email, $at_position + 1);

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Assp-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/assp-devel