]> git.sur5r.net Git - openldap/commitdiff
Suck in latest from devel, mostly example/documentation changes
authorKurt Zeilenga <kurt@openldap.org>
Mon, 21 Aug 2000 04:40:25 +0000 (04:40 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 21 Aug 2000 04:40:25 +0000 (04:40 +0000)
16 files changed:
INSTALL
README
clients/mail500/README
clients/mail500/main.c
clients/rcpt500/README
clients/rcpt500/rcpt500.help
doc/man/man1/ldapdelete.1
doc/man/man1/ldapmodify.1
doc/man/man1/ldapmodrdn.1
doc/man/man5/ldaptemplates.conf.5
doc/man/man5/ldif.5
doc/man/man5/slapd.conf.5
servers/slapd/back-shell/searchexample.conf
servers/slapd/tools/slapadd.c
servers/slapd/tools/slapcat.c
servers/slurpd/ldap_op.c

diff --git a/INSTALL b/INSTALL
index 2cbb10ca66a008da4b81e939e3189c5df922ba13..3be6f1970476043106a2c0d34d2bb49fd8e6a938 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -4,8 +4,9 @@ Making and Installing the OpenLDAP Distribution
 ** It is recommended that you read or at least skim through ALL of the
 ** instructions in this file before attempting to build the software.
 **
-** The OpenLDAP Quick Start Guide is available at:
-**    http://www.openldap.org/faq/index.cgi?file=172
+** A draft of the "OpenLDAP Administrator's Guide", which includes a
+** quick start guide, is available at:
+**    http://www.openldap.org/devel/admin/
 **
 ** The OpenLDAP Installation FAQ is available at:
 **    http://www.openldap.org/faq/index.cgi?file=8
diff --git a/README b/README
index f42349eb0e69a78a64ec6d7adbc543374c192ecb..6a56a07832c54b3db0cedde2acc70343dab5110f 100644 (file)
--- a/README
+++ b/README
@@ -2,9 +2,6 @@ OpenLDAP 2.0 Gamma README
        This is an gamma release of OpenLDAP 2.0.  It is provided
        for testing purposes only.  It is not for general use.
 
-       The OpenLDAP Developer's FAQ is available at:
-               http://www.openldap.org/faq/index.cgi?file=4
-
        Testers should provide feedback regarding this release using
        the OpenLDAP Issue Tracking System <http://www.openldap.org/its/>.
        Developer's wishing to contribute changes should work with latest
@@ -47,7 +44,6 @@ DOCUMENTATION
 
        Additional documentation can be found in the doc directory.
                doc/devel   Developer Information
-               doc/drafts  LDAP-related IETF drafts
                doc/install Installation and Integration
                doc/man     Raw man(1) pages
                doc/rfcs    LDAP-related Request for Comments
@@ -60,7 +56,7 @@ DOCUMENTATION
        A draft of the "OpenLDAP Administrator's Guide" is available at:
                http://www.openldap.org/devel/admin/
 
-       The OpenLDAP 2.0 Software FAQ is available at:
+       The OpenLDAP Software FAQ is available at:
                http://www.openldap.org/faq/index.cgi
 
 
@@ -73,7 +69,7 @@ SUPPORT / FEEDBACK / PROBLEM REPORTS / DISCUSSIONS
        Issues, such as bug reports, should be reported using our
        our Issue Tracking System <http://www.OpenLDAP.com/its/> or
        by sending mail to OpenLDAP-its@OpenLDAP.org.  Do not use
-       this system for general or software equiries.  Please direct
+       this system for general or software enquiries.  Please direct
        these to the appropriate mailing list.
 
 ---
index edd9b2e582b0ccc4c53cbfd29522c783cbf2f625..5e7c895982b4199f7865d0c391bd27fc0c60584d 100644 (file)
@@ -1,5 +1,5 @@
-This is the README file for mail500, a mailer that does X.500 lookups
-via LDAP.
+This is the README file for mail500, a mailer that does directory
+lookups via LDAP.  The name is historical and refers to X.500.
 
 If you are planning to run mail500 at your site, there are several
 things you will have to tailor in main.c:
@@ -15,8 +15,8 @@ mail500 is designed to be invoked as a mailer (e.g., from sendmail),
 similar to the way /bin/mail works.  It takes a few required arguments
 and then a list of addresses to deliver to.  It expects to find the
 message to deliver on its standard input.  It looks up the addresses in
-X.500 to figure out where to route the mail, and then execs sendmail to
-do the actual delivery.  It supports simple aliases, groups, and
+directory to figure out where to route the mail, and then execs sendmail
+to do the actual delivery.  It supports simple aliases, groups, and
 mailing lists, the details of which are given below.
 
 *** HOW IT WORKS (from the sendmail side): ***
@@ -24,18 +24,17 @@ mailing lists, the details of which are given below.
 The idea is that you might have a rule like this in your sendmail.cf
 file somewhere in rule set 0:
 
-R$*<@umich.edu>$*      $#mail500$@umich.edu$:<$1>
+R$*<@example.com>$*    $#mail500$@example.com$:<$1>
 
-This rule says that any address that ends in @umich.edu will cause
-the mail500 mailer to be called to deliver the mail.  You probably
-also want to do something to prevent addresses like terminator!tim@umich.edu
-or tim%terminator.rs.itd.umich.edu@umich.edu from being passed to mail500.
-At U-M, we do this by adding rules like this to rule set 9 where we
-strip off our local names:
+This rule says that any address that ends in @example.com will cause the
+mail500 mailer to be called to deliver the mail.  You probably also want
+to do something to prevent addresses like uuhost!user@example.com or
+user%host@example.com from being passed to mail500.  This can be done by
+adding rules like this to rule set 9 where we strip off our local names:
 
-R<@umich.edu>$*:$*                 $>10<@>$1:$2
-R$+%$+<@umich.edu>                 $>10$1%$2<@>
-R$+!$+<@umich.edu>                 $>10$1!$2<@>
+R<@example.com>$*:$*                 $>10<@>$1:$2
+R$+%$+<@example.com>                 $>10$1%$2<@>
+R$+!$+<@example.com>                 $>10$1!$2<@>
 
 See the sample sendmail.cf in this directory for more details.
 For sendmail 8.9 (and later) users can use MAILER(mail500) if
@@ -72,34 +71,33 @@ deliver the mail.
 *** HOW IT WORKS (from the mail500 side): ***
 
 When mail500 gets invoked with one or more names to which to
-deliver mail, it searches for each name in X.500.  Where it searches,
+deliver mail, it searches for each name in LDAP.  Where it searches,
 and what kind(s) of search(es) it does are compile-time configurable
-by changing the base array in main.c.  For example, the configuration
-we use at U-M is like this:
+by changing the base array in main.c.  The configuration:
 
        Base    base[] =
-               { "ou=People, dc=OpenLDAP, dc=org", 0
+               { "ou=People, dc=example, dc=com", 0
                        "uid=%s", "cn=%s", NULL,
-                 "ou=System Groups, ou=Groups, dc=OpenLDAP, dc=org", 1
+                 "ou=System Groups, ou=Groups, dc=example, dc=com", 1
                        "(&(cn=%s)(associatedDomain=%h))", NULL, NULL,
-                 "ou=User Groups, ou=Groups, dc=OpenLDAP, dc=org", 1
+                 "ou=User Groups, ou=Groups, dc=example, dc=com", 1
                        "(&(cn=%s)(associatedDomain=%h))", NULL, NULL,
                  NULL
                };
 
-which means that in delivering mail to "name" mail500 would do the
+means that in delivering mail to "name" mail500 would do the
 the following searches, stopping if it found anything at any step:
 
-       Search (18) [2]: dc=org@dc=OpenLDAP@ou=People
+       Search (18) [2]: dc=com@dc=example@ou=People
        Search subtree (uid=name)
-       Search (18) [3]: dc=org@dc=OpenLDAP@ou=People
+       Search (18) [3]: dc=com@dc=example@ou=People
        Search subtree (cn=name)
 
-       Search (18) [4]: dc=org@dc=OpenLDAP@ou=Groups@ou=System Groups
+       Search (18) [4]: dc=com@dc=example@ou=Groups@ou=System Groups
        Search subtree & ((cn=name)(associatedDomain=OpenLDAP.org))
 
-       Search (18) [5]: dc=org@dc=OpenLDAP@ou=Groups@ou=User Groups
-       Search subtree & ((cn=name)(associatedDomain=OpenLDAP.org))
+       Search (18) [5]: dc=com@dc=example@ou=Groups@ou=User Groups
+       Search subtree & ((cn=name)(associatedDomain=example.com))
 
 Notice that when specifying a filter %s is replaced by the name,
 or user portion of the address while %h is replaced by whatever is
@@ -108,7 +106,7 @@ of the address).
 
 You can also specify whether you want search results that matched
 because the entry's RDN matched the search to be given preference
-or not.  At U-M, we only give such preference in the mail group
+or not.  We only give such preference in the mail group
 portion of the searches.  Beware with this option:  the algorithm
 used to decide whether an entry's RDN matched the search is very
 simple-minded, and may not always be correct.
@@ -118,17 +116,17 @@ array can be as large as you want), and an arbitrary limit of 2 filters
 for each base.  If you want more than that, simply changing the 3 in
 the typedef for Base should do the trick.
 
