From 42e7273e5f963541a049e58c030ee49c708719b4 Mon Sep 17 00:00:00 2001 From: Dominik George <nik@naturalnet.de> Date: Tue, 4 May 2021 23:27:50 +0200 Subject: [PATCH] Add /lib/security glue for pam-python --- .gitignore | 2 -- lib/security/nss_pam_oidc.py | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 lib/security/nss_pam_oidc.py diff --git a/.gitignore b/.gitignore index a10f621..2146c76 100644 --- a/.gitignore +++ b/.gitignore @@ -14,8 +14,6 @@ dist/ downloads/ eggs/ .eggs/ -lib/ -lib64/ parts/ sdist/ var/ diff --git a/lib/security/nss_pam_oidc.py b/lib/security/nss_pam_oidc.py new file mode 100644 index 0000000..c52dee6 --- /dev/null +++ b/lib/security/nss_pam_oidc.py @@ -0,0 +1,22 @@ +# Copyright 2021 Dominik George <nik@naturalnet.de> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from nss_pam_oidc.pam import ( + pam_sm_authenticate, + pam_sm_setcred, + pam_sm_acct_mgmt, + pam_sm_open_session, + pam_sm_close_session, + pam_sm_chauthtok, +) -- GitLab