-dn: c=US
-objectClass: country
-c: US
-
-dn: o=Example,c=US
+dn: o=Esempio,c=IT
objectClass: organization
+o: Esempio
+o: Esempio S.p.A.
o: Example
-o: Example, Inc.
-
-dn: c=UK
-objectClass: country
-c: UK
dn: o=Example,c=UK
objectClass: organization
o: Example
o: Example, Ltd.
+dn: o=Example,c=US
+objectClass: organization
+o: Example
+o: Example, Inc.
+
dn: c=IT
objectClass: country
c: IT
-dn: o=Esempio,c=IT
-objectClass: organization
-o: Esempio
-o: Esempio S.p.A.
-o: Example
+dn: c=UK
+objectClass: country
+c: UK
+
+dn: c=US
+objectClass: country
+c: US
-dn: c=US
-objectClass: country
-c: US
-
-dn: o=Example,c=US
+dn: o=Beispiel,c=DE
objectClass: organization
+o: Beispiel
+o: Beispiel GmbH
o: Example
-o: Example, Inc.
-dn: c=UK
+dn: c=DE
objectClass: country
-c: UK
+c: DE
+
+dn: o=Esempio,c=IT
+objectClass: organization
+o: Esempio
+o: Esempio S.p.A.
+o: Example
dn: o=Example,c=UK
objectClass: organization
o: Example
o: Example, Ltd.
+dn: o=Example,c=US
+objectClass: organization
+o: Example
+o: Example, Inc.
+
dn: c=IT
objectClass: country
c: IT
-dn: o=Esempio,c=IT
-objectClass: organization
-o: Esempio
-o: Esempio S.p.A.
-o: Example
-
-dn: c=DE
+dn: c=UK
objectClass: country
-c: DE
+c: UK
-dn: o=Beispiel,c=DE
-objectClass: organization
-o: Beispiel
-o: Beispiel GmbH
-o: Example
+dn: c=US
+objectClass: country
+c: US
echo "Searching database..."
-$LDAPSEARCH -b "" -h $LOCALHOST -p $PORT1 > $SEARCHOUT 2>&1
+$LDAPSEARCH -S "" -b "" -h $LOCALHOST -p $PORT1 > $SEARCHOUT 2>&1
RC=$?
if test $RC != 0 ; then
echo "Searching database..."
-$LDAPSEARCH -b "" -h $LOCALHOST -p $PORT1 > $SEARCHOUT 2>&1
+$LDAPSEARCH -S "" -b "" -h $LOCALHOST -p $PORT1 > $SEARCHOUT 2>&1
RC=$?
if test $RC != 0 ; then