Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* Fix Python 3 compatibility in chsh.ldapArthur de Jong2019-10-132-4/+4
|
* Get files ready for 0.9.11 release0.9.11Arthur de Jong2019-10-061-2/+2
|
* Various spelling fixesArthur de Jong2019-09-171-1/+1
|
* Update Python interpreter in installed scriptsArthur de Jong2019-09-081-2/+3
| | | | | | | | Ensure that the Python interpreter that is passed to configure ends up in the shebang of the Python scripts. This allows one to pass PYTHON=python3 to configure to install the scripts using the Python 3 interpreter.
* Improve Python code styleArthur de Jong2019-09-084-48/+56
| | | | | | 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-083-11/+12
| | | | | | | | | 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.
* Fix crash in chsh.ldapMizunashi Mana2018-09-051-1/+3
| | | | | | Specify result type of getusershell. Closes https://github.com/arthurdejong/nss-pam-ldapd/pull/31
* Get files ready for 0.9.8 release0.9.8Arthur de Jong2017-06-261-2/+2
|
* Make nslcd-utils Python 3 compatibleArthur de Jong2017-06-046-36/+53
| | | | | | | | 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.
* Fix output of getent.ldap networksArthur de Jong2017-06-041-1/+1
| | | | Contrary to the hosts output the network name is listed first.
* Fix IPv6 lookups in getent.ldapArthur de Jong2017-06-041-2/+2
|
* Accept multiple key arguments to getent.ldapArthur de Jong2017-06-041-115/+180
| | | | | This allows supplying multiple arguments to getent.ldap that will each act as a search key for lookups, similar to what normal getent allows.
* 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
* Get files ready for 0.9.7 release0.9.7Arthur de Jong2016-08-141-2/+2
|
* Also use module-name in utilities and man pagesArthur de Jong2016-07-272-4/+5
| | | | | | | | | This ensures that getent.ldap, chsh.ldap and manual pages with ldap in the name will be installed with the name as specified with --with-module-name. Note that the manual page content still describes the working within nss-pam-ldapd and still mention the ldap name.
* Rearrange Python importsArthur de Jong2013-08-252-2/+2
|
* Improve error and help output of getent commandArthur de Jong2013-08-181-5/+15
|
* Python style changesArthur de Jong2013-04-124-67/+68
| | | | | | | 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
|
* Install utilities in share/nslcd-utilsArthur de Jong2013-04-121-1/+1
|
* Initial version of a chsh.ldap utilityArthur de Jong2013-03-306-2/+237
|
* move parsing to command line arguments to main bodyArthur de Jong2013-03-011-4/+1
|
* implement a getent command to query nslcd while ↵Arthur de Jong2013-02-084-0/+518
| | | | bypassing NSS stack
* add an --enable-utils option to configure to build ↵Arthur de Jong2013-02-081-0/+33
command-line utilities