Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/utils/getent.py
Commit message (Collapse)AuthorAgeFilesLines
* Make nslcd-utils Python 3 compatibleArthur de Jong2017-06-041-17/+17
| | | | | | | | 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.
* Also use module-name in utilities and man pagesArthur de Jong2016-07-271-2/+3
| | | | | | | | | 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-251-1/+1
|
* Improve error and help output of getent commandArthur de Jong2013-08-181-5/+15
|
* Python style changesArthur de Jong2013-04-121-34/+34
| | | | | | | 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.
* 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-081-0/+346
bypassing NSS stack