]> git.sur5r.net Git - openldap/commitdiff
make sure objectClass is not filtered out by 'map attribute *' (ITS#5647)
authorPierangelo Masarati <ando@openldap.org>
Sat, 9 Aug 2008 10:54:31 +0000 (10:54 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 9 Aug 2008 10:54:31 +0000 (10:54 +0000)
servers/slapd/back-meta/config.c

index c3424438e6fd5715ae7042f059cc418ab532ae6a..610f607545a6c7a6c2d3288a4fc3ac9ee6f45a1e 100644 (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:;