-*** HOW IT WORKS (from the X.500 side): ***
+*** HOW IT WORKS (from the LDAP side): ***
 
-In X.500, there are several new attribute types and one new object
+In LDAP, there are several new attribute types and one new object
 class defined that mail500 makes use of.  At its most basic, for normal
 entries mail500 will deliver to the value(s) listed in the
-rfc822Mailbox attribute of the entry.  For example, at U-M my entry has
+rfc822Mailbox attribute of the entry.  For example, an entry has
 the attribute
 
-       mail= tim@terminator.rs.itd.umich.edu
+       mail: user@example.com
 
-So mail sent to tim@umich.edu will be delivered via mail500 to that
+So mail sent to user@example.com will be delivered via mail500 to that
 address.  If there were multiple values for the mail attribute, multiple
 copies of the mail would be sent.
 
@@ -136,7 +134,7 @@ A new object class, rfc822MailGroup, and several new attributes have
 been defined to handle email groups/mailing lists.  To use this, you
 will need to add this to your local oidtable.oc:
 
-       # object class for representing rfc 822 mailgroups
+       # object class for representing RFC 822 mailgroups
        rfc822MailGroup:        umichObjectClass.2 : \
                top : \
                cn : \
@@ -159,9 +157,9 @@ And you will need to add these to your local oidtable.at:
        requestsTo:             umichAttributeType.31   : DN
 
 The idea was to define a kind of hybrid mail group that could handle
