version 1.1.1.2, 2016/11/01 09:56:12
|
version 1.1.1.3.2.1, 2023/09/27 11:08:00
|
Line 113 struct authparams {
|
Line 113 struct authparams {
|
struct in_addr peer_dns[2]; /* DNS servers for peer to use */ |
struct in_addr peer_dns[2]; /* DNS servers for peer to use */ |
struct in_addr peer_nbns[2]; /* NBNS servers for peer to use */ |
struct in_addr peer_nbns[2]; /* NBNS servers for peer to use */ |
|
|
|
#ifdef USE_RADIUS |
char *eapmsg; /* EAP Msg for forwarding to RADIUS |
char *eapmsg; /* EAP Msg for forwarding to RADIUS |
* server */ |
* server */ |
int eapmsg_len; |
int eapmsg_len; |
Line 125 struct authparams {
|
Line 126 struct authparams {
|
|
|
char *filter_id; /* RADIUS Framed-Filter-Id attribute */ |
char *filter_id; /* RADIUS Framed-Filter-Id attribute */ |
|
|
|
#endif |
char action[8 + LINK_MAX_NAME]; |
char action[8 + LINK_MAX_NAME]; |
|
|
#ifdef USE_IPFW |
#ifdef USE_IPFW |
Line 204 struct authparams {
|
Line 206 struct authparams {
|
}; |
}; |
|
|
struct authconf { |
struct authconf { |
|
#ifdef USE_RADIUS |
struct radiusconf radius; /* RADIUS configuration */ |
struct radiusconf radius; /* RADIUS configuration */ |
|
#endif |
char authname[AUTH_MAX_AUTHNAME]; /* Configured username */ |
char authname[AUTH_MAX_AUTHNAME]; /* Configured username */ |
char password[AUTH_MAX_PASSWORD]; /* Configured password */ |
char password[AUTH_MAX_PASSWORD]; /* Configured password */ |
u_int acct_update; |
u_int acct_update; |
Line 231 struct auth {
|
Line 235 struct auth {
|
struct pppTimer acct_timer; /* Timer for accounting updates */ |
struct pppTimer acct_timer; /* Timer for accounting updates */ |
struct papinfo pap; /* PAP state */ |
struct papinfo pap; /* PAP state */ |
struct chapinfo chap; /* CHAP state */ |
struct chapinfo chap; /* CHAP state */ |
|
#ifdef USE_RADIUS |
struct eapinfo eap; /* EAP state */ |
struct eapinfo eap; /* EAP state */ |
|
#endif |
struct paction *thread; /* async auth thread */ |
struct paction *thread; /* async auth thread */ |
struct paction *acct_thread; /* async accounting auth thread */ |
struct paction *acct_thread; /* async accounting auth thread */ |
struct authconf conf; /* Auth backends, RADIUS, etc. */ |
struct authconf conf; /* Auth backends, RADIUS, etc. */ |
Line 240 struct auth {
|
Line 246 struct auth {
|
}; |
}; |
typedef struct auth *Auth; |
typedef struct auth *Auth; |
|
|
struct radiusconf radius; /* RADIUS configuration */ |
|
|
|
/* |
/* |
* Interface between the auth-backend (secret file, RADIUS, etc.) and Mpd's |
* Interface between the auth-backend (secret file, RADIUS, etc.) and Mpd's |
* internal structs. |
* internal structs. |
Line 255 struct authdata {
|
Line 259 struct authdata {
|
u_int code; /* Proto specific code */ |
u_int code; /* Proto specific code */ |
u_char acct_type; /* Accounting type, Start, Stop, |
u_char acct_type; /* Accounting type, Start, Stop, |
* Update */ |
* Update */ |
|
#ifdef USE_RADIUS |
u_char eap_radius; |
u_char eap_radius; |
|
#endif |
u_char status; |
u_char status; |
u_char why_fail; |
u_char why_fail; |
char *reply_message; /* Text wich may displayed to the user */ |
char *reply_message; /* Text wich may displayed to the user */ |
Line 263 struct authdata {
|
Line 269 struct authdata {
|
char *mschapv2resp; /* Response String for MSCHAPv2 */ |
char *mschapv2resp; /* Response String for MSCHAPv2 */ |
void (*finish) (Link l, struct authdata *auth); /* Finish handler */ |
void (*finish) (Link l, struct authdata *auth); /* Finish handler */ |
int drop_user; /* RAD_MPD_DROP_USER value sent by |
int drop_user; /* RAD_MPD_DROP_USER value sent by |
* RADIUS server */ | * RADIUS server or external acct script */ |
| #ifdef USE_RADIUS |
struct { |
struct { |
struct rad_handle *handle; /* the RADIUS handle */ |
struct rad_handle *handle; /* the RADIUS handle */ |
} radius; |
} radius; |
|
#endif |
|
|
#ifdef USE_OPIE |
#ifdef USE_OPIE |
struct { |
struct { |
struct opie data; |
struct opie data; |
Line 287 struct authdata {
|
Line 296 struct authdata {
|
#endif |
#endif |
char *downReason; /* Reason for link going down */ |
char *downReason; /* Reason for link going down */ |
time_t last_up; /* Time this link last got up */ |
time_t last_up; /* Time this link last got up */ |
PhysType phys_type; /* Device type descriptor */ | const struct phystype *phys_type; /* Device type descriptor */ |
int linkID; /* Absolute link number */ |
int linkID; /* Absolute link number */ |
char peer_ident[64]; /* LCP ident received from peer */ |
char peer_ident[64]; /* LCP ident received from peer */ |
struct in_addr peer_addr; /* currently assigned |
struct in_addr peer_addr; /* currently assigned |
Line 307 extern const struct cmdtab AuthSetCmds[];
|
Line 316 extern const struct cmdtab AuthSetCmds[];
|
* GLOBAL VARIABLES |
* GLOBAL VARIABLES |
*/ |
*/ |
extern const u_char gMsoftZeros[32]; |
extern const u_char gMsoftZeros[32]; |
extern int gMaxLogins; /* max number of concurrent logins per |
|
* user */ |
|
extern int gMaxLoginsCI; |
|
|
|
/* |
/* |
* FUNCTIONS |
* FUNCTIONS |
Line 327 AuthOutput(Link l, int proto, u_int code, u_int id,
|
Line 333 AuthOutput(Link l, int proto, u_int code, u_int id,
|
u_char eap_type); |
u_char eap_type); |
extern void AuthFinish(Link l, int which, int ok); |
extern void AuthFinish(Link l, int which, int ok); |
extern void AuthCleanup(Link l); |
extern void AuthCleanup(Link l); |
extern int AuthStat(Context ctx, int ac, char *av[], void *arg); | extern int AuthStat(Context ctx, int ac, const char *const av[], const void *arg); |
extern void AuthAccountStart(Link l, int type); |
extern void AuthAccountStart(Link l, int type); |
extern void AuthAccountTimeout(void *arg); |
extern void AuthAccountTimeout(void *arg); |
extern AuthData AuthDataNew(Link l); |
extern AuthData AuthDataNew(Link l); |