Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jun 2017 08:38:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 220379] [patch] net/nss-pam-ldapd: introducing very basic LOGIN_CLASS(3) support
Message-ID:  <bug-220379-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220379

            Bug ID: 220379
           Summary: [patch] net/nss-pam-ldapd: introducing very basic
                    LOGIN_CLASS(3) support
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: zi@FreeBSD.org
          Reporter: zarychtam@plan-b.pwste.edu.pl
             Flags: maintainer-feedback?(zi@FreeBSD.org)
          Keywords: patch
          Assignee: zi@FreeBSD.org

Created attachment 183936
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D183936&action=
=3Dedit
nss-pam-ldapd-0.9.8.loginClass.patch

Currently, all users from LDAP are mapped to "default" login class. This pa=
tch
adds very basic LOGIN_CLASS(3) support to net/nss-pam-ldapd.=20

There is no loginClass or equivalent attribute in OpenLDAP NIS schema, but =
some
other attributes could be easily mapped to loginClass attribute in nslcd.co=
nf.=20

This is the example how to map loginClass to "description" attribute, in
absence of destcritpion in user field, the user is mapped to class "student=
":

map passwd loginClass "${description:-student}"

I am using this feature for more than two years, may be someone in the
community will also find this patch useful.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220379-13>