Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/pynslcd
Commit message (Collapse)AuthorAgeFilesLines
* get files ready for 0.8.14 release0.8.14Arthur de Jong2014-03-161-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-0.8@2078 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement a -n, --nofork option to run in the foreground ↵Arthur de Jong2013-08-181-2/+9
| | | | | | (cda6dcd from 0.9) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-0.8@2020 ef36b2f9-881f-0410-afb5-c4e39611909c
* various typo and other comment fixes (4b01125, b0785de, ↵Arthur de Jong2013-04-282-4/+4
| | | | | | bfdf7cd, 4689d5f, dba048b, ebe5705 and 122c38d from 0.9) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-0.8@1950 ef36b2f9-881f-0410-afb5-c4e39611909c
* to only set LDAP_OPT_X_SASL_NOCANON if the ↵Arthur de Jong2012-11-132-2/+3
| | | | | | sasl_canonicalize option is explicitly set in the configuration file git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1824 ef36b2f9-881f-0410-afb5-c4e39611909c
* use $(top_srcdir)/nslcd.h instead of $< to avoid ↵Arthur de Jong2012-10-131-1/+1
| | | | | | problems with FreeBSD's make git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1785 ef36b2f9-881f-0410-afb5-c4e39611909c
* change the default value of sasl_canonicalize to yes ↵Arthur de Jong2012-08-311-1/+1
| | | | | | (thanks Marcus Moeller) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1735 ef36b2f9-881f-0410-afb5-c4e39611909c
* introduce a sasl_canonicalize option that will now, by ↵Arthur de Jong2012-08-142-0/+12
| | | | | | default, disable reverse host name lookups in OpenLDAP git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1733 ef36b2f9-881f-0410-afb5-c4e39611909c
* on startup have the gid option default to the primary ↵Arthur de Jong2012-07-201-10/+9
| | | | | | group of the specified user and load the user's supplementary groups git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1723 ef36b2f9-881f-0410-afb5-c4e39611909c
* avoid setting tls_randfile twice and remove fixed FIXME ↵Arthur de Jong2012-07-151-3/+0
| | | | | | (fixed in r1717) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1721 ef36b2f9-881f-0410-afb5-c4e39611909c
* set the pynslcd process name if possibleArthur de Jong2012-07-151-0/+6
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1720 ef36b2f9-881f-0410-afb5-c4e39611909c
* support getting pam_password_prohibit_message from ↵Arthur de Jong2012-07-151-1/+2
| | | | | | configuration (but don't handle it yet) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1719 ef36b2f9-881f-0410-afb5-c4e39611909c
* rename internal pam_authz_search to pam_authz_searchesArthur de Jong2012-07-152-4/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1718 ef36b2f9-881f-0410-afb5-c4e39611909c
* properly set most LDAP options from configurationArthur de Jong2012-07-151-2/+40
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1717 ef36b2f9-881f-0410-afb5-c4e39611909c
* ensure that cache.py is installed (thanks Jon Severinsson)Arthur de Jong2012-07-071-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1713 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement PAM authorisation check using pam_authz_search ↵Arthur de Jong2012-05-041-3/+57
| | | | | | option git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1684 ef36b2f9-881f-0410-afb5-c4e39611909c
* ignore user-supplied DN for PAM requests and don't send ↵Arthur de Jong2012-05-041-25/+24
| | | | | | it back git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1683 ef36b2f9-881f-0410-afb5-c4e39611909c
* move expression handling to own moduleArthur de Jong2012-05-044-140/+187
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1682 ef36b2f9-881f-0410-afb5-c4e39611909c
* ensure search also works without attribute mapArthur de Jong2012-05-041-1/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1681 ef36b2f9-881f-0410-afb5-c4e39611909c
* small code style improvementsArthur de Jong2012-05-041-18/+22
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1680 ef36b2f9-881f-0410-afb5-c4e39611909c
* allow the pam_authz_search option to be specified ↵Arthur de Jong2012-05-041-3/+2
| | | | | | multiple times git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1679 ef36b2f9-881f-0410-afb5-c4e39611909c
* support the upper and lower functions in attribute ↵Arthur de Jong2012-03-161-2/+17
| | | | | | mapping expressions git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1642 ef36b2f9-881f-0410-afb5-c4e39611909c
* refactor some of the attribute mapping code to introduce ↵Arthur de Jong2012-03-163-39/+118
| | | | | | a mapping instance that does the hard work and support the lower() and upper() attribute mapping functions git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1641 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement a getpeercred() functionArthur de Jong2012-03-161-2/+7
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1640 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement a naive offline cacheArthur de Jong2012-01-2913-4/+516
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1615 ef36b2f9-881f-0410-afb5-c4e39611909c
* small simplification in group lookups (member attributes ↵Arthur de Jong2012-01-291-13/+9
| | | | | | are not requested anyway) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1614 ef36b2f9-881f-0410-afb5-c4e39611909c
* split the result handling into a convert() and write() stepArthur de Jong2012-01-2912-114/+111
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1613 ef36b2f9-881f-0410-afb5-c4e39611909c
* formatting fixesArthur de Jong2012-01-201-1/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1611 ef36b2f9-881f-0410-afb5-c4e39611909c
* add missing Python modules to tarballArthur de Jong2012-01-201-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1603 ef36b2f9-881f-0410-afb5-c4e39611909c
* user the logging framework, handle exceptions properly ↵Arthur de Jong2012-01-0614-121/+130
| | | | | | and some cleanups git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1588 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove some information from config that we don't expect ↵Arthur de Jong2011-12-291-9/+0
| | | | | | to use git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1582 ef36b2f9-881f-0410-afb5-c4e39611909c
* support for reading the configuration file (not all ↵Arthur de Jong2011-12-285-23/+254
| | | | | | options are used though) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1581 ef36b2f9-881f-0410-afb5-c4e39611909c
* move the state variables (from command line) from the ↵Arthur de Jong2011-12-282-18/+23
| | | | | | configuration to the main module git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1580 ef36b2f9-881f-0410-afb5-c4e39611909c
* fall back to trying to authenticate with provided ↵Arthur de Jong2011-12-281-0/+4
| | | | | | password (in case rootpwmodpw is not set or unusable) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1579 ef36b2f9-881f-0410-afb5-c4e39611909c
* never request group members for GroupByMemberRequestArthur de Jong2011-12-281-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1578 ef36b2f9-881f-0410-afb5-c4e39611909c
* instead of modifying attmap, modify attribute listArthur de Jong2011-12-281-3/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1577 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix references to attmap (broken in r1571)Arthur de Jong2011-12-282-9/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1576 ef36b2f9-881f-0410-afb5-c4e39611909c
* make logging more consistent and remove test bases from ↵Arthur de Jong2011-12-275-8/+10
| | | | | | shadow and passwd maps git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1574 ef36b2f9-881f-0410-afb5-c4e39611909c
* PEP8 fixesArthur de Jong2011-12-279-24/+37
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1573 ef36b2f9-881f-0410-afb5-c4e39611909c
* define the search separately from the requestArthur de Jong2011-12-1212-105/+153
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1571 ef36b2f9-881f-0410-afb5-c4e39611909c
* move check of required attributes and other common tests ↵Arthur de Jong2011-12-1213-185/+184
| | | | | | to the Request.handle_entry() method git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1570 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of automake warningArthur de Jong2011-08-291-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1527 ef36b2f9-881f-0410-afb5-c4e39611909c
* replace last traces of groupOfUniqueNamesArthur de Jong2011-08-051-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1488 ef36b2f9-881f-0410-afb5-c4e39611909c
* switch to using the member attribute by default instead ↵Arthur de Jong2011-08-031-6/+6
| | | | | | of uniqueMember git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1484 ef36b2f9-881f-0410-afb5-c4e39611909c
* simplify request handling by passing read parameters ↵Arthur de Jong2011-05-1313-178/+144
| | | | | | around in a dict 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
* implement attribute mapping functionality and do some ↵Arthur de Jong2011-05-0115-291/+417
| | | | | | refactoring git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1454 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove unneeded importArthur de Jong2011-05-011-1/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1453 ef36b2f9-881f-0410-afb5-c4e39611909c
* pass dn and attributes to functions separatelyArthur de Jong2011-05-0112-28/+18
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1452 ef36b2f9-881f-0410-afb5-c4e39611909c
* small code improvementsArthur de Jong2011-05-013-10/+9
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1451 ef36b2f9-881f-0410-afb5-c4e39611909c
* set maxdays to -1 to indicate no expiry (instead of a ↵Arthur de Jong2011-04-291-1/+1
| | | | | | long time) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1439 ef36b2f9-881f-0410-afb5-c4e39611909c
* put standard library imports before application imports ↵Arthur de Jong2011-04-2813-53/+40
| | | | | | and remove some unused imports git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1438 ef36b2f9-881f-0410-afb5-c4e39611909c