mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
ITS#7608 allow slapadd w/unknown RDNs for config DB
This commit is contained in:
parent
288e0041de
commit
b7df586674
@ -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:
|
|||||||
{
|
{
|
||||||
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user