Changes

stoney core: Global Searches

92 bytes added, 08:35, 6 May 2014
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.tombstonestoney-cloud.ch org \ -b "ou=reseller,dc=fossstoney-cloud,dc=org" \
-s one \
-D "cn=Manager,dc=fossstoney-cloud,dc=org" \
-W -x -LLL \
"(uid=*400*)" o sstIsActive
The result(s):
<pre>
dn: uid=4000000,ou=reseller,dc=fossstoney-cloud,dc=org
sstIsActive: TRUE
o: stepping stone GmbH
The following example shows you the alphanumerical value (non-integer) search with '''ste''' (*ste*) as the search parameter and the attributes '''o''' (for the organisation) and '''sstIsActive''' as the return values:
<pre>
ldapsearch -H ldaps://ldapm.tombstonestoney-cloud.ch org \ -b "ou=reseller,dc=fossstoney-cloud,dc=org" \
-s one \
-D "cn=Manager,dc=fossstoney-cloud,dc=org" \
-W -x -LLL \
"(o=*ste*)" o sstIsActive
The result(s):
<pre>
dn: uid=4000000,ou=reseller,dc=fossstoney-cloud,dc=org
sstIsActive: TRUE
o: stepping stone GmbH
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.tombstonestoney-cloud.ch org \ -b "ou=customers,dc=fossstoney-cloud,dc=org" \
-s one \
-D "cn=Manager,dc=fossstoney-cloud,dc=org" \
-W -x -LLL \
"(&(sstBelongsToResellerUID=4000000)(|(uid=*400*)(sstExternalID=*400*)))" o sn givenName sstIsActive sstExternalID
The result(s):
<pre>
dn: uid=4000001,ou=customers,dc=fossstoney-cloud,dc=org
sstIsActive: TRUE
o: stepping stone GmbH
sstExternalID: 40013
dn: uid=4000083,ou=customers,dc=fossstoney-cloud,dc=org
sstIsActive: TRUE
o: DEVROOM
The following example shows you the alphanumerical value (non-integer) search with '''ste''' (*ste*) as the search parameter and the attributes '''o''' (for the organisation), '''givenName''', '''sn''' (surname) and '''sstIsActive''' as the return values:
<pre>
ldapsearch -H ldaps://ldapm.tombstonestoney-cloud.ch org \ -b "ou=customers,dc=fossstoney-cloud,dc=org" \
-s one \
-D "cn=Manager,dc=fossstoney-cloud,dc=org" \
-W -x -LLL \
"(&(sstBelongsToResellerUID=4000000)(|(o=*ste*)(sn=*ste*)(givenName=*ste*)(sstExternalID=*400*)))" o givenName sn sstIsActive sstExternalID
The result(s):
<pre>
dn: uid=4000001,ou=customers,dc=fossstoney-cloud,dc=org
sstIsActive: TRUE
o: stepping stone GmbH
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.tombstonestoney-cloud.ch org \ -b "ou=people,dc=fossstoney-cloud,dc=org" \
-s one \
-D "cn=Manager,dc=fossstoney-cloud,dc=org" \
-W -x -LLL \
"(&(sstBelongsToResellerUID=4000000)(uid=*400*))" o sn givenName sstIsActive
The result(s):
<pre>
dn: uid=4000002,ou=people,dc=fossstoney-cloud,dc=org
givenName: Michael
sn: Eichenberger
sstIsActive: TRUE
dn: uid=4000064,ou=people,dc=fossstoney-cloud,dc=org
givenName: Christian
sn: Wittkowski
sstIsActive: TRUE
dn: uid=4000066,ou=people,dc=fossstoney-cloud,dc=org
givenName: Stijn
sn: Van Paesschen
sstIsActive: FALSE
dn: uid=4000069,ou=people,dc=fossstoney-cloud,dc=org
givenName: Jan
sn: Guldentops
sstIsActive: FALSE
dn: uid=4000080,ou=people,dc=fossstoney-cloud,dc=org
givenName: Tatiana
sn: Eichenberger
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), '''givenName''', '''sn''' (surname) and '''sstIsActive''' as the return values:
<pre>
ldapsearch -H ldaps://ldapm.tombstonestoney-cloud.ch org \ -b "ou=people,dc=fossstoney-cloud,dc=org" \
-s one \
-D "cn=Manager,dc=fossstoney-cloud,dc=org" \
-W -x -LLL \
"(&(sstBelongsToResellerUID=4000000)(|(o=*mic*)(sn=*mic*)(givenName=*mic*)))" o givenName sn sstIsActive
The result(s):
<pre>
dn: uid=4000002,ou=people,dc=fossstoney-cloud,dc=org
givenName: Michael
sn: Eichenberger
The following example shows you the numerical value (integer) search (uid search) with '''372''' (*372*) as the search parameter and the attributes '''uid''' (for the backup account uid), '''gecos''' (the backup name), '''sstQuota''' and '''sstIsActive''' as the return values:
<pre>
ldapsearch -H ldaps://ldapm.tombstonestoney-cloud.ch org \ -b "ou=backup,ou=services,dc=fossstoney-cloud,dc=org" \
-s sub \
-D "cn=Manager,dc=fossstoney-cloud,dc=org" \
-W -x -LLL \
"(&(sstBelongsToResellerUID=4000000)(uid=*372*))" uid gecos sstQuota sstIsActive
The result(s):
<pre>
dn: uid=3723707,ou=accounts,ou=backup,ou=services,dc=fossstoney-cloud,dc=org
uid: 3723707
gecos: Michael Eichenberger
sstQuota: 10737418240
dn: uid=3723708,ou=accounts,ou=backup,ou=services,dc=fossstoney-cloud,dc=org
uid: 3723708
gecos: Christian Wittkowski
The following example shows you the alphanumerical value (non-integer) search with '''mic''' (*mic*) as the search parameter and the attributes '''uid''' (for the backup account uid), '''gecos''' (the backup name), '''sstQuota''' and '''sstIsActive''' as the return values:
<pre>
ldapsearch -H ldaps://ldapm.tombstonestoney-cloud.ch org \ -b "ou=backup,ou=services,dc=fossstoney-cloud,dc=org" \
-s sub \
-D "cn=Manager,dc=fossstoney-cloud,dc=org" \
-W -x -LLL \
"(&(sstBelongsToResellerUID=4000000)(|(cn=*mic*)(gecos=*mic*)(givenName=*mic*)))" uid gecos sstQuota sstIsActive
The result(s):
<pre>
dn: uid=3723707,ou=accounts,ou=backup,ou=services,dc=fossstoney-cloud,dc=org
uid: 3723707
gecos: Michael Eichenberger
SLB, editor, reviewer
3,407
edits