From: janw Date: Tue, 11 Mar 2008 13:37:50 +0000 (+0000) Subject: Don't by case sensitive when comparing mac addresses. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ee9488b511773b741c07c274b7ddb9fd824f5421;p=gosa.git 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 --- 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