Code

Don't by case sensitive when comparing mac addresses.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Mar 2008 13:37:50 +0000 (13:37 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Mar 2008 13:37:50 +0000 (13:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9674 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/SIPackages.pm

index 099ae2121b449bfd32c8bd2d0266577e74064ca6..9f250969ecba80d8ebf57bfac3c8acb928c6b67a 100644 (file)
@@ -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