1 /* dn2entry.c - routines to deal with the dn2id / id2entry glue */
4 * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
5 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
11 #include <ac/string.h>
16 * dn2entry - look up dn in the cache/indexes and return the corresponding
32 Debug(LDAP_DEBUG_TRACE, "bdb_dn2entry(\"%s\")\n",
37 if( matched != NULL ) {
39 rc = bdb_dn2id_matched( be, tid, dn, &id, &id2 );
41 rc = bdb_dn2id( be, tid, dn, &id );
49 rc = bdb_id2entry( be, tid, id, e );
51 rc = bdb_id2entry( be, tid, id2, matched );