r19345: Allow better rootdse searches.
[bbaumbach/samba-autobuild/.git] / examples / misc / adssearch.pl
index 70c8f37cd48a84c28f06d793fe6ad7fa29586235..943a755a12da6ce377eb2b436a7747e0d94b29ce 100755 (executable)
@@ -388,7 +388,7 @@ $server     = process_servername($opt_host) ||
 
 
 # get the base
-$base          = $opt_base || 
+$base          = defined($opt_base)? $opt_base : "" || 
                  get_base_from_rootdse($server,$dse);
 
 # get the realm