The following example shows you the UID search with 400 as the search parameter:
<pre>
ldapsearch -H ldaps://ldapm.tombstone.ch \ -b "dc=foss-cloud,dc=org" \ -s sub -x -D "cn=Manager,dc=foss-cloud,dc=org" \
-W "(&(sstBelongsToResellerUID=4000000)(sstBelongsToCustomerUID=4000001)(uid=400*))"
</pre>
<pre>
Legend
-H: ldapuri
Specify URI(s) referring to the ldap server(s).
</pre>