]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/bind.c
s/SUBSTRINGS/SUBSTR/
[openldap] / servers / slapd / bind.c
index eab5bb7f186fea1e1ee5e836052bd8341268ff04..91fe75896155b8bc55f4ab4cd8a32395d5bcebc7 100644 (file)
@@ -1,7 +1,7 @@
 /* bind.c - decode an ldap bind operation and pass it to a backend db */
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 
@@ -41,7 +41,7 @@ do_bind(
        char *ndn;
        ber_tag_t       tag;
        int                     rc = LDAP_SUCCESS;
-       char    *text;
+       const char      *text;
        struct berval   cred;
        Backend         *be;
 
@@ -340,7 +340,7 @@ do_bind(
                ndn = suffix_alias( be, ndn );
 
                ret = (*be->be_bind)( be, conn, op, dn, ndn,
-                       method, mech, &cred, &edn );
+                       method, &cred, &edn );
 
                if ( ret == 0 ) {
                        ldap_pvt_thread_mutex_lock( &conn->c_mutex );
@@ -370,7 +370,7 @@ do_bind(
 
        } else {
                send_ldap_result( conn, op, rc = LDAP_UNWILLING_TO_PERFORM,
-                       NULL, "bind function not implemented", NULL, NULL );
+                       NULL, "operation not supported within namingContext", NULL, NULL );
        }
 
 cleanup: