Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
e84d511c
Commit
e84d511c
authored
Oct 04, 2007
by
Pierangelo Masarati
Browse files
ITS#5168 also affects back-meta
parent
e55fce62
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-meta/map.c
View file @
e84d511c
...
...
@@ -57,6 +57,7 @@
#include
<ac/socket.h>
#include
"slap.h"
#include
"lutil.h"
#include
"../back-ldap/back-ldap.h"
#include
"back-meta.h"
...
...
@@ -212,6 +213,7 @@ map_attr_value(
int
remap
)
{
struct
berval
vtmp
;
char
uuid
[
LDAP_LUTIL_UUIDSTR_BUFSIZE
];
int
freeval
=
0
;
ldap_back_map
(
&
dc
->
target
->
mt_rwmap
.
rwm_at
,
&
ad
->
ad_cname
,
mapped_attr
,
remap
);
...
...
@@ -258,6 +260,14 @@ map_attr_value(
return
-
1
;
}
}
else
if
(
ad
->
ad_type
->
sat_syntax
==
slap_schema
.
si_ad_entryUUID
->
ad_type
->
sat_syntax
)
{
vtmp
.
bv_len
=
lutil_uuidstr_from_normalized
(
value
->
bv_val
,
value
->
bv_len
,
uuid
,
LDAP_LUTIL_UUIDSTR_BUFSIZE
);
if
(
vtmp
.
bv_len
<
0
)
{
return
-
1
;
}
vtmp
.
bv_val
=
uuid
;
}
else
if
(
ad
==
slap_schema
.
si_ad_objectClass
||
ad
==
slap_schema
.
si_ad_structuralObjectClass
)
{
ldap_back_map
(
&
dc
->
target
->
mt_rwmap
.
rwm_oc
,
value
,
&
vtmp
,
remap
);
if
(
BER_BVISNULL
(
&
vtmp
)
||
BER_BVISEMPTY
(
&
vtmp
)
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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