1 /* bind.c - monitor backend bind routine */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 2001-2004 The OpenLDAP Foundation.
6 * Portions Copyright 2001-2003 Pierangelo Masarati.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted only as authorized by the OpenLDAP
13 * A copy of this license is available in file LICENSE in the
14 * top-level directory of the distribution or, alternatively, at
15 * <http://www.OpenLDAP.org/license.html>.
18 * This work was initially developed by Pierangelo Masarati for inclusion
19 * in OpenLDAP Software.
27 #include "back-monitor.h"
30 * At present, only rootdn can bind with simple bind
34 monitor_back_bind( Operation *op, SlapReply *rs )
36 #if 0 /* not used yet */
37 struct monitorinfo *mi
38 = (struct monitorinfo *) op->o_bd->be_private;
42 LDAP_LOG( BACK_MON, ENTRY, "monitor_back_bind: dn: %s.\n",
43 op->o_req_dn.bv_val, 0, 0 );
45 Debug(LDAP_DEBUG_ARGS, "==> monitor_back_bind: dn: %s\n",
46 op->o_req_dn.bv_val, 0, 0 );
49 if ( op->oq_bind.rb_method == LDAP_AUTH_SIMPLE
50 && be_isroot_pw( op ) ) {
51 ber_dupbv( &op->oq_bind.rb_edn, be_root_dn( op->o_bd ) );
55 rs->sr_err = LDAP_INVALID_CREDENTIALS;
56 send_ldap_result( op, rs );