]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/bind.c
s/SUBSTRINGS/SUBSTR/
[openldap] / servers / slapd / bind.c
index 7ed6025d4144702435da551088f69469a09bcf7a..91fe75896155b8bc55f4ab4cd8a32395d5bcebc7 100644 (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: