| | | |
Offset 1350, 429 lines modified | Offset 1350, 102 lines modified |
1350 | #·c.Authenticator.username_pattern·=·'' | 1350 | #·c.Authenticator.username_pattern·=·'' |
| |
1351 | ##·Deprecated,·use·`Authenticator.allowed_users` | 1351 | ##·Deprecated,·use·`Authenticator.allowed_users` |
1352 | #··Default:·set() | 1352 | #··Default:·set() |
1353 | #·c.Authenticator.whitelist·=·set() | 1353 | #·c.Authenticator.whitelist·=·set() |
| |
1354 | #------------------------------------------------------------------------------ | 1354 | #------------------------------------------------------------------------------ |
1355 | #·LocalAuthenticator(Authenticator)·configuration | 1355 | #·NullAuthenticator(Authenticator)·configuration |
1356 | #------------------------------------------------------------------------------ | |
1357 | ##·Base·class·for·Authenticators·that·work·with·local·Linux/UNIX·users | |
1358 | #·· | |
1359 | #··Checks·for·local·users,·and·can·attempt·to·create·them·if·they·exist. | |
| |
1360 | ##·The·command·to·use·for·creating·users·as·a·list·of·strings | |
1361 | #·· | |
1362 | #··For·each·element·in·the·list,·the·string·USERNAME·will·be·replaced·with·the | |
1363 | #··user's·username.·The·username·will·also·be·appended·as·the·final·argument. | |
1364 | #·· | |
1365 | #··For·Linux,·the·default·value·is: | |
1366 | #·· | |
1367 | #······['adduser',·'-q',·'--gecos',·'""',·'--disabled-password'] | |
1368 | #·· | |
1369 | #··To·specify·a·custom·home·directory,·set·this·to: | |
1370 | #·· | |
1371 | #······['adduser',·'-q',·'--gecos',·'""',·'--home',·'/customhome/USERNAME',·'-- | |
1372 | #··disabled-password'] | |
1373 | #·· | |
1374 | #··This·will·run·the·command: | |
1375 | #·· | |
1376 | #······adduser·-q·--gecos·""·--home·/customhome/river·--disabled-password·river | |
1377 | #·· | |
1378 | #··when·the·user·'river'·is·created. | |
1379 | #··Default:·[] | |
1380 | #·c.LocalAuthenticator.add_user_cmd·=·[] | |
| |
1381 | ##· | |
1382 | #··See·also:·Authenticator.admin_users | |
1383 | #·c.LocalAuthenticator.admin_users·=·set() | |
| |
1384 | ##· | |
1385 | #··See·also:·Authenticator.allow_all | |
1386 | #·c.LocalAuthenticator.allow_all·=·False | |
| |
1387 | ##· | |
1388 | #··See·also:·Authenticator.allow_existing_users | |
1389 | #·c.LocalAuthenticator.allow_existing_users·=·False | |
| |
1390 | ##·Allow·login·from·all·users·in·these·UNIX·groups. | |
1391 | #·· | |
1392 | #··..·versionchanged::·5.0 | |
1393 | #······`allowed_groups`·may·be·specified·together·with·allowed_users, | |
1394 | #······to·grant·access·by·group·OR·name. | |
1395 | #··Default:·set() | |
1396 | #·c.LocalAuthenticator.allowed_groups·=·set() | |
| |
1397 | ##· | |
1398 | #··See·also:·Authenticator.allowed_users | |
1399 | #·c.LocalAuthenticator.allowed_users·=·set() | |
| |
1400 | ##·Is·there·any·allow·config? | |
1401 | #··See·also:·Authenticator.any_allow_config | |
1402 | #·c.LocalAuthenticator.any_allow_config·=·False | |
| |
1403 | ##·The·max·age·(in·seconds)·of·authentication·info | |
1404 | #··See·also:·Authenticator.auth_refresh_age | |
1405 | #·c.LocalAuthenticator.auth_refresh_age·=·300 | |
| |
1406 | ##·Automatically·begin·the·login·process | |
1407 | #··See·also:·Authenticator.auto_login | |
1408 | #·c.LocalAuthenticator.auto_login·=·False | |
| |
1409 | ##· | |
1410 | #··See·also:·Authenticator.auto_login_oauth2_authorize | |
1411 | #·c.LocalAuthenticator.auto_login_oauth2_authorize·=·False | |
| |
1412 | ##· | |
1413 | #··See·also:·Authenticator.blocked_users | |
1414 | #·c.LocalAuthenticator.blocked_users·=·set() | |
| |
1415 | ##·If·set·to·True,·will·attempt·to·create·local·system·users·if·they·do·not·exist | |
1416 | #··already. | |
1417 | #·· | |
1418 | #··Supports·Linux·and·BSD·variants·only. | |
1419 | #··Default:·False | |
1420 | #·c.LocalAuthenticator.create_system_users·=·False | |
| |
1421 | ##·Delete·any·users·from·the·database·that·do·not·pass·validation | |
1422 | #··See·also:·Authenticator.delete_invalid_users | |
1423 | #·c.LocalAuthenticator.delete_invalid_users·=·False | |
| |
1424 | ##·Enable·persisting·auth_state·(if·available). | |
1425 | #··See·also:·Authenticator.enable_auth_state | |
1426 | #·c.LocalAuthenticator.enable_auth_state·=·False | |
| |
1427 | ##·DEPRECATED:·use·allowed_groups | |
1428 | #··Default:·set() | |
1429 | #·c.LocalAuthenticator.group_whitelist·=·set() | |
| |
1430 | ##·Let·authenticator·manage·user·groups | |
1431 | #··See·also:·Authenticator.manage_groups | |
1432 | #·c.LocalAuthenticator.manage_groups·=·False | |
| |
1433 | ##·Let·authenticator·manage·roles | |
1434 | #··See·also:·Authenticator.manage_roles | |
1435 | #·c.LocalAuthenticator.manage_roles·=·False | |
| |
1436 | ##· | |
1437 | #··See·also:·Authenticator.otp_prompt | |
1438 | #·c.LocalAuthenticator.otp_prompt·=·'OTP:' | |
| |
1439 | ##· | |
1440 | #··See·also:·Authenticator.post_auth_hook | |
1441 | #·c.LocalAuthenticator.post_auth_hook·=·None | |
| |
1442 | ##·Force·refresh·of·auth·prior·to·spawn. | |
1443 | #··See·also:·Authenticator.refresh_pre_spawn | |
1444 | #·c.LocalAuthenticator.refresh_pre_spawn·=·False | |
| |
1445 | ##· | |
1446 | #··See·also:·Authenticator.request_otp | |
1447 | #·c.LocalAuthenticator.request_otp·=·False | |
| |
1448 | ##·Reset·managed·roles·to·result·of·`load_managed_roles()`·on·startup. | |
1449 | #··See·also:·Authenticator.reset_managed_roles_on_startup | |
1450 | #·c.LocalAuthenticator.reset_managed_roles_on_startup·=·False | |
| |
1451 | ##·Dictionary·of·uids·to·use·at·user·creation·time.·This·helps·ensure·that·users | |
Max diff block lines reached; 32163/37111 bytes (86.67%) of diff not shown.
|