Skip to content
Snippets Groups Projects
Commit e5847498 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#7357 set NAS-Identifier in request

parent 68c3cf97
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@
#include <radlib.h>
extern char *global_host; /* from slapd */
static LUTIL_PASSWD_CHK_FUNC chk_radius;
static const struct berval scheme = BER_BVC("{RADIUS}");
static char *config_filename;
......@@ -87,6 +88,10 @@ chk_radius(
goto done;
}
if ( rad_put_string( h, RAD_NAS_IDENTIFIER, global_host ) != 0 ) {
goto done;
}
switch ( rad_send_request( h ) ) {
case RAD_ACCESS_ACCEPT:
rc = LUTIL_PASSWD_OK;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment