s3-examples: make sure to match correct key name in adssearch.
authorGünther Deschner <gd@samba.org>
Wed, 15 Apr 2009 15:07:48 +0000 (17:07 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 15 Apr 2009 20:49:57 +0000 (22:49 +0200)
Guenther

examples/misc/adssearch.pl

index d17e680..026853d 100755 (executable)
@@ -735,7 +735,7 @@ sub get_machine_password {
                        ($line,$password) = split(/"/, $line);
                        last;
                }
-               if ($line =~ /$key/) {
+               if ($line =~ /\"$key\"/) {
                        $found = 1;
                }
        }