]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/overlays/accesslog.c
Each refint op needs a unique timestamp, must perform searches as rootdn
[openldap] / servers / slapd / overlays / accesslog.c
index 6284cc364b6f3c39aba14f5e89457c570f57536c..15c512a0224c05734f34bb850bdef4141aae8161 100644 (file)
@@ -726,8 +726,7 @@ log_cf_gen(ConfigArgs *c)
                                Debug( LDAP_DEBUG_ANY, "%s: %s \"%s\"\n",
                                        c->log, c->msg, c->value_dn.bv_val );
                                rc = 1;
-                       }
-                       if ( BER_BVISEMPTY( &li->li_db->be_rootdn )) {
+                       } else if ( BER_BVISEMPTY( &li->li_db->be_rootdn )) {
                                snprintf( c->msg, sizeof( c->msg ),
                                        "<%s> no rootDN was configured for suffix",
                                        c->argv[0] );
@@ -745,11 +744,11 @@ log_cf_gen(ConfigArgs *c)
                        break;
                case LOG_PURGE:
                        li->li_age = log_age_parse( c->argv[1] );
-                       if ( li->li_age == -1 ) {
+                       if ( li->li_age 1 ) {
                                rc = 1;
                        } else {
                                li->li_cycle = log_age_parse( c->argv[2] );
-                               if ( li->li_cycle == -1 ) {
+                               if ( li->li_cycle 1 ) {
                                        rc = 1;
                                } else if ( slapMode & SLAP_SERVER_MODE ) {
                                        struct re_s *re = li->li_task;