Changes

stoney core: Global Searches

745 bytes added, 09:09, 28 July 2013
/* Customer Search */
-W -x -LLL \
"(&(sstBelongsToResellerUID=4000000)(sstBelongsToCustomerUID=4000001)(uid=400*))" o sstIsActive
</pre>
 
Do not forget to restrict the search according to the person who is currently logged in.
 
The result(s):
<pre>
dn: uid=4000001,ou=customers,dc=foss-cloud,dc=org
o: Customer Ltd.
sstIsActive: TRUE
</pre>
 
=== Alphanumerical value (non-integer) Customer Search ===
The following example shows you the alphanumerical value (non-integer) search with '''cus''' (cus*) as the search parameter and the attributes '''o''' (for the organisation) and '''sstIsActive''' as the return values:
<pre>
ldapsearch -H ldaps://ldapm.tombstone.ch \
-b "ou=customers,dc=foss-cloud,dc=org" \
-s sub \
-D "cn=Manager,dc=foss-cloud,dc=org" \
-W -x -LLL \
"(&(sstBelongsToResellerUID=4000000)(sstBelongsToCustomerUID=4000001)(o=cus*))" o sstIsActive
</pre>
SLB, editor, reviewer
3,368
edits