r19345: Allow better rootdse searches.
authorGünther Deschner <gd@samba.org>
Mon, 16 Oct 2006 20:27:08 +0000 (20:27 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:30 +0000 (12:15 -0500)
Guenther
(This used to be commit 27fbd85300c810cd06f4df514b6a762f8eac84d5)

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