Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nss-pam-webapi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
magicfelix
nss-pam-webapi
Commits
2b853fe3
Verified
Commit
2b853fe3
authored
3 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
[NSS] Document and improve example config
parent
6bb37e7e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
etc/nss_pam_oidc.example.toml
+11
-4
11 additions, 4 deletions
etc/nss_pam_oidc.example.toml
with
11 additions
and
4 deletions
etc/nss_pam_oidc.example.toml
+
11
−
4
View file @
2b853fe3
...
...
@@ -12,14 +12,21 @@ 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).
maps.passwd
=
"""
{
name: .username,
# No passwords in passwd
passwd: "x",
uid: .uid,
gid: .primary_gid,
gecos: "Foo",
dir: .home_directory,
# 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/"))),
shell: .login_shell
}
"""
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment