Changes

stoney core: Global Searches

203 bytes added, 09:21, 28 July 2013
/* Customer Search */
== Customer Search ==
The customer search is a bit different than the reseller search, because we can have company and private customers.
 
=== Numerical value (integer) Customer Search ===
The following example shows you the numerical value (integer) search (uid search) with '''400''' (400*) as the search parameter and the attributes '''o''' (for the organisation) and '''sstIsActive''' as the return values:
-D "cn=Manager,dc=foss-cloud,dc=org" \
-W -x -LLL \
"(&(sstBelongsToResellerUID=4000000)(sstBelongsToCustomerUID=4000001)(uid=400*))" o sn givenName sstIsActive
</pre>
ldapsearch -H ldaps://ldapm.tombstone.ch \
-b "ou=customers,dc=foss-cloud,dc=org" \
-s sub one \
-D "cn=Manager,dc=foss-cloud,dc=org" \
-W -x -LLL \
"(&(sstBelongsToResellerUID=4000000)(sstBelongsToCustomerUID|(o=4000001cus*)(osn=cus*)(givenName=cus*)))" o sn givenName sstIsActive
</pre>
o: Customer Ltd.
sstIsActive: TRUE
 
dn: uid=5000001,ou=customers,dc=foss-cloud,dc=org
givenName: Name
sstIsActive: TRUE
sn: Customer
</pre>
SLB, editor, reviewer
3,368
edits