From ee9488b511773b741c07c274b7ddb9fd824f5421 Mon Sep 17 00:00:00 2001 From: janw Date: Tue, 11 Mar 2008 13:37:50 +0000 Subject: [PATCH] Don't by case sensitive when comparing mac addresses. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9674 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/SIPackages.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-si/modules/SIPackages.pm b/gosa-si/modules/SIPackages.pm index 099ae2121..9f250969e 100644 --- a/gosa-si/modules/SIPackages.pm +++ b/gosa-si/modules/SIPackages.pm @@ -658,7 +658,7 @@ sub who_has_i_do { sub new_ldap_config { my ($address) = @_ ; - my $sql_statement= "SELECT * FROM known_clients WHERE hostname='$address' OR macaddress='$address'"; + my $sql_statement= "SELECT * FROM known_clients WHERE hostname='$address' OR macaddress LIKE '$address'"; my $res = $main::known_clients_db->select_dbentry( $sql_statement ); # check hit -- 2.30.2