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
Robert Dubner
OpenLDAP
Commits
f928413a
Commit
f928413a
authored
Sep 07, 2021
by
Robert Dubner
Browse files
Repair error caused by username with fewer than four characters
parent
511d1981
Changes
2
Hide whitespace changes
Inline
Side-by-side
contrib/slapd-modules/radiusov/radius.c
View file @
f928413a
...
...
@@ -1810,10 +1810,13 @@ respond_to_ttls_md5_challenge( EAP_MESSAGE *internal_eap_message,
uint8_t
internal_eap_message_id
=
internal_eap_message
->
Identifier
;
int
internal_eap_message_length
=
get_eap_length
(
internal_eap_message
);
if
(
internal_eap_message_length
<
2
6
)
if
(
internal_eap_message_length
<
2
3
)
{
// Per RFC1994 and RFC3748: Minimum byte count:
// Code, Id, Len1, Len2, EAP-response-Type, Value-Size, 16 byte value, one-byte name
Debug
(
LDAP_DEBUG_TRACE
,
"The internal EAP message, at %d bytes, is too short to be an MD5 challenge response
\n
"
,
"The internal EAP message, at %d bytes, is too short "
"to be a minimum 23-byte MD5 challenge response
\n
"
,
internal_eap_message_length
);
return
FAIL_SILENTLY
;
}
...
...
contrib/slapd-modules/radiusov/radiusov.c
View file @
f928413a
...
...
@@ -700,6 +700,8 @@ radiusov_create_udp_port(BackendDB *be, ConfigReply *cr, int port_number)
// ldap://<host>/<base>?<attrs>?<scope>?<filter>
// ldap_url_parse()
// ldap:///cn=radius,dc=renbud,dc=com?ipa,port?one?(configuration=<desired_config>)
static
ConfigDriver
radius_config_driver
;
...
...
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