summaryrefslogtreecommitdiff
path: root/pynslcd/group.py
AgeCommit message (Collapse)Author
2014-10-04remove non-nslcd stuffLuke Shumaker
2014-01-05Support blanking the member attributeArthur de Jong
This allows remapping the member attribute to an empty string which removes support for that attribute. This can reduce the number of search operations if the attribute is not used.
2013-09-15Remove unneeded importsArthur de Jong
2013-08-25Rearrange Python importsArthur de Jong
2013-08-21Have pynslcd handle mapped userPasswordArthur de Jong
This fixes an error that could occur when the userPassword was retrieved from LDAP and insufficient privileges were available for reading the attribute.
2013-08-18Rename isvalidname() to is_valid_name() in pynslcdArthur de Jong
2013-08-17Use retrieve_by, group_by and group_columns in the cacheArthur de Jong
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.
2013-08-17Give cache tables friendlier namesArthur de Jong
This also defined the tables for netgroup storage.
2013-08-17Explicitly define tables used for cacheArthur de Jong
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.
2013-08-17Move cache table creation to modulesArthur de Jong
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.
2013-07-29Use cleaner import and get rid of uid2dn function in pynslcdArthur de Jong
2013-07-29Handle the nss_initgroups_ignoreusers option in pynslcdArthur de Jong
2013-04-12Python style changesArthur de Jong
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.
2013-03-24Implement a nss_nested_groups configuration optionArthur de Jong
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.
2013-03-24Implement support for nested groups in pynslcdArthur de Jong
2013-03-09clean up imports and use ldap.filter.escape_filter_chars() directlyArthur de Jong
2013-03-09move Search class to search moduleArthur de Jong
2012-12-16switch protocol from host byte order to network byte order and switch use of ↵Arthur de Jong
uid_t and gid_t in the protocol to int32 git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1864 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-01-29implement a naive offline cacheArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1615 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-01-29small simplification in group lookups (member attributes are not requested ↵Arthur de Jong
anyway) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1614 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-01-29split the result handling into a convert() and write() stepArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1613 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-01-06user the logging framework, handle exceptions properly and some cleanupsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1588 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-12-28support for reading the configuration file (not all options are used though)Arthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1581 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-12-28never request group members for GroupByMemberRequestArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1578 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-12-28instead of modifying attmap, modify attribute listArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1577 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-12-28fix references to attmap (broken in r1571)Arthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1576 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-12-27make logging more consistent and remove test bases from shadow and passwd mapsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1574 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-12-27PEP8 fixesArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1573 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-12-12define the search separately from the requestArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1571 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-12-12move check of required attributes and other common tests to the ↵Arthur de Jong
Request.handle_entry() method git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1570 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-08-05replace last traces of groupOfUniqueNamesArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1488 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-08-03switch to using the member attribute by default instead of uniqueMemberArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1484 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-05-13simplify request handling by passing read parameters around in a dict ↵Arthur de Jong
instead of setting object properties (this mainly simplifies search filter building) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1455 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-05-01implement attribute mapping functionality and do some refactoringArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1454 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-05-01small code improvementsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1451 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-04-28put standard library imports before application imports and remove some ↵Arthur de Jong
unused imports git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1438 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-04-28remove duplicate and wrong write() methodArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1437 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-12-29add an experimental (currently partial) Python implementation of nslcd to ↵Arthur de Jong
see if we can get the same features with easier to maintain code git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1347 ef36b2f9-881f-0410-afb5-c4e39611909c