int ldap_pvt_tls_get_my_dn( void *s, struct berval *dn, LDAPDN_rewrite_dummy *func, unsigned flags ) { tls_session *session = s; struct berval der_dn; int rc; rc = tls_imp->ti_session_my_dn( session, &der_dn ); if ( rc == LDAP_SUCCESS ) rc = ldap_X509dn2bv(&der_dn, dn, (LDAPDN_rewrite_func *)func, flags ); return rc; }
/* * Convert an X.509 DN into a normalized LDAP DN */ int dnX509normalize( void *x509_name, struct berval *out ) { /* Invoke the LDAP library's converter with our schema-rewriter */ int rc = ldap_X509dn2bv( x509_name, out, LDAPDN_rewrite, 0 ); Debug( LDAP_DEBUG_TRACE, "dnX509Normalize: <%s> (%d)\n", BER_BVISNULL( out ) ? "(null)" : out->bv_val, rc, 0 ); return rc; }
/* * Convert an X.509 DN into a normalized LDAP DN */ int dnX509normalize( void *x509_name, struct berval *out ) { /* Invoke the LDAP library's converter with our schema-rewriter */ return ldap_X509dn2bv( x509_name, out, LDAPDN_rewrite, 0 ); }