Skip to content
Snippets Groups Projects
Verified Commit 2b853fe3 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

[NSS] Document and improve example config

parent 6bb37e7e
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment