]> git.sur5r.net Git - openldap/commitdiff
Overlay build environment, remove internal proxycache support
authorHoward Chu <hyc@openldap.org>
Sat, 6 Dec 2003 11:04:39 +0000 (11:04 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 6 Dec 2003 11:04:39 +0000 (11:04 +0000)
servers/slapd/Makefile.in
servers/slapd/add.c
servers/slapd/main.c
servers/slapd/schema_prep.c
servers/slapd/slap.h

index e8a9968b38a158ab4595221352a7e22d3a8f311f..429d14d2b6a632faf6cba60ad3e95d45b9d7761e 100644 (file)
@@ -14,7 +14,7 @@
 ## <http://www.OpenLDAP.org/license.html>.
 
 PROGRAMS=slapd
-XPROGRAMS=sslapd libbackends.a .backend
+XPROGRAMS=sslapd libbackends.a .backend liboverlays.a
 XSRCS=version.c
 
 NT_SRCS = nt_svc.c
@@ -52,7 +52,7 @@ LDAP_INCDIR= ../../include -I$(srcdir)/slapi
 LDAP_LIBDIR= ../../libraries
 
 SLAP_DIR=
-SLAPD_STATIC_DEPENDS=@SLAPD_NO_STATIC@ libbackends.a
+SLAPD_STATIC_DEPENDS=@SLAPD_NO_STATIC@ libbackends.a liboverlays.a
 SLAPD_STATIC_BACKENDS=@SLAPD_STATIC_BACKENDS@
 SLAPD_DYNAMIC_BACKENDS=@SLAPD_DYNAMIC_BACKENDS@
 
@@ -297,6 +297,9 @@ libbackends.a: .backend
        fi
        @ls -l libbackends.a; echo ""
 
+liboverlays.a: FORCE
+       @cd overlays; $(MAKE) $(MFLAGS) all
+
 version.c: Makefile
        @-$(RM) $@
        $(MKVERSION) -s -n Versionstr slapd > $@
index ae06f2625917d94487cfcb58a1c64239c47591be..4058b43ebab4471bbaf0858f640a0610683b6df8 100644 (file)
@@ -598,20 +598,15 @@ slap_entry2mods(
        AttributeDescription    *a_new_desc;
        int                             i, count;
 
-       *text = textbuf;
-
        a_new = e->e_attrs;
 
        while ( a_new != NULL ) {
                a_new_desc = a_new->a_desc;
                mod = (Modifications *) malloc( sizeof( Modifications ));
                
-               if ( a_new_desc != slap_schema.si_ad_queryid )
-                       mod->sml_op = LDAP_MOD_REPLACE;
-               else
-                       mod->sml_op = LDAP_MOD_ADD;
+               mod->sml_op = LDAP_MOD_REPLACE;
 
-               ber_dupbv( &mod->sml_type, &a_new_desc->ad_cname );
+               mod->sml_type = a_new_desc->ad_cname;
 
                for ( count = 0; a_new->a_vals[count].bv_val; count++ );
 
index ce0d07dce72edb2c2f9f5c01cb241f5bb65d6946..d656dec7d1dd45a601a27d59b36ed4357272a815 100644 (file)
@@ -487,6 +487,10 @@ int main( int argc, char **argv )
        }
 #endif /* LDAP_SLAPI */
 
+       if ( overlay_init() ) {
+               goto destroy;
+       }
+
        if ( read_config( configfile, 0 ) != 0 ) {
                rc = 1;
                SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 19 );
index 46639f50ac4ef5404de6c06a15126ebd0c118a00..b57d299fb38c94357b350e988a61eb5cc7d891d6 100644 (file)
@@ -416,17 +416,6 @@ static struct slap_schema_ad_map {
                NULL, NULL, NULL, NULL, NULL,
                offsetof(struct slap_internal_schema, si_ad_superiorUUID) },
 
-       /* LDAP cache specific operational attribute */
-       { "queryid", "( 1.3.6.1.4.1.4203.666.1.12 NAME 'queryid' "
-                       "DESC 'list of queries the entry belongs to' "
-                       "EQUALITY octetStringMatch "
-                       "SYNTAX 1.3.6.1.4.1.1466.115.121.1.40{64} "
-                       "NO-USER-MODIFICATION USAGE directoryOperation )",
-               NULL, SLAP_AT_HIDE,
-               NULL, NULL,
-               NULL, NULL, NULL, NULL, NULL, 
-               offsetof(struct slap_internal_schema, si_ad_queryid) },
-
        { "syncreplCookie", "( 1.3.6.1.4.1.4203.666.1.23 "
                        "NAME 'syncreplCookie' "
                        "DESC 'syncrepl Cookie for shadow copy' "
index f7b663f0273bed51fa9b6cf401abc17cecf3b18d..17aaa4861a305802a47b0f3535ad75eff36df65b 100644 (file)
@@ -764,9 +764,6 @@ struct slap_internal_schema {
        AttributeDescription *si_ad_namingCSN;
        AttributeDescription *si_ad_superiorUUID;
 
-       /* LDAP cache specific operational attribute */
-       AttributeDescription *si_ad_queryid;
-
        AttributeDescription *si_ad_dseType;
        AttributeDescription *si_ad_syncreplCookie;
        AttributeDescription *si_ad_contextCSN;