Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/pynslcd/pynslcd.py
Commit message (Collapse)AuthorAgeFilesLines
* Handle failure of getpeercred more gracefullyArthur de Jong2013-08-251-9/+9
|
* Rearrange Python importsArthur de Jong2013-08-251-2/+2
|
* -n switch for pynslcdArthur de Jong2013-08-181-3/+10
|
* Implement config request handling in pynslcdArthur de Jong2013-07-291-0/+1
| | | | This allows the PAM module to request the pam_password_prohibit_message option for denying password change.
* Fix errors in invalidator changesArthur de Jong2013-07-261-1/+1
| | | | | This fixes a few typos and an omission in the configuration file parsing code.
* Rename nscd_invalidate option to reconnect_invalidateArthur de Jong2013-07-261-4/+4
| | | | | This also renames the internal nscd module to invalidator for both nslcd and pynslcd. The new invalidator module is now no longer nscd-specific.
* Ignore errors in opening NSS moduleArthur de Jong2013-05-101-1/+4
|
* Python style changesArthur de Jong2013-04-121-15/+17
| | | | | | | This tries to conform more closely to PEP8. Imports have been checked and, if used only once, moved closer to the use to avoid potential import loops. This also includes a few other minor changes, like using __main__ for utility scripts and variable renames to avoid name clashes.
* Handle user modification requests in pynslcdArthur de Jong2013-03-301-0/+1
| | | | | Similar to the nslcd implementation, this currently only covers modifying the homeDirectory and loginShell attributes.
* Start the nscd invalidator process if neededArthur de Jong2013-03-291-0/+4
|
* Switch to using os.environ instead of os.putenv()Arthur de Jong2013-03-291-3/+3
| | | | | The os.putenv() call doesn't update os.environ and Python documentation recommends using os.environ.
* log hex value of action id to make debugging easierArthur de Jong2013-03-091-1/+1
|
* move get_connection function to search module as ↵Arthur de Jong2013-03-091-24/+2
| | | | Connection class as subclass of ReconnectLDAPObject to automatically reconnect to the LDAP server
* log version information from the NSS moduleArthur de Jong2013-02-231-3/+11
|
* handle the log configuration option in pynslcdArthur de Jong2013-02-231-14/+19
|
* merge config.py into constants.py and generate it from ↵Arthur de Jong2012-12-151-15/+14
| | | | | | configure git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1863 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove unneeded bracketsArthur de Jong2012-12-141-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1859 ef36b2f9-881f-0410-afb5-c4e39611909c
* to only set LDAP_OPT_X_SASL_NOCANON if the ↵Arthur de Jong2012-11-131-1/+2
| | | | | | sasl_canonicalize option is explicitly set in the configuration file git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1824 ef36b2f9-881f-0410-afb5-c4e39611909c
* introduce a sasl_canonicalize option that will now, by ↵Arthur de Jong2012-08-141-0/+1
| | | | | | default, disable reverse host name lookups in OpenLDAP git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1733 ef36b2f9-881f-0410-afb5-c4e39611909c
* on startup have the gid option default to the primary ↵Arthur de Jong2012-07-201-10/+9
| | | | | | group of the specified user and load the user's supplementary groups git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1723 ef36b2f9-881f-0410-afb5-c4e39611909c
* avoid setting tls_randfile twice and remove fixed FIXME ↵Arthur de Jong2012-07-151-3/+0
| | | | | | (fixed in r1717) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1721 ef36b2f9-881f-0410-afb5-c4e39611909c
* set the pynslcd process name if possibleArthur de Jong2012-07-151-0/+6
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1720 ef36b2f9-881f-0410-afb5-c4e39611909c
* properly set most LDAP options from configurationArthur de Jong2012-07-151-2/+40
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1717 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement a getpeercred() functionArthur de Jong2012-03-161-2/+7
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1640 ef36b2f9-881f-0410-afb5-c4e39611909c
* formatting fixesArthur de Jong2012-01-201-1/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1611 ef36b2f9-881f-0410-afb5-c4e39611909c
* user the logging framework, handle exceptions properly ↵Arthur de Jong2012-01-061-62/+81
| | | | | | and some cleanups git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1588 ef36b2f9-881f-0410-afb5-c4e39611909c
* support for reading the configuration file (not all ↵Arthur de Jong2011-12-281-2/+3
| | | | | | options are used though) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1581 ef36b2f9-881f-0410-afb5-c4e39611909c
* move the state variables (from command line) from the ↵Arthur de Jong2011-12-281-9/+22
| | | | | | configuration to the main module git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1580 ef36b2f9-881f-0410-afb5-c4e39611909c
* PEP8 fixesArthur de Jong2011-12-271-7/+18
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1573 ef36b2f9-881f-0410-afb5-c4e39611909c
* small code improvementsArthur de Jong2011-05-011-4/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1451 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement service, protocol and rpc lookupsArthur de Jong2011-03-241-0/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1410 ef36b2f9-881f-0410-afb5-c4e39611909c
* update copyright headers to add missing yearsArthur de Jong2011-03-101-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1384 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement module for netgroup lookupsArthur de Jong2011-03-061-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1381 ef36b2f9-881f-0410-afb5-c4e39611909c
* add network name lookupsArthur de Jong2011-03-061-1/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1380 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement module for hostname lookupsArthur de Jong2011-02-141-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1373 ef36b2f9-881f-0410-afb5-c4e39611909c
* add an experimental (currently partial) Python ↵Arthur de Jong2010-12-291-0/+276
implementation of nslcd to see if we can get the same features with easier to maintain code git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1347 ef36b2f9-881f-0410-afb5-c4e39611909c