Difference between revisions of "stoney core: Global Searches"

From stoney cloud
Jump to: navigation, search
[unchecked revision][unchecked revision]
(UID Search)
(UID Search)
Line 15: Line 15:
 
<pre>
 
<pre>
 
ldapsearch -H ldaps://ldapm.tombstone.ch \
 
ldapsearch -H ldaps://ldapm.tombstone.ch \
   -b "dc=foss-cloud,dc=org" \
+
   -b "ou=reseller,dc=foss-cloud,dc=org" \
   -s sub -x -D "cn=Manager,dc=foss-cloud,dc=org" \
+
   -s sub \
-W "(&(sstBelongsToResellerUID=4000000)(sstBelongsToCustomerUID=4000001)(uid=400*))"
+
  -D "cn=Manager,dc=foss-cloud,dc=org" \
 +
  -W -x \
 +
  "(&(sstBelongsToResellerUID=4000000)(uid=400*))" o
 
</pre>
 
</pre>
 
<pre>
 
<pre>
Line 23: Line 25:
 
-H: ldapuri
 
-H: ldapuri
 
       Specify URI(s) referring to the ldap server(s).
 
       Specify URI(s) referring to the ldap server(s).
 +
-b: searchbase
 +
      Use searchbase as the starting point for the search  instead  of
 +
      the default.
 +
-s: base|one|sub
 +
      Specify  the  scope of the search to be one of base, one, or sub
 +
      to specify a base object, one-level,  or  subtree  search.  The
 +
      default is sub.
 +
-D: binddn
 +
      Use the Distinguished Name binddn to bind to the LDAP directory.
 +
-W: Prompt for simple authentication.  This is used instead of spec-
 +
    ifying the password on the command line.
 +
-x  Use simple authentication instead of SASL.
 
</pre>
 
</pre>
  

Revision as of 09:50, 28 July 2013

Overview

The main search field in the upper right corner searches the whole directory and gives first results while typing (actual search starts after entering three characters). The following example shows, that after typing four letters, we have four results (each containing the first four letters “Müll”):

  • Two customers “Peter Müller” and “Stefan Müller”.
  • One reseller “Müller & Co GmbH”.
  • One service “Online Backup 10 Gigabyte (Hausi Müller)”.

Search Selection

After the user has entered the first three characters, we do a first search selection:

  • Numerical value (integer): Start a search for a uid (unique identifier)
  • Alphanumerical value (non-integer): Start a search for either displayName or gecos.

Reseller Search

UID Search

The following example shows you the UID search with 400 as the search parameter:

ldapsearch -H ldaps://ldapm.tombstone.ch \
  -b "ou=reseller,dc=foss-cloud,dc=org" \
  -s sub \
  -D "cn=Manager,dc=foss-cloud,dc=org" \
  -W -x \
  "(&(sstBelongsToResellerUID=4000000)(uid=400*))" o
Legend
-H: ldapuri
       Specify URI(s) referring to the ldap server(s).
-b: searchbase
       Use searchbase as the starting point for the search  instead  of
       the default.
-s: base|one|sub
       Specify  the  scope of the search to be one of base, one, or sub
       to specify a base object, one-level,  or  subtree  search.   The
       default is sub.
-D: binddn
       Use the Distinguished Name binddn to bind to the LDAP directory.
-W: Prompt for simple authentication.  This is used instead of spec-
    ifying the password on the command line.
-x  Use simple authentication instead of SASL.

Do not forget to restrict the search according to the person who is currently logged in.

Customer Search

Person (People) Search