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
Tero Saarni
OpenLDAP
Commits
849f937d
Commit
849f937d
authored
Jun 21, 2018
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Jul 10, 2018
Browse files
ITS#8842 Do some printability checks on the dc RDN
parent
dde4f0b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/getdn.c
View file @
849f937d
...
...
@@ -27,6 +27,7 @@
#include
"ldap-int.h"
#include
"ldap_schema.h"
#include
"ldif.h"
/* extension to UFN that turns trailing "dc=value" rdns in DNS style,
* e.g. "ou=People,dc=openldap,dc=org" => "People, openldap.org" */
...
...
@@ -2478,6 +2479,11 @@ dn2domain( LDAPDN dn, struct berval *bv, int pos, int *iRDN )
break
;
}
if
(
ldif_is_not_printable
(
ava
->
la_value
.
bv_val
,
ava
->
la_value
.
bv_len
)
)
{
domain
=
0
;
break
;
}
domain
=
1
;
if
(
first
)
{
...
...
Write
Preview
Supports
Markdown
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