1 /* dn2entry.c - routines to deal with the dn2id / id2entry glue */
4 * Copyright 1998-2000 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
31 char *matchedDN = NULL;
33 Debug(LDAP_DEBUG_TRACE, "bdb_dn2entry(\"%s\")\n",
38 if( matched != NULL ) {
40 rc = bdb_dn2id_matched( be, tid, dn, &id, &matchedDN );
42 rc = bdb_dn2id( be, tid, dn, &id );
49 if( matchedDN == NULL ) {
50 rc = bdb_id2entry( be, tid, id, e );
53 rc = bdb_id2entry( be, tid, id, matched );