General radius client and debug tool.
More...
#include <freeradius-devel/util/conf.h>
#include <freeradius-devel/util/syserror.h>
#include <freeradius-devel/util/atexit.h>
#include <freeradius-devel/util/pair_legacy.h>
#include <freeradius-devel/util/time.h>
#include <freeradius-devel/server/packet.h>
#include <freeradius-devel/radius/list.h>
#include <freeradius-devel/radius/radius.h>
#include <freeradius-devel/util/chap.h>
#include <ctype.h>
#include <assert.h>
#include "smbdes.h"
#include "mschap.h"
#include "radclient.h"
Go to the source code of this file.
|
static int | _rc_request_free (rc_request_t *request) |
|
static bool | already_hex (fr_pair_t *vp) |
|
static int | coa_init (rc_request_t *parent, FILE *coa_reply, char const *reply_filename, bool *coa_reply_done, FILE *coa_filter, char const *filter_filename, bool *coa_filter_done) |
|
static void | deallocate_id (rc_request_t *request) |
|
static int | getport (char const *name) |
|
int | main (int argc, char **argv) |
|
static int | mschapv1_encode (fr_packet_t *packet, fr_pair_list_t *list, char const *password) |
|
static fr_radius_packet_code_t | radclient_get_code (uint16_t port) |
|
static void | radclient_get_port (fr_radius_packet_code_t type, uint16_t *port) |
|
static int | radclient_init (TALLOC_CTX *ctx, rc_file_pair_t *files) |
|
static int | radclient_sane (rc_request_t *request) |
|
static int | recv_coa_packet (fr_time_delta_t wait_time) |
|
static int | recv_one_packet (fr_time_delta_t wait_time) |
|
static int8_t | request_cmp (void const *one, void const *two) |
|
static int | send_one_packet (rc_request_t *request) |
|
static NEVER_RETURNS void | usage (void) |
|
General radius client and debug tool.
- Id
- 55dfc93959f97d5fe5a1a64a56969346cbb6b558
- Copyright
- 2000,2006,2014 The FreeRADIUS server project
-
2000 Miquel van Smoorenburg (mique.nosp@m.ls@c.nosp@m.istro.nosp@m.n.nl)
-
2000 Alan DeKok (aland.nosp@m.@fre.nosp@m.eradi.nosp@m.us.o.nosp@m.rg)
- Id
- 0c8f2cf2fc5e8e5912727bebdf5a15d34b17759c
- Copyright
- 2000,2006,2014 The FreeRADIUS server project
-
2000 Miquel van Smoorenburg (mique.nosp@m.ls@c.nosp@m.istro.nosp@m.n.nl)
-
2000 Alan DeKok (aland.nosp@m.@fre.nosp@m.eradi.nosp@m.us.o.nosp@m.rg)
Definition in file radclient.c.
◆ openssl3_free
◆ openssl3_init
◆ pair_update_request
#define pair_update_request |
( |
|
_attr, |
|
|
|
_da |
|
) |
| |
Value: do { \
if (!_attr) { \
assert(_attr != NULL); \
fr_pair_append(&request->request_pairs, _attr); \
} \
} while (0)
fr_pair_t * fr_pair_find_by_da(fr_pair_list_t const *list, fr_pair_t const *prev, fr_dict_attr_t const *da)
Find the first pair with a matching da.
fr_pair_t * fr_pair_afrom_da(TALLOC_CTX *ctx, fr_dict_attr_t const *da)
Dynamically allocate a new attribute and assign a fr_dict_attr_t.
Definition at line 57 of file radclient.c.
◆ request_t
◆ _rc_request_free()
◆ already_hex()
◆ coa_init()
static int coa_init |
( |
rc_request_t * |
parent, |
|
|
FILE * |
coa_reply, |
|
|
char const * |
reply_filename, |
|
|
bool * |
coa_reply_done, |
|
|
FILE * |
coa_filter, |
|
|
char const * |
filter_filename, |
|
|
bool * |
coa_filter_done |
|
) |
| |
|
static |
◆ deallocate_id()
◆ getport()
static int getport |
( |
char const * |
name | ) |
|
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ mschapv1_encode()
◆ radclient_get_code()
◆ radclient_get_port()
◆ radclient_init()
static int radclient_init |
( |
TALLOC_CTX * |
ctx, |
|
|
rc_file_pair_t * |
files |
|
) |
| |
|
static |
◆ radclient_sane()
◆ recv_coa_packet()
◆ recv_one_packet()
◆ request_cmp()
static int8_t request_cmp |
( |
void const * |
one, |
|
|
void const * |
two |
|
) |
| |
|
static |
◆ send_one_packet()
◆ usage()
◆ attr_chap_challenge
◆ attr_chap_password
◆ attr_cleartext_password
◆ attr_coa_filter
◆ attr_coa_filter_name
const char* attr_coa_filter_name = "User-Name" |
|
static |
◆ attr_ms_chap_challenge
◆ attr_ms_chap_password
◆ attr_ms_chap_response
◆ attr_packet_type
◆ attr_radclient_coa_filename
◆ attr_radclient_coa_filter
◆ attr_radclient_test_name
◆ attr_request_authenticator
◆ attr_user_name
◆ attr_user_password
◆ client_ipaddr
◆ client_port
◆ coa_port
◆ coa_tree
◆ coafd
◆ dict_freeradius
◆ dict_radius
◆ do_coa
◆ do_output
◆ done
◆ ipproto
int ipproto = IPPROTO_UDP |
|
static |
◆ last_used_id
◆ packet_code
◆ packet_list
◆ print_filename
◆ radclient_dict
Initial value:= {
{ NULL }
}
static fr_dict_t const * dict_freeradius
static fr_dict_t const * dict_radius
Definition at line 106 of file radclient.c.
◆ radclient_dict_attr
Initial value:= {
{ NULL }
}
@ FR_TYPE_STRING
String of printable characters.
@ FR_TYPE_UINT32
32 Bit unsigned integer.
@ FR_TYPE_OCTETS
Raw octets.
static fr_dict_attr_t const * attr_packet_type
static fr_dict_attr_t const * attr_request_authenticator
static fr_dict_attr_t const * attr_user_password
static fr_dict_attr_t const * attr_chap_password
static fr_dict_attr_t const * attr_ms_chap_response
static fr_dict_attr_t const * attr_ms_chap_challenge
static fr_dict_attr_t const * attr_chap_challenge
static fr_dict_attr_t const * attr_cleartext_password
static fr_dict_attr_t const * attr_radclient_test_name
static fr_dict_attr_t const * attr_radclient_coa_filename
static fr_dict_attr_t const * attr_user_name
static fr_dict_attr_t const * attr_ms_chap_password
static fr_dict_attr_t const * attr_radclient_coa_filter
Definition at line 133 of file radclient.c.
◆ radclient_version
◆ rc_request_list
◆ resend_count
◆ retries
◆ secret
◆ server_ipaddr
◆ server_port
◆ sleep_time
◆ sockfd
◆ stats
◆ timeout