mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-21 22:34:08 -05:00
don't lookup dg* attrs more than needed (ITS#5583)
This commit is contained in:
parent
010295e9e7
commit
b4894ccd81
1 changed files with 18 additions and 14 deletions
|
|
@ -1557,22 +1557,26 @@ dynlist_db_open(
|
|||
}
|
||||
}
|
||||
|
||||
rc = slap_str2ad( "dgIdentity", &ad_dgIdentity, &text );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
snprintf( cr->msg, sizeof( cr->msg),
|
||||
"unable to fetch attributeDescription \"dgIdentity\": %d (%s)",
|
||||
rc, text );
|
||||
Debug( LDAP_DEBUG_ANY, "dynlist_db_open: %s\n", cr->msg, 0, 0 );
|
||||
/* Just a warning */
|
||||
if ( ad_dgIdentity == NULL ) {
|
||||
rc = slap_str2ad( "dgIdentity", &ad_dgIdentity, &text );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
snprintf( cr->msg, sizeof( cr->msg),
|
||||
"unable to fetch attributeDescription \"dgIdentity\": %d (%s)",
|
||||
rc, text );
|
||||
Debug( LDAP_DEBUG_ANY, "dynlist_db_open: %s\n", cr->msg, 0, 0 );
|
||||
/* Just a warning */
|
||||
}
|
||||
}
|
||||
|
||||
rc = slap_str2ad( "dgAuthz", &ad_dgAuthz, &text );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
snprintf( cr->msg, sizeof( cr->msg),
|
||||
"unable to fetch attributeDescription \"dgAuthz\": %d (%s)",
|
||||
rc, text );
|
||||
Debug( LDAP_DEBUG_ANY, "dynlist_db_open: %s\n", cr->msg, 0, 0 );
|
||||
/* Just a warning */
|
||||
if ( ad_dgAuthz == NULL ) {
|
||||
rc = slap_str2ad( "dgAuthz", &ad_dgAuthz, &text );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
snprintf( cr->msg, sizeof( cr->msg),
|
||||
"unable to fetch attributeDescription \"dgAuthz\": %d (%s)",
|
||||
rc, text );
|
||||
Debug( LDAP_DEBUG_ANY, "dynlist_db_open: %s\n", cr->msg, 0, 0 );
|
||||
/* Just a warning */
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue