Skip to content

Commit

Permalink
[Kim] vyos#2554 fix pam ldaps config
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoxit committed Jun 10, 2022
1 parent 3ecf63e commit bed728b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
8 changes: 0 additions & 8 deletions src/etc/pam.d/common-account-ldaps
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
# here are the per-package modules (the "Primary" block)
account [success=ok default=1] pam_localuser.so
account [success=1 new_authtok_reqd=done default=ignore] pam_unix.so
# here's the fallback if no module succeeds
account requisite pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
account required pam_permit.so
# and here are more per-package modules (the "Additional" block)
account [success=ok new_authtok_reqd=done ignore=ignore user_unknown=ignore authinfo_unavail=ignore default=bad] pam_ldap.so minimum_uid=1000
# end of pam-auth-update config
7 changes: 1 addition & 6 deletions src/etc/pam.d/common-auth-ldaps
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# here are the per-package modules (the "Primary" block)
auth [success=ok default=1] pam_localuser.so
auth required pam_group.so
auth [success=2 default=ignore] pam_unix.so nullok
auth [success=1 default=ignore] pam_ldap.so minimum_uid=1000 use_first_pass
# here's the fallback if no module succeeds
auth requisite pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
auth required pam_permit.so
# and here are more per-package modules (the "Additional" block)
auth optional pam_cap.so
7 changes: 0 additions & 7 deletions src/etc/pam.d/common-session-noninteractive-ldaps
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# here are the per-package modules (the "Primary" block)
session [default=1] pam_permit.so
# here's the fallback if no module succeeds
session requisite pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
session required pam_permit.so
# and here are more per-package modules (the "Additional" block)
session required pam_mkhomedir.so umask=0022 skel=/etc/skel
session required pam_unix.so
session [success=ok default=ignore] pam_ldap.so minimum_uid=1000
# end of pam-auth-update config

0 comments on commit bed728b

Please sign in to comment.