mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 02:59:34 -05:00
ITS#7357 set NAS-Identifier in request
This commit is contained in:
parent
68c3cf9795
commit
e584749808
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue