Skip to content
Snippets Groups Projects
Commit 81f0dac8 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#7608 allow slapadd w/unknown RDNs for config DB

parent 41dc60b9
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
#include "slapcommon.h" #include "slapcommon.h"
extern int slap_DN_strict; /* dn.c */
static char csnbuf[ LDAP_PVT_CSNSTR_BUFSIZE ]; static char csnbuf[ LDAP_PVT_CSNSTR_BUFSIZE ];
typedef struct Erec { typedef struct Erec {
...@@ -96,11 +98,19 @@ again: ...@@ -96,11 +98,19 @@ again:
{ {
BackendDB *bd; BackendDB *bd;
Entry *e; Entry *e;
int prev_DN_strict;
if ( erec->lineno < jumpline ) if ( erec->lineno < jumpline )
goto again; goto again;
if ( !dbnum ) {
prev_DN_strict = slap_DN_strict;
slap_DN_strict = 0;
}
e = str2entry2( buf, checkvals ); e = str2entry2( buf, checkvals );
if ( !dbnum ) {
slap_DN_strict = prev_DN_strict;
}
if ( enable_meter ) if ( enable_meter )
lutil_meter_update( &meter, lutil_meter_update( &meter,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment