Skip to content
Snippets Groups Projects
nss_pam_oidc.example.toml 1020 B
Newer Older
Nik | Klampfradler's avatar
Nik | Klampfradler committed
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 = ""

urls.passwd = "https://ticdesk-dev.teckids.org/app/nis/api/passwd/"

# The following configuration maps the attributes as returned by AlekSIS, as
# example onto a system that also has local accounts (thus mapping IDs and
# home directories).
        # No passwords in passwd
        # Map user and group IDs starting at 10000
        uid: (.uid + 10000),
        gid: (.primary_gid + 10000),
        # Append organisation name to Gecos field
        gecos: (.full_name + " (Teckids)"),
        # Remap /home from server to /srv/teckids locally
        dir: ("/srv/teckids/" + (.home_directory|ltrimstr("/home/"))),