Return-Path: X-Original-To: apmail-directory-commits-archive@www.apache.org Delivered-To: apmail-directory-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D4E8DD9DF for ; Tue, 30 Oct 2012 17:54:04 +0000 (UTC) Received: (qmail 87229 invoked by uid 500); 30 Oct 2012 17:54:04 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 87188 invoked by uid 500); 30 Oct 2012 17:54:04 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 87181 invoked by uid 99); 30 Oct 2012 17:54:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 17:54:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 17:54:02 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id A7305238896F for ; Tue, 30 Oct 2012 17:53:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r836617 - in /websites/staging/directory/trunk/content: ./ apacheds/ apacheds/basic-ug/ apacheds/basic-ug/images/ Date: Tue, 30 Oct 2012 17:53:19 -0000 To: commits@directory.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121030175319.A7305238896F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: buildbot Date: Tue Oct 30 17:53:18 2012 New Revision: 836617 Log: Staging update by buildbot for directory Added: websites/staging/directory/trunk/content/apacheds/basic-ug/images/open-schema-browser.png (with props) websites/staging/directory/trunk/content/apacheds/basic-ug/images/schema-browser.png (with props) websites/staging/directory/trunk/content/apacheds/basic-ug/images/schema-objects.png (with props) Modified: websites/staging/directory/trunk/content/ (props changed) websites/staging/directory/trunk/content/apacheds/basic-ug/1-how-to-begin.html websites/staging/directory/trunk/content/apacheds/basic-ug/2-handling-data.html websites/staging/directory/trunk/content/apacheds/basic-ug/2.2-searching-data.html websites/staging/directory/trunk/content/apacheds/basic-ug/2.2.1-simple-search.html websites/staging/directory/trunk/content/apacheds/basic-ug/2.2.2-more-search-options.html websites/staging/directory/trunk/content/apacheds/basic-ug/2.3-introducing-schema.html websites/staging/directory/trunk/content/apacheds/basic-users-guide.html Propchange: websites/staging/directory/trunk/content/ ------------------------------------------------------------------------------ --- cms:source-revision (original) +++ cms:source-revision Tue Oct 30 17:53:18 2012 @@ -1 +1 @@ -1403764 +1403804 Modified: websites/staging/directory/trunk/content/apacheds/basic-ug/1-how-to-begin.html ============================================================================== --- websites/staging/directory/trunk/content/apacheds/basic-ug/1-how-to-begin.html (original) +++ websites/staging/directory/trunk/content/apacheds/basic-ug/1-how-to-begin.html Tue Oct 30 17:53:18 2012 @@ -127,6 +127,7 @@

1 - How to begin

This chapter helps you to set up a server, with the minimal configuration options being explained. That should be enough to get a running server.

+

This user guide is not intended to be a LDAP guide : there are some excellent tutorials or books, we won't try to challenge them !

Table of content

  • 1.1 - What Apache Directory Server is
  • Modified: websites/staging/directory/trunk/content/apacheds/basic-ug/2-handling-data.html ============================================================================== --- websites/staging/directory/trunk/content/apacheds/basic-ug/2-handling-data.html (original) +++ websites/staging/directory/trunk/content/apacheds/basic-ug/2-handling-data.html Tue Oct 30 17:53:18 2012 @@ -132,8 +132,6 @@
  • 2.1 - Data modification
  • 2.2 - Searching Data
      Modified: websites/staging/directory/trunk/content/apacheds/basic-ug/2.2-searching-data.html ============================================================================== --- websites/staging/directory/trunk/content/apacheds/basic-ug/2.2-searching-data.html (original) +++ websites/staging/directory/trunk/content/apacheds/basic-ug/2.2-searching-data.html Tue Oct 30 17:53:18 2012 @@ -126,7 +126,8 @@

      2.2 - Searching Data

      -

      TODO

      +

      Searching is the most frequent operation done on a LDAP server : everything is optimizd so that the search operation is as fast as possible.

      +

      We will show how to do some simple searches on Apache Directory Server in the following pages.

      Table of content

      • 2.2.1 - Simple search
      • Modified: websites/staging/directory/trunk/content/apacheds/basic-ug/2.2.1-simple-search.html ============================================================================== --- websites/staging/directory/trunk/content/apacheds/basic-ug/2.2.1-simple-search.html (original) +++ websites/staging/directory/trunk/content/apacheds/basic-ug/2.2.1-simple-search.html Tue Oct 30 17:53:18 2012 @@ -126,7 +126,29 @@

        2.2.1 - Simple search

        -

        TODO

        +

        Basically, a search in LDAP requires a few parameters : + A server on which we will send the request + A port for this server + A base DN, the location where to start the search from A filter to select the entries to be returned + The user doing the search + A password if the user is not already bound + A scope, defining the depth we should look for + The list of attributes to return

        +

        There are several other options, which will be exposed in the next chapter.

        +

        Doing a Simple Search on the command line

        +

        Here is an exemple of search done on the base we have created :

        +
        $ ldapsearch -h zanzibar -p 10389 -b "o=sevenSeas" -s sub "(cn=James Hook)" +
        +version: 1
        +dn: cn=James Hook,ou=people,o=sevenSeas
        +accessControlSubentries: cn=sevenSeasAuthorizationRequirementsACISubentry,o=sevenSeas
        +creatorsName: cn=Horatio Nelson,ou=people,o=sevenSeas
        +createTimestamp: 20061203140109Z
        +
        + + +

        Here, we see that we are connecting to the sanzibar server, on its 10389 port. As we haven't provided any user, this is an anonymous search, which should be allowed if the server accept anonymous searches. +We then have the base DN, "o=sevenseas", the filter "(cn=James Hook)" and the scope : "sub". The last parameter, "+", asks the server to return all the operational attributes.

        +

        The result is just shown as a result of the command (here, we get back one single entry).