Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/pynslcd
Commit message (Collapse)AuthorAgeFilesLines
* Handle failure of getpeercred more gracefullyArthur de Jong2013-08-251-9/+9
|
* Rearrange Python importsArthur de Jong2013-08-254-5/+6
|
* Have pynslcd handle mapped userPasswordArthur de Jong2013-08-213-4/+17
| | | | | | This fixes an error that could occur when the userPassword was retrieved from LDAP and insufficient privileges were available for reading the attribute.
* Fix rootpwmodpw handling in pynslcdArthur de Jong2013-08-181-2/+2
|
* Fix not logging passwords in pynslcd (7108b1f)Arthur de Jong2013-08-181-1/+1
|
* Rename isvalidname() to is_valid_name() in pynslcdArthur de Jong2013-08-184-7/+7
|
* Do not log passwords in pynslcdArthur de Jong2013-08-181-1/+8
|
* -n switch for pynslcdArthur de Jong2013-08-181-3/+10
|
* Use retrieve_by, group_by and group_columns in the cacheArthur de Jong2013-08-179-160/+229
| | | | | | | | | | This removes custom retrieve() functions and Query classes from the database modules and uses retrieve_sql retrieve_by, group_by and group_columns to make a custom retrieval query. In the cache module this completely replaces how the query grouping is done. The Query class is now only used inside the cache and the CnAliasedQuery, RowGrouper and related classed have been removed.
* Make Cache a context managerArthur de Jong2013-08-171-0/+6
|
* Give cache tables friendlier namesArthur de Jong2013-08-179-61/+74
| | | | This also defined the tables for netgroup storage.
* Explicitly define tables used for cacheArthur de Jong2013-08-178-14/+35
| | | | | | | This introduces the tables property in the Cache object that is used to define the used tables. This also fixes the storing of mulit-valued attributes in the cache.
* Move cache table creation to modulesArthur de Jong2013-08-1712-177/+193
| | | | | | This also moves the creation of a SQLite database connection to a _get_connection() function to ensure the cache is only created when the caches are instantiated.
* Fix missing part of d659e83Arthur de Jong2013-07-301-2/+2
|
* Use cleaner import and get rid of uid2dn function in pynslcdArthur de Jong2013-07-292-12/+5
|
* Handle the nss_min_uid option in pynslcdArthur de Jong2013-07-292-4/+16
|
* Handle the nss_initgroups_ignoreusers option in pynslcdArthur de Jong2013-07-292-1/+9
|
* Fix handling of pam_password_prohibit_message in pynslcdArthur de Jong2013-07-292-2/+2
|
* Implement config request handling in pynslcdArthur de Jong2013-07-293-3/+49
| | | | This allows the PAM module to request the pam_password_prohibit_message option for denying password change.
* Implement PAM session handling in pynslcdArthur de Jong2013-07-281-2/+61
| | | | | Just like in nslcd this doesn't actually do anything with the session ids except generating them.
* Properly handle start_tls in pynslcdArthur de Jong2013-07-281-0/+4
|
* Fix errors in invalidator changesArthur de Jong2013-07-262-2/+2
| | | | | This fixes a few typos and an omission in the configuration file parsing code.
* Rename nscd_invalidate option to reconnect_invalidateArthur de Jong2013-07-265-19/+19
| | | | | This also renames the internal nscd module to invalidator for both nslcd and pynslcd. The new invalidator module is now no longer nscd-specific.
* Allow invalidating the nfsidmap cacheArthur de Jong2013-07-262-16/+18
| | | | This introduces an nfsidmap value for nscd_invalidate which will cause the nfsidmap -c command to be run.
* Fix nscd cache flushing bug in pynslcdArthur de Jong2013-07-261-1/+1
| | | | | The pynslcd implementation would always clear the passwd nscd cache regardless of the provided map.
* Ignore errors in opening NSS moduleArthur de Jong2013-05-101-1/+4
|
* Python style changesArthur de Jong2013-04-129-39/+36
| | | | | | | 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.
* Raise an error with a missing old password on password ↵Arthur de Jong2013-04-121-1/+3
| | | | modification
* Fix getting caller's uid on password change (pynslcd)Arthur de Jong2013-04-121-1/+1
|
* Include the usermod.py file in the distributionArthur de Jong2013-04-051-1/+2
|
* Update the shadowLastChange on password change in pynslcdArthur de Jong2013-03-301-0/+27
|
* Implement password modification in pynslcdArthur de Jong2013-03-301-1/+69
|
* Handle user modification requests in pynslcdArthur de Jong2013-03-302-0/+132
| | | | | Similar to the nslcd implementation, this currently only covers modifying the homeDirectory and loginShell attributes.
* Rename authentication function and return connectionArthur de Jong2013-03-301-9/+9
|
* Mark unsupported pynslcd configuration optionsArthur de Jong2013-03-301-17/+16
|
* Detect and handle connection failure and recoveryArthur de Jong2013-03-292-1/+28
| | | | | Logs a connection recovery message and run a nscd cache invalidation if configured.
* Start the nscd invalidator process if neededArthur de Jong2013-03-291-0/+4
|
* Parse the nscd_invalidate optionArthur de Jong2013-03-291-0/+11
|
* Functionality for clearing the nscd cache in pynslcdArthur de Jong2013-03-292-1/+108
|
* 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.
* Rename validate_request to validateArthur de Jong2013-03-291-3/+3
|
* Also perform authentication search using LDAPSearch classArthur de Jong2013-03-291-1/+2
|
* Implement a nss_nested_groups configuration optionArthur de Jong2013-03-242-12/+15
| | | | | | This option can be used in both nslcd and pynslcd to enable recursive group member lookups. By default the functionality is disabled. This also updates the documentation.
* Implement support for nested groups in pynslcdArthur de Jong2013-03-242-16/+54
|
* log hex value of action id to make debugging easierArthur de Jong2013-03-091-1/+1
|
* ensure consistent naming of DN variablesArthur de Jong2013-03-091-9/+8
|
* clean up imports and use ↵Arthur de Jong2013-03-097-21/+21
| | | | ldap.filter.escape_filter_chars() directly
* move get_connection function to search module as ↵Arthur de Jong2013-03-093-25/+28
| | | | Connection class as subclass of ReconnectLDAPObject to automatically reconnect to the LDAP server
* move Search class to search moduleArthur de Jong2013-03-0915-148/+184
|
* fix default logging configuration setting in pynslcdArthur de Jong2013-03-091-1/+1
|