-people who were in X.500 or not.  So, for example, members of a group
-can be specified via the member attribute (for X.500 members) or the
-rfc822MailBox attribute (for non-X.500 members).  Similarly for the
+people who were in LDAP or not.  So, for example, members of a group
+can be specified via the member attribute (for LDAP members) or the
+rfc822MailBox attribute (for non-LDAP members).  Similarly for the
 errorsTo and rfc822ErrorsTo, and the requestsTo and rfc822RequestsTo
 attributes.
 
@@ -169,7 +167,7 @@ To create a real mailing list, with a list maintainer, all you have to
 do is create an rfc822MailGroup and fill in the errorsTo or
 rfc822ErrorsTo attributes (or both).  That will cause any errors
 encountered when delivering mail to the group to go to the addresses
-listed (or X.500 entry via it's mail attribute).
+listed (or LDAP entry via it's mail attribute).
 
 If you fill in the requestsTo or rfc822RequestsTo (or both) attributes,
 mail sent to groupname-request will be sent to the addresses listed
index 3d0c538a24585ba2b184eb122f88f47cd59b9537..789fbe435350a1623cf1e389a67075a7e7e8f0cf 100644 (file)
@@ -108,13 +108,13 @@ typedef struct baseinfo {
 } Base;
 
 Base   base[] = {
-       {"ou=People, dc=OpenLDAP, dc=org",
+       {"ou=People, dc=example, dc=com",
                0, USER,
                {"uid=%s", "cn=%s", NULL}},
-       {"ou=System Groups, ou=Groups, dc=OpenLDAP, dc=org",
+       {"ou=System Groups, ou=Groups, dc=example, dc=com",
                1, 0xff,
                {"(&(cn=%s)(associatedDomain=%h))", NULL, NULL}},
-       {"ou=User Groups, ou=Groups, dc=OpenLDAP, dc=org",
+       {"ou=User Groups, ou=Groups, dc=example, dc=com",
                1, 0xff,
                {"(&(cn=%s)(associatedDomain=%h))", NULL, NULL}},
        {NULL}
index 0cc42675fefcd59d77e45b065e5dfd8991c7abf0..a0f769629372c9490944e79ab368305cf083c7c2 100644 (file)
@@ -1,7 +1,8 @@
-LDAP rcpt500 mail query server README
+OpenLDAP rcpt500 mail query server README
 
 OVERVIEW
-This is a mail-query server that answers X.500 white pages queries.
+
+This is a mail-query server that answers LDAP white pages queries.
 It is designed to be run out of your mail systems alias file, or the
 equivalent.  It expects to be fed the entire contents (including
 headers) of an RFC822 message via standard input.  It parses the
@@ -17,25 +18,25 @@ reply is sent to the sender of the message in response to the command.
 The help command returns the contents of the file rcpt500.help.  You
 can modify the contents as appropriate for your local site.
 
-The query command performs a series of X.500 searches to try to find
+The query command performs a series of LDAP searches to try to find
 a person that matches the object of the query.  If more than one
 X.500 entry matches, a list is returned.  If exactly one is matched,
 detailed information is returned. Here is an example message and rcpt500
 generated reply:
 
 Query message:
-       Mail x500-query@umich.edu
+       Mail ldap-query@example.com
        Subject: find tim howes
        .
 
 Reply from rcpt500:
-    Message-Id: <199209161526.AA12041@umich.edu>
+    Message-Id: <199209161526.AA12041@example.com>
     Date: Wed, 16 Sep 1992 11:26:17 -0400
-    From: "X.500 Query Program" <X500-Query@umich.edu>
+    From: "LDAP Query Program" <ldap-query@example.com>
     Subject: Re: find tim howes
     In-Reply-To: Your message of "Wed, 16 Sep 1992 11:26:12 -0400"
-                <199209161526.AA26144@terminator.cc.umich.edu>
-    To: "Mark Smith" <mcs@terminator.cc.umich.edu>
+                <199209161526.AA26144@terminator.cc.example.com>
+    To: "Mark Smith" <mcs@terminator.cc.example.com>
 
     One exact match was found for 'tim howes':
     "Timothy A Howes, Information Technology Division, Faculty and Staff"
@@ -60,7 +61,7 @@ Reply from rcpt500:
                        tim
 
 If you want to try out rcpt500 yourself before installing it at your site,
-send a message to x500-query@umich.edu (we have a server running
+send a message to ldap-query@umich.edu (we have a server running
 there that serves University of Michigan white pages information).
 
 
@@ -77,18 +78,18 @@ You will then need to set up an alias that your users can send mail
 to that will feed the messages to rcpt500.  At our site, we run sendmail
 so the alias is in /usr/lib/aliases and looks like:
 
-       x500-query:     "|/usr/local/etc/rcpt500 -l"
+       ldap-query:     "|/usr/local/etc/rcpt500 -l"
 
 The available command line options for rcpt500 are:
     -l                 enable logging of requests via the syslog
                          LOG_DAEMON facility
     -h ldaphost                specify LDAP server host to connect to
-    -b searchbase      specify starting point of X.500 searches
+    -b searchbase      specify starting point of LDAP searches
     -a                 don't deference aliases during searches
     -s stripcount      remove "stripcount" DN components from user
                          friendly form names that are displayed
     -z sizelimit       return at most "sizelimit" entries
-    -u dapuser         DN to bind to X.500 as when searching
+    -u dapuser         DN to bind to LDAP as when searching
 
 The search and display behavior is defined in the ldapfilter.conf and
 ldaptemplates.conf files.
@@ -106,6 +107,6 @@ FEEDBACK / PROBLEM REPORTS / DISCUSSIONS
 
            OpenLDAP-its@OpenLDAP.org
 
-    Additional mailing lists are available.  Please see:
+    Mailing lists are available.  Please see:
 
            http://www.OpenLDAP.com/lists/
index 989f00b5206a75f05c2bfa7ab08ad4f39a38c5ad..165d0e496395b8b70e882d8aa72c41c6931a77b8 100644 (file)
@@ -1,10 +1,10 @@
-How to use the University of Michigan X.500 Email Query Service
+How to use the OpenLDAP LDAP Email Query Service
 
 By sending electronic mail to the address:
 
-        x500-query@umich.edu
+        ldap-query@example.com
 
-you can access the campus X.500 Directory.  The Directory contains
+you can access the campus LDAP Directory.  The Directory contains
 information about all faculty, staff, and students of the University,
 including phone numbers, mailing addresses, job titles, email
 addresses, and more.
index 450eda31a7f72a361802636638a3c2502fbf429e..f9c90b9e168e4fd7f48d106bacbbd0d7d0f36065 100644 (file)
@@ -178,11 +178,11 @@ Issue StartTLS (Transport Layer Security) extended operation. If you use
 The following command:
 .LP
 .nf
-    ldapdelete "cn=Delete Me, dc=OpenLDAP, dc=org"
+    ldapdelete "cn=Delete Me, dc=example, dc=com"
 .fi
 .LP
 will attempt to delete the entry named with commonName "Delete Me"
-directly below the "dc=OpenLDAP, dc=org" entry.  Of
+directly below the "dc=example, dc=com" entry.  Of
 course it would probably be necessary to supply a \fIbinddn\fP and
 \fIpasswd\fP for deletion to be allowed (see the -D and -w options).
 .SH DIAGNOSTICS
index ac41baef9edf2d94a83a69093dec116e0ce3f6d3..2d5f5387fe4c5f2357f513f31bffd739daf77040 100644 (file)
@@ -312,7 +312,7 @@ Assuming that the file
 exists and has the contents:
 .LP
 .nf
-    dn: cn=Modify Me, dc=OpenLDAP, dc=Org
+    dn: cn=Modify Me, dc=example, dc=com
     changetype: modify
     replace: mail
     mail: modme@OpenLDAP.org
@@ -335,7 +335,7 @@ the command:
 .LP
 will replace the contents of the "Modify Me" entry's
 .I mail
-attribute with the value "modme@OpenLDAP.org", add a
+attribute with the value "modme@example.com", add a
 .I title
 of "Grand Poobah", and the contents of the file "/tmp/modme.jpeg"
 as a
@@ -345,11 +345,11 @@ and completely remove the
 attribute.
 The same modifications as above can be performed using the older
 .I ldapmodify
-inout format:
+input format:
 .LP
 .nf
-    cn=Modify Me, dc=OpenLDAP, dc=org
-    mail=modme@OpenLDAP.org
+    cn=Modify Me, dc=example, dc=com
+    mail=modme@example.com
     +title=Grand Poobah
     +jpegPhoto=/tmp/modme.jpeg
     -description
@@ -366,13 +366,13 @@ Assuming that the file
 exists and has the contents:
 .LP
 .nf
-    dn: cn=Barbara Jensen, dc=OpenLDAP, dc=org 
+    dn: cn=Barbara Jensen, dc=example, dc=com
     objectClass: person
     cn: Barbara Jensen
     cn: Babs Jensen
     sn: Jensen
     title: the world's most famous mythical manager
-    mail: bjensen@OpenLDAP.org
+    mail: bjensen@example.com
     uid: bjensen
 .LP
 the command:
@@ -390,7 +390,7 @@ Assuming that the file
 exists and has the contents:
 .LP
 .nf
-    dn: cn=Barbara Jensen, dc=OpenLDAP, dc=org
+    dn: cn=Barbara Jensen, dc=example, dc=com
     changetype: delete
 .LP
 the command:
@@ -401,8 +401,8 @@ the command:
 .LP
 will remove Babs Jensen's entry.
 .SH DIAGNOSTICS
-Exit status is 0 if no errors occur.  Errors result in a non-zero exit
-status and a diagnostic message being written to standard error.
+Exit status is zero if no errors occur.  Errors result in a non-zero
+exit status and a diagnostic message being written to standard error.
 .SH "SEE ALSO"
 .BR ldapadd (1),
 .BR ldapdelete (1),
index 9bb794ab9561527e8e340c76caea4f09708c5901..03675c938bd6b14c50aa5dc2f2a4b1290f1eadba 100644 (file)
@@ -190,7 +190,7 @@ Assuming that the file
 exists and has the contents:
 .LP
 .nf
-    cn=Modify Me, dc=OpenLDAP, dc=org
+    cn=Modify Me, dc=example, dc=com
     cn=The New Me
 .fi
 .LP
index e587b7c95d83b844970a0b4db6d5dffc40784697..c42c5710ec4b31f1e0e8782170d403336dd740e8 100644 (file)
@@ -114,7 +114,7 @@ The next line is the default location under which new entries are created.
 It should be a string-represented Distringuished Name. E.g.,
 .nf
 .ft B
-    "dc=OpenLDAP, dc=org"
+    "dc=example, dc=com"
 .ft
 .fi
 .LP
@@ -246,7 +246,7 @@ for display of people entries and one for display of contries.
 
     #
     # default location when adding new entries (DN; "" means no default)
-    "dc=OpenLDAP, dc=Org"
+    "dc=example, dc=com"
 
     #
     # rules used to define default values for new entries
index a96b888ce47e2ce1493737c973c6d143b57b1b19..c53df77cb6daf5bd689e5fae09126bead48f6c60 100644 (file)
@@ -33,8 +33,8 @@ or tab, e.g.,
 .LP
 .nf
 .ft tt
-       dn: cn=Barbara J Jensen, dc=Open
-        LDAP, dc=org
+       dn: cn=Barbara J Jensen, dc=exam
+        ple, dc=com
 .ft
 .fi
 .LP
@@ -78,20 +78,20 @@ Here is an example of an LDIF file containing three entries.
 .LP
 .nf
 .ft tt
-       dn: cn=Barbara J Jensen, dc=OpenLDAP, dc=Org
+       dn: cn=Barbara J Jensen, dc=example, dc=com
        cn: Barbara J Jensen
        cn: Babs Jensen
        objectclass: person
        description:< file://tmp/babs
        sn: Jensen
 
-       dn: cn=Bjorn J Jensen, dc=OpenLDAP, dc=Org
+       dn: cn=Bjorn J Jensen, dc=example, dc=com
        cn: Bjorn J Jensen
        cn: Bjorn Jensen
        objectclass: person
        sn: Jensen
 
-       dn: cn=Jennifer J Jensen, dc=OpenLDAP, dc=Org
+       dn: cn=Jennifer J Jensen, dc=example, dc=com
        cn: Jennifer J Jensen
        cn: Jennifer Jensen
        objectclass: person
index d07ac8ecca84d63717f3251c160b8af96b892079..4627d5e52c95920bc19854a7ffba453aa08749e9 100644 (file)
@@ -242,6 +242,12 @@ Turn schema checking on or off. The default is on.
 Specify the maximum number of entries to return from a search operation.
 The default size limit is 500.
 .TP
+.B sasl-realm <realm>
+Specify SASL realm.  Default is empty.
+.TP
+.B sasl-secprops <props>
+Cyrus SASL security properties.  Default is "noanonymous,noplain".
+.TP
 .B srvtab <filename>
 Specify the srvtab file in which the kerberos keys necessary for
 authenticating clients using kerberos can be found. This option is only
index 864ab22a3aa8084f5ca416c476ecd62fe0657e6c..783e75a2d5ee29e1ddc729e49e8015fb9af98b2b 100644 (file)
@@ -3,5 +3,5 @@
 ## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
 
 database       shell
-suffix         "dc=openldap,dc=org"
+suffix         "dc=example,dc=com"
 search         /usr/local/etc/searchexample.sh
index c66cde05f3e4eccd4934719498cb3b7cb4a40d62..55cf92408c3b68482d41e263cc337c1a33efd512 100644 (file)
@@ -26,8 +26,8 @@ main( int argc, char **argv )
 
        slap_tool_init( "slapadd", SLAPADD, argc, argv );
 
-       if( !be->be_entry_open &&
-               !be->be_entry_close &&
+       if( !be->be_entry_open ||
+               !be->be_entry_close ||
                !be->be_entry_put )
        {
                fprintf( stderr, "%s: database doesn't support necessary operations.\n",
index 905bcbb605d2ce835f00e2fe4397996d85dce742..a8b69a89e7ac1fa01d0c46bb1c862d61404bf65d 100644 (file)
@@ -22,10 +22,10 @@ main( int argc, char **argv )
 
        slap_tool_init( "slapcat", SLAPCAT, argc, argv );
 
-       if( !be->be_entry_open &&
-               !be->be_entry_close &&
-               !be->be_entry_first &&
-               !be->be_entry_next &&
+       if( !be->be_entry_open ||
+               !be->be_entry_close ||
+               !be->be_entry_first ||
+               !be->be_entry_next ||
                !be->be_entry_get )
        {
                fprintf( stderr, "%s: database doesn't support necessary operations.\n",
index 23135d0ae94589fcea317ae2f04c690d58a7b343..5607f6ec00ad9123eddd5fadabd0fb4c23f7a523 100644 (file)
@@ -705,7 +705,7 @@ do_bind(
            NULL, ri->ri_authcId, NULL, NULL );
        ldrc = ldap_sasl_interactive_bind_s( ri->ri_ldp, ri->ri_bind_dn,
            ri->ri_saslmech, NULL, NULL,
-           LDAP_SASL_AUTOMATIC, lutil_sasl_interact, defaults );
+           LDAP_SASL_QUIET, lutil_sasl_interact, defaults );
        if ( ldrc != LDAP_SUCCESS ) {
                Debug( LDAP_DEBUG_ANY, "Error: LDAP SASL for %s:%d failed: %s\n",
                    ri->ri_hostname, ri->ri_port, ldap_err2string( ldrc ));