From e584749808407d265c0e89f74206f7ed3b320e5a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 21 Aug 2012 13:30:02 -0700 Subject: [PATCH] ITS#7357 set NAS-Identifier in request --- contrib/slapd-modules/passwd/radius.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/slapd-modules/passwd/radius.c b/contrib/slapd-modules/passwd/radius.c index d8179fef20..f60f34f61b 100644 --- a/contrib/slapd-modules/passwd/radius.c +++ b/contrib/slapd-modules/passwd/radius.c @@ -26,6 +26,7 @@ #include +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; -- 2.39.5