Changes

stoney core: Global Searches

1,544 bytes added, 09:26, 28 July 2013
/* Person (People) Search */
== Person (People) Search ==
=== Numerical value (integer) People 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:
<pre>
ldapsearch -H ldaps://ldapm.tombstone.ch \
-b "ou=people,dc=foss-cloud,dc=org" \
-s one \
-D "cn=Manager,dc=foss-cloud,dc=org" \
-W -x -LLL \
"(&(sstBelongsToResellerUID=4000000)(uid=400*))" o sn givenName sstIsActive
</pre>
 
Do not forget to restrict the search according to the person who is currently logged in.
 
The result(s):
<pre>
dn: uid=4000002,ou=people,dc=foss-cloud,dc=org
givenName: Michael
sn: Eichenberger
 
dn: uid=4000064,ou=people,dc=foss-cloud,dc=org
givenName: Christian
sn: Wittkowski
</pre>
 
=== Alphanumerical value (non-integer) People Search ===
The following example shows you the alphanumerical value (non-integer) search with '''mic''' (mic*) 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=people,dc=foss-cloud,dc=org" \
-s one \
-D "cn=Manager,dc=foss-cloud,dc=org" \
-W -x -LLL \
"(&(sstBelongsToResellerUID=4000000)(|(o=mic*)(sn=mic*)(givenName=mic*)))" o sn givenName sstIsActive
</pre>
 
Do not forget to restrict the search according to the person who is currently logged in.
 
The result(s):
<pre>
dn: uid=4000002,ou=people,dc=foss-cloud,dc=org
givenName: Michael
sn: Eichenberger
</pre>
 
[[Category:Selfcare]]
SLB, editor, reviewer
3,368
edits