cleanup dn from @domain since we extract it from e-mail
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 15 Sep 2009 13:10:13 +0000 (13:10 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 15 Sep 2009 13:10:13 +0000 (13:10 +0000)
lib/LDAP/Koha.pm

index e0b70bf..b497c2f 100644 (file)
@@ -229,6 +229,8 @@ sub search {
                                        undef $entry;
                                }
 
+                               $dn =~ s{@[^,]+}{};
+
                                $entry = Net::LDAP::Entry->new;
                                $entry->dn( $dn );