Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/pynslcd/search.py
Commit message (Collapse)AuthorAgeFilesLines
* Improve Python code styleArthur de Jong2019-09-081-8/+11
| | | | | | 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-1/+5
| | | | | | | | | 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.
* Also run invalidators on initial connectArthur de Jong2013-10-251-2/+6
| | | | | | This also invalidates the caches configured with reconnect_invalidate on the first successful search. This should handle the case more gracefully where caches were filled with negative hits before nslcd was running.
* Properly handle start_tls in pynslcdArthur de Jong2013-07-281-0/+4
|
* Rename nscd_invalidate option to reconnect_invalidateArthur de Jong2013-07-261-2/+2
| | | | | This also renames the internal nscd module to invalidator for both nslcd and pynslcd. The new invalidator module is now no longer nscd-specific.
* Python style changesArthur de Jong2013-04-121-1/+1
| | | | | | | 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.
* Detect and handle connection failure and recoveryArthur de Jong2013-03-291-0/+22
| | | | | Logs a connection recovery message and run a nscd cache invalidation if configured.
* clean up imports and use ↵Arthur de Jong2013-03-091-4/+0
| | | | ldap.filter.escape_filter_chars() directly
* move get_connection function to search module as ↵Arthur de Jong2013-03-091-0/+25
| | | | Connection class as subclass of ReconnectLDAPObject to automatically reconnect to the LDAP server
* move Search class to search moduleArthur de Jong2013-03-091-0/+144