~ubuntu-branches/ubuntu/trusty/nss-pam-ldapd/trusty-proposed

« back to all changes in this revision

Viewing changes to pynslcd/pynslcd.py

  • Committer: Bazaar Package Importer
  • Author(s): Arthur de Jong
  • Date: 2011-03-10 22:00:00 UTC
  • mto: (14.1.5 experimental) (16.1.6)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20110310220000-tyhxifj2ovpxnqqm
Tags: 0.8.1
* SECURITY FIX: the PAM module will allow authentication for users that do
                not exist in LDAP, this allows login to local users with an
                incorrect password (CVE-2011-0438)
                the explotability of the problem depends on the details of
                the PAM stack and the use of the minimum_uid PAM option
* add FreeBSD support, partially imported from the FreeBSD port (thanks to
  Jacques Vidrine, Artem Kazakov and Alexander V. Chernikov)
* document how to replace name pam_check_service_attr and
  pam_check_host_attr options in PADL's pam_ldap with with pam_authz_search
  in nss-pam-ldapd (closes: #610925)
* implement a fqdn variable that can be used in pam_authz_search filters
* create the directory to hold the socket and pidfile on startup
* implement host, network and netgroup support in pynslcd

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# pynslcd.py - main daemon module
4
4
#
5
 
# Copyright (C) 2010 Arthur de Jong
 
5
# Copyright (C) 2010, 2011 Arthur de Jong
6
6
#
7
7
# This library is free software; you can redistribute it and/or
8
8
# modify it under the terms of the GNU Lesser General Public
65
65
    fp.write('%(PACKAGE_STRING)s\n'
66
66
             'Written by Arthur de Jong.\n'
67
67
             '\n'
68
 
             'Copyright (C) 2010 Arthur de Jong\n'
 
68
             'Copyright (C) 2010, 2011 Arthur de Jong\n'
69
69
             'This is free software; see the source for copying conditions.  There is NO\n'
70
70
             'warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n'
71
71
             % { 'PACKAGE_STRING': config.PACKAGE_STRING, } );
141
141
handlers.update(common.get_handlers('alias'))
142
142
handlers.update(common.get_handlers('ether'))
143
143
handlers.update(common.get_handlers('group'))
 
144
handlers.update(common.get_handlers('host'))
 
145
handlers.update(common.get_handlers('netgroup'))
 
146
handlers.update(common.get_handlers('network'))
144
147
handlers.update(common.get_handlers('pam'))
145
148
handlers.update(common.get_handlers('passwd'))
146
149
handlers.update(common.get_handlers('shadow'))