make sure objectClass is not filtered out by 'map attribute *' (ITS#5647)

This commit is contained in:
Pierangelo Masarati 2008-08-09 10:54:31 +00:00
parent bb4268a646
commit 4d71b2f9c0

View File

@ -1556,6 +1556,11 @@ ldap_back_map_config(
return 1;
}
if ( !is_oc && map->map == NULL ) {
/* only init if required */
ldap_back_map_init( map, &mapping );
}
if ( strcmp( argv[ 2 ], "*" ) == 0 ) {
if ( argc < 4 || strcmp( argv[ 3 ], "*" ) == 0 ) {
map->drop_missing = ( argc < 4 );
@ -1702,11 +1707,6 @@ ldap_back_map_config(
mapping_cmp, mapping_dup );
success_return:;
if ( !is_oc && map->map == NULL ) {
/* only init if required */
ldap_back_map_init( map, &mapping );
}
return 0;
error_return:;