*/
#include "portable.h"
-#include "slapi_common.h"
#include <stdio.h>
#include "ldap_pvt.h"
#include "slap.h"
+#ifdef LDAP_SLAPI
#include "slapi.h"
+#endif
int
struct berval cred = { 0, NULL };
Backend *be = NULL;
+#ifdef LDAP_SLAPI
Slapi_PBlock *pb = op->o_pb;
+#endif
#ifdef NEW_LOGGING
LDAP_LOG( OPERATION, ENTRY, "do_bind: conn %d\n", conn->c_connid, 0, 0 );
version < LDAP_VERSION3 )
{
send_ldap_result( conn, op, rc = LDAP_PROTOCOL_ERROR,
- NULL, "requested protocol version not allowed", NULL, NULL );
+ NULL, "historical protocol version requested, use LDAPv3 instead",
+ NULL, NULL );
goto cleanup;
}
{
/* DN is not empty, disallow */
rc = LDAP_UNWILLING_TO_PERFORM;
- text = "unwilling to allow anonymous bind with non-empty DN";
+ text = "unauthenticated bind (DN with no password) disallowed";
} else if ( global_disallows & SLAP_DISALLOW_BIND_ANON ) {
/* disallow */
if ( be->be_bind ) {
int ret;
- /* deref suffix alias if appropriate */
- suffix_alias( be, &ndn );
-
ret = (*be->be_bind)( be, conn, op,
&pdn, &ndn, method, &cred, &edn );