forked from vyos/vyos-1x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Kim] vyos#2554 update pam-configs for ldap, unix and sss
* divert standard config * add pam_localuser.so to unix profile to skip unix prompts if non-local user * change use_first_pass for sss auth to forward_pass as use_first_pass will not handle 2fa prompting * change ldap profile to not be enabled by default
- Loading branch information
Showing
4 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Name: LDAP Authentication | ||
Default: no | ||
Priority: 128 | ||
Auth-Type: Primary | ||
Auth-Initial: | ||
[success=end default=ignore] pam_ldap.so minimum_uid=1000 | ||
Auth: | ||
[success=end default=ignore] pam_ldap.so minimum_uid=1000 use_first_pass | ||
Account-Type: Additional | ||
Account: | ||
[success=ok new_authtok_reqd=done ignore=ignore user_unknown=ignore authinfo_unavail=ignore default=bad] pam_ldap.so minimum_uid=1000 | ||
Password-Type: Primary | ||
Password-Initial: | ||
[success=end default=ignore] pam_ldap.so minimum_uid=1000 | ||
Password: | ||
[success=end default=ignore] pam_ldap.so minimum_uid=1000 try_first_pass | ||
Session-Type: Additional | ||
Session: | ||
[success=ok default=ignore] pam_ldap.so minimum_uid=1000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Name: SSS authentication | ||
Default: yes | ||
Priority: 128 | ||
|
||
Auth-Type: Primary | ||
Auth: | ||
[success=end default=ignore] pam_sss.so forward_pass | ||
Auth-Initial: | ||
[success=end default=ignore] pam_sss.so forward_pass | ||
Account-Type: Additional | ||
Account: | ||
sufficient pam_localuser.so | ||
[default=bad success=ok user_unknown=ignore] pam_sss.so | ||
Session-Type: Additional | ||
Session-Interactive-Only: yes | ||
Session: | ||
optional pam_sss.so | ||
Password-Type: Primary | ||
Password: | ||
sufficient pam_sss.so use_authtok | ||
Password-Initial: | ||
sufficient pam_sss.so | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Name: Unix authentication | ||
Default: yes | ||
Priority: 256 | ||
Auth-Type: Primary | ||
Auth: | ||
[success=ok default=1] pam_localuser.so | ||
[success=end default=ignore] pam_unix.so nullok try_first_pass | ||
Auth-Initial: | ||
[success=ok default=1] pam_localuser.so | ||
[success=end default=ignore] pam_unix.so nullok | ||
Account-Type: Primary | ||
Account: | ||
[success=ok default=1] pam_localuser.so | ||
[success=end new_authtok_reqd=done default=ignore] pam_unix.so | ||
Account-Initial: | ||
[success=ok default=1] pam_localuser.so | ||
[success=end new_authtok_reqd=done default=ignore] pam_unix.so | ||
Session-Type: Additional | ||
Session: | ||
required pam_unix.so | ||
Session-Initial: | ||
required pam_unix.so | ||
Password-Type: Primary | ||
Password: | ||
[success=ok default=1] pam_localuser.so | ||
[success=end default=ignore] pam_unix.so obscure use_authtok try_first_pass yescrypt | ||
Password-Initial: | ||
[success=ok default=1] pam_localuser.so | ||
[success=end default=ignore] pam_unix.so obscure yescrypt | ||
|