Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lukas However
OpenLDAP
Commits
27f42bba
Commit
27f42bba
authored
Dec 28, 2001
by
Kurt Zeilenga
Browse files
More dn_normalize() -> dnNormalize() changes
parent
292c575c
Changes
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-dnssrv/search.c
View file @
27f42bba
...
...
@@ -38,7 +38,8 @@ dnssrv_back_search(
char
*
domain
=
NULL
;
char
*
hostlist
=
NULL
;
char
**
hosts
=
NULL
;
char
*
refdn
,
*
nrefdn
;
char
*
refdn
;
struct
berval
*
nrefdn
=
NULL
;
struct
berval
**
urls
=
NULL
;
assert
(
get_manageDSAit
(
op
)
);
...
...
@@ -107,12 +108,22 @@ dnssrv_back_search(
NULL
,
"DNS SRV problem processing manageDSAit control"
,
NULL
,
NULL
);
goto
done
;
}
nrefdn
=
ch_strdup
(
refdn
);
dn_normalize
(
nrefdn
);
}
else
{
struct
berval
bv
;
bv
.
bv_val
=
refdn
;
bv
.
bv_len
=
strlen
(
refdn
);
rc
=
dnNormalize
(
NULL
,
&
bv
,
&
nrefdn
);
if
(
rc
!=
LDAP_SUCCESS
)
{
send_ldap_result
(
conn
,
op
,
LDAP_OTHER
,
NULL
,
"DNS SRV problem processing manageDSAit control"
,
NULL
,
NULL
);
goto
done
;
}
}
if
(
strcmp
(
nrefdn
,
ndn
->
bv_val
)
!=
0
)
{
if
(
strcmp
(
nrefdn
->
bv_val
,
ndn
->
bv_val
)
!=
0
)
{
/* requested dn is subordinate */
Debug
(
LDAP_DEBUG_TRACE
,
...
...
@@ -211,7 +222,7 @@ dnssrv_back_search(
}
free
(
refdn
);
free
(
nrefdn
);
ber_bv
free
(
nrefdn
);
done:
if
(
domain
!=
NULL
)
ch_free
(
domain
);
...
...
servers/slapd/back-passwd/search.c
View file @
27f42bba
...
...
@@ -328,10 +328,11 @@ pw2entry( Backend *be, struct passwd *pw, char *rdn )
attr_merge
(
e
,
ad_description
,
vals
);
s
=
strchr
(
val
.
bv_val
,
','
);
if
(
s
)
*
s
=
'\0'
;
if
(
s
)
*
s
=
'\0'
;
s
=
strchr
(
val
.
bv_val
,
'&'
);
if
(
s
)
{
char
buf
[
256
];
int
i
=
s
-
val
.
bv_val
;
strncpy
(
buf
,
val
.
bv_val
,
i
);
s
=
buf
+
i
;
...
...
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