summaryrefslogtreecommitdiff
path: root/config/pam-webserver
diff options
context:
space:
mode:
authorNan Zhou <nanzhoumails@gmail.com>2022-10-12 23:29:34 +0300
committerNan Zhou <nanzhoumails@gmail.com>2022-10-18 01:26:09 +0300
commit307386e8e5a18ec24955fc32bee556409a831a83 (patch)
tree4fc1e3675db68684535eacd4bd75d800f402087f /config/pam-webserver
parentbf7e67e7210df3db013df5fe4c232737fe1eb10b (diff)
downloadbmcweb-307386e8e5a18ec24955fc32bee556409a831a83.tar.xz
move config to a subdir
This pattern is used in other places, e.g., https://github.com/openbmc/phosphor-logging In this way, we can cleanly add the bmcweb_config.h into include directory. Otherwise, any subdir we have in this project will need to include the root. Tested: it builds. Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: I882e51f3acb256a881c9474f6e4d4e19fea4a413
Diffstat (limited to 'config/pam-webserver')
-rw-r--r--config/pam-webserver8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/pam-webserver b/config/pam-webserver
new file mode 100644
index 0000000000..a5e7af4c6a
--- /dev/null
+++ b/config/pam-webserver
@@ -0,0 +1,8 @@
+#%PAM-1.0
+
+auth include common-auth
+# skip redfish group check for non-local user (ldap)
+auth [success=ok perm_denied=1 default=ignore] pam_localuser.so
+auth required pam_succeed_if.so user ingroup redfish
+account include common-account
+password include common-password