]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/plugins/radius/radiusclient/lib/options.h
Send NAS-Identifier attribute instead of NAS-IP-Address, if configured.
[ppp.git] / pppd / plugins / radius / radiusclient / lib / options.h
index 800ec81d934c7a6f91616b4bb1de58a3c4ff076f..c223c168322feb1a7933159254a9b408784307fd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: options.h,v 1.1 2002/01/22 16:03:02 dfs Exp $
+ * $Id: options.h,v 1.2 2002/10/01 09:51:01 fcusack Exp $
  *
  * Copyright (C) 1996 Lars Fenneberg
  *
@@ -31,26 +31,30 @@ typedef struct _option {
 static SERVER acctserver = {0};
 static SERVER authserver = {0};
 
+int default_tries = 4;
+int default_timeout = 60;
+
 static OPTION config_options[] = {
 /* internally used options */
 {"config_file",                OT_STR, ST_UNDEF, NULL},
 /* General options */
 {"auth_order",         OT_AUO, ST_UNDEF, NULL},
-{"login_tries",                OT_INT, ST_UNDEF, NULL},
-{"login_timeout",      OT_INT, ST_UNDEF, NULL},
-{"nologin",            OT_STR, ST_UNDEF, NULL},
-{"issue",              OT_STR, ST_UNDEF, NULL},
+{"login_tries",                OT_INT, ST_UNDEF, &default_tries},
+{"login_timeout",      OT_INT, ST_UNDEF, &default_timeout},
+{"nologin",            OT_STR, ST_UNDEF, "/etc/nologin"},
+{"issue",              OT_STR, ST_UNDEF, "/etc/radiusclient/issue"},
 /* RADIUS specific options */
 {"authserver",         OT_SRV, ST_UNDEF, &authserver},
 {"acctserver",         OT_SRV, ST_UNDEF, &acctserver},
 {"servers",            OT_STR, ST_UNDEF, NULL},
 {"dictionary",         OT_STR, ST_UNDEF, NULL},
-{"login_radius",       OT_STR, ST_UNDEF, NULL},
+{"login_radius",       OT_STR, ST_UNDEF, "/usr/sbin/login.radius"},
 {"seqfile",            OT_STR, ST_UNDEF, NULL},
 {"mapfile",            OT_STR, ST_UNDEF, NULL},
 {"default_realm",      OT_STR, ST_UNDEF, NULL},
 {"radius_timeout",     OT_INT, ST_UNDEF, NULL},
 {"radius_retries",     OT_INT, ST_UNDEF, NULL},
+{"nas_identifier",      OT_STR, ST_UNDEF, ""},
 /* local options */
 {"login_local",                OT_STR, ST_UNDEF, NULL},
 };