Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
68744ced
Commit
68744ced
authored
Aug 26, 1999
by
Kurt Zeilenga
Browse files
fix dn2id delete bug... breaks modrdn.
parent
406f33eb
Changes
5
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-ldbm/proto-back-ldbm.h
View file @
68744ced
...
...
@@ -74,7 +74,7 @@ int ldbm_cache_delete LDAP_P(( DBCache *db, Datum key ));
int
dn2id_add
LDAP_P
((
Backend
*
be
,
const
char
*
dn
,
ID
id
));
ID
dn2id
LDAP_P
((
Backend
*
be
,
const
char
*
dn
));
ID_BLOCK
*
dn2idl
LDAP_P
((
Backend
*
be
,
const
char
*
dn
,
int
prefix
));
int
dn2id_delete
LDAP_P
((
Backend
*
be
,
const
char
*
dn
));
int
dn2id_delete
LDAP_P
((
Backend
*
be
,
const
char
*
dn
,
ID
id
));
Entry
*
dn2entry_rw
LDAP_P
((
Backend
*
be
,
const
char
*
dn
,
Entry
**
matched
,
int
rw
));
#define dn2entry_r(be, dn, m) dn2entry_rw((be), (dn), (m), 0)
...
...
servers/slapd/back-ldbm/search.c
View file @
68744ced
...
...
@@ -317,7 +317,8 @@ loop_continue:
rc
=
0
;
done:
idl_free
(
candidates
);
if
(
candidates
!=
NULL
)
idl_free
(
candidates
);
ber_bvecfree
(
v2refs
);
if
(
realbase
)
free
(
realbase
);
...
...
servers/slapd/back-ldbm/tools.c
View file @
68744ced
...
...
@@ -184,7 +184,7 @@ ID ldbm_tool_entry_put(
rc
=
ldbm_cache_store
(
id2entry
,
key
,
data
,
LDBM_REPLACE
);
if
(
rc
!=
0
)
{
(
void
)
dn2id_delete
(
be
,
e
->
e_ndn
);
(
void
)
dn2id_delete
(
be
,
e
->
e_ndn
,
e
->
e_id
);
return
NOID
;
}
...
...
tests/scripts/defines.sh
View file @
68744ced
...
...
@@ -60,6 +60,7 @@ LDIFFLT=$DBDIR/ldif.flt
MASTEROUT
=
$DBDIR
/master.out
SLAVEOUT
=
$DBDIR
/slave.out
TESTOUT
=
$DBDIR
/test.out
INITOUT
=
$DBDIR
/init.out
SEARCHOUTMASTER
=
$DATADIR
/search.out.master
MODIFYOUTMASTER
=
$DATADIR
/modify.out.master
ADDDELOUTMASTER
=
$DATADIR
/adddel.out.master
...
...
tests/scripts/test005-modrdn
View file @
68744ced
...
...
@@ -31,8 +31,8 @@ echo "Testing slapd modrdn operations..."
# Make sure we can search the database
for
i
in
0 1 2 3 4 5
;
do
$LDAPSEARCH
-
s
base
-b
"
$MONITOR
"
-h
localhost
-p
$PORT
\
'object
c
lass=*'
>
/dev/null
2>&1
$LDAPSEARCH
-
S
""
-b
"
$BASEDN
"
-h
localhost
-p
$PORT
\
'object
C
lass=*'
>
$INITOUT
2>&1
RC
=
$?
if
test
$RC
=
1
;
then
echo
"Waiting 5 seconds for slapd to start..."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment