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: dn: \"%s\"\n",
36 if( matched != NULL ) {
37 rc = bdb_dn2id_matched( be, tid, dn, &id, &matchedDN );
39 rc = bdb_dn2id( be, tid, dn, &id );
46 if( matchedDN == NULL ) {
47 rc = bdb_id2entry( be, tid, id, e );
49 rc = bdb_id2entry( be, tid, id, matched );