[Bug 220379] [patch] net/nss-pam-ldapd: introducing very basic LOGIN_CLASS(3) support

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jun 30 08:38:55 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220379

            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 at FreeBSD.org
          Reporter: zarychtam at plan-b.pwste.edu.pl
             Flags: maintainer-feedback?(zi at FreeBSD.org)
          Keywords: patch
          Assignee: zi at FreeBSD.org

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

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

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

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.

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


More information about the freebsd-ports-bugs mailing list