Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/utils/nslcd.py
Commit message (Collapse)AuthorAgeFilesLines
* Improve Python code styleArthur de Jong2019-09-081-1/+1
| | | | | | This also adds a flake8 test that checks code style. Note that this test is not run by default because it requires network access to create the virtualenv with the test software.
* Add Python 3 supportArthur de Jong2019-09-081-3/+4
| | | | | | | | | This ensures that both pynslcd and the command-line utilities work with Python3 as interpreter and runs some tests with all installed Python interpreters. This drops support for Python 2.6 and extends 5a84be2 to perform more testing with Python 3.
* Make nslcd-utils Python 3 compatibleArthur de Jong2017-06-041-10/+27
| | | | | | | | This changes the getent.ldap and chsh.ldap commands to be compatible with Python 2 and Python 3 with the same code. This does switch to raw I/O because Python 3 does not support bufferred I/O on sockets.
* Replace Python assertions with exceptionsArthur de Jong2016-08-301-3/+7
| | | | | | | | | The assertions can be optimised out when compiling the modules with -O which would break the protocol handling. This ensures that errors are properly handled even if optimisation is enabled. Thanks Yu-Chun Huang for reporting this. https://github.com/arthurdejong/nss-pam-ldapd/issues/14
* Rearrange Python importsArthur de Jong2013-08-251-1/+1
|
* Python style changesArthur de Jong2013-04-121-6/+6
| | | | | | | 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.
* Set FD_CLOEXEC on the client socket in utilitiesArthur de Jong2013-04-121-1/+1
|
* Initial version of a chsh.ldap utilityArthur de Jong2013-03-301-0/+23
|
* implement a getent command to query nslcd while ↵Arthur de Jong2013-02-081-0/+113
bypassing NSS stack