156 |
break; |
break; |
157 |
|
|
158 |
case 'a': |
case 'a': |
159 |
radacct_dir = string_create(optarg); |
radacct_dir = estrdup(optarg); |
160 |
break; |
break; |
161 |
|
|
162 |
#ifdef USE_DBM |
#ifdef USE_DBM |
170 |
break; |
break; |
171 |
|
|
172 |
case 'l': |
case 'l': |
173 |
radlog_dir = string_create(optarg); |
radlog_dir = estrdup(optarg); |
174 |
break; |
break; |
175 |
|
|
176 |
case 'm': |
case 'm': |
260 |
void |
void |
261 |
set_config_defaults() |
set_config_defaults() |
262 |
{ |
{ |
263 |
exec_user = string_create("daemon"); |
exec_user = estrdup("daemon"); |
264 |
username_valid_chars = string_create(".-_!@#$%^&\\/"); |
username_valid_chars = estrdup(".-_!@#$%^&\\/"); |
265 |
message_text[MSG_ACCOUNT_CLOSED] = |
message_text[MSG_ACCOUNT_CLOSED] = |
266 |
string_create(_("Sorry, your account is currently closed\n")); |
estrdup(_("Sorry, your account is currently closed\n")); |
267 |
message_text[MSG_PASSWORD_EXPIRED] = |
message_text[MSG_PASSWORD_EXPIRED] = |
268 |
string_create(_("Password has expired\n")); |
estrdup(_("Password has expired\n")); |
269 |
message_text[MSG_PASSWORD_EXPIRE_WARNING] = |
message_text[MSG_PASSWORD_EXPIRE_WARNING] = |
270 |
string_create(_("Password will expire in %R{Password-Expire-Days} Days\n")); |
estrdup(_("Password will expire in %R{Password-Expire-Days} Days\n")); |
271 |
message_text[MSG_ACCESS_DENIED] = |
message_text[MSG_ACCESS_DENIED] = |
272 |
string_create(_("\nAccess denied\n")); |
estrdup(_("\nAccess denied\n")); |
273 |
message_text[MSG_REALM_QUOTA] = |
message_text[MSG_REALM_QUOTA] = |
274 |
string_create(_("\nRealm quota exceeded - access denied\n")); |
estrdup(_("\nRealm quota exceeded - access denied\n")); |
275 |
message_text[MSG_MULTIPLE_LOGIN] = |
message_text[MSG_MULTIPLE_LOGIN] = |
276 |
string_create(_("\nYou are already logged in %R{Simultaneous-Use} times - access denied\n")); |
estrdup(_("\nYou are already logged in %R{Simultaneous-Use} times - access denied\n")); |
277 |
message_text[MSG_SECOND_LOGIN] = |
message_text[MSG_SECOND_LOGIN] = |
278 |
string_create(_("\nYou are already logged in - access denied\n")); |
estrdup(_("\nYou are already logged in - access denied\n")); |
279 |
message_text[MSG_TIMESPAN_VIOLATION] = |
message_text[MSG_TIMESPAN_VIOLATION] = |
280 |
string_create(_("You are calling outside your allowed timespan\n")); |
estrdup(_("You are calling outside your allowed timespan\n")); |
281 |
} |
} |
282 |
|
|
283 |
static int |
static int |