From: Howard Chu Date: Tue, 21 Aug 2012 20:30:02 +0000 (-0700) Subject: ITS#7357 set NAS-Identifier in request X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e584749808407d265c0e89f74206f7ed3b320e5a;p=openldap ITS#7357 set NAS-Identifier in request --- 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;