diff --git a/.gitignore b/.gitignore index a10f6218fc5cacd44ae36bd75b0ca11350f55db3..2146c76c4519ab6ab4923d0ca2e98ce95f0afc91 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 0000000000000000000000000000000000000000..c52dee6c9ef9a6f04abf8efee285a84c8f7d96e5 --- /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, +)