From ec186a4f38542f870a6376595baafbde74b6a02a Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Tue, 11 May 2021 10:26:11 +0200
Subject: [PATCH] Add example config

---
 etc/nss_pam_oidc.example.toml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 etc/nss_pam_oidc.example.toml

diff --git a/etc/nss_pam_oidc.example.toml b/etc/nss_pam_oidc.example.toml
new file mode 100644
index 0000000..f965805
--- /dev/null
+++ b/etc/nss_pam_oidc.example.toml
@@ -0,0 +1,21 @@
+debug = true
+auth_url = "https://ticdesk-dev.teckids.org/oauth/authorize/"
+token_url = "https://ticdesk-dev.teckids.org/oauth/token/"
+
+[pam]
+client_id = "Df1cpPEBsbG64oZ1Q1L8NetH1UKNBUyA5qhxg1Zh"
+client_secret = ""
+
+[nss]
+client_id = "z8Oz0tG56QRo9QEPUZTs5Eda410FMiJtYxlInxKE"
+client_secret = ""
+passwd_url = "https://ticdesk-dev.teckids.org/app/nis/api/passwd/"
+
+[nss.maps.passwd]
+name = { type = "rename", value = "username" }
+passwd = { type = "static", value = "x" }
+# uid left unchanged
+gid = { type = "rename", value = "primary_gid" }
+gecos = { type = "static", value = "Foo" }
+dir = { type = "rename", value = "home_directory" }
+shell = { type = "rename", value = "login_shell" }
-- 
GitLab