Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * remove debugging left-oversArthur de Jong2010-12-161-3/+0
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1334 ef36b2f9-881f-0410-afb5-c4e39611909c
| * switch to a common back-end with a common constructor ↵Arthur de Jong2010-12-1610-188/+136
| | | | | | | | | | | | and destructor and put file pointer shared between {set,get,end}ent() calls in there git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1333 ef36b2f9-881f-0410-afb5-c4e39611909c
| * split NSS notes into a Glibc and a Solaris section and ↵Arthur de Jong2010-12-161-4/+38
| | | | | | | | | | | | add Solaris documentation pointers git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1332 ef36b2f9-881f-0410-afb5-c4e39611909c
| * have a more consistent naming convention for static ↵Arthur de Jong2010-12-1310-124/+124
| | | | | | | | | | | | lookup functions git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1331 ef36b2f9-881f-0410-afb5-c4e39611909c
| * fix assignment in if statement (was broken in r1262)Arthur de Jong2010-12-139-20/+20
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1330 ef36b2f9-881f-0410-afb5-c4e39611909c
| * merge changes from trunkArthur de Jong2010-12-1226-231/+505
| |\ | |/ |/| | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1329 ef36b2f9-881f-0410-afb5-c4e39611909c
* | pass the ld to do_bind() instead of the session to use ↵Arthur de Jong2010-12-121-14/+18
| | | | | | | | | | | | the correct ld from do_rebind() git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1328 ef36b2f9-881f-0410-afb5-c4e39611909c
* | always return a positive authorisation result during ↵Arthur de Jong2010-12-121-6/+6
| | | | | | | | | | | | authentication because we don't do any authorisation checks during authentication and this may confuse the PAM module if it's only used for authorisation git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1327 ef36b2f9-881f-0410-afb5-c4e39611909c
* | fallback to standard PAM error message if one wasn't ↵Arthur de Jong2010-12-121-0/+5
| | | | | | | | | | | | returned by nslcd git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1326 ef36b2f9-881f-0410-afb5-c4e39611909c
* | fix commentArthur de Jong2010-12-121-1/+1
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1325 ef36b2f9-881f-0410-afb5-c4e39611909c
* | include extra assertion checksArthur de Jong2010-12-111-0/+2
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1322 ef36b2f9-881f-0410-afb5-c4e39611909c
* | in each worker wake up once in a while to check whether ↵Arthur de Jong2010-12-083-12/+54
| | | | | | | | | | | | any existing LDAP connections should be closed git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1319 ef36b2f9-881f-0410-afb5-c4e39611909c
* | in try_bind(), perform the search ourselves instead of ↵Arthur de Jong2010-12-031-3/+22
| | | | | | | | | | | | using lookup_dn2uid() to also be able to match administrator DNs (thanks to Thaddeus J. Kollar for spotting this) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1318 ef36b2f9-881f-0410-afb5-c4e39611909c
* | fix handling of try_bind() result code in ↵Arthur de Jong2010-12-031-3/+3
| | | | | | | | | | | | nslcd_pam_authc() (patch by Thaddeus J. Kollar) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1317 ef36b2f9-881f-0410-afb5-c4e39611909c
* | close all open file descriptors on startArthur de Jong2010-11-261-0/+8
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1316 ef36b2f9-881f-0410-afb5-c4e39611909c
* | return correct PAM status code for when LDAP server is ↵Arthur de Jong2010-11-173-9/+19
| | | | | | | | | | | | unavailable (based on a patch by Pierre Gambarotto) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1315 ef36b2f9-881f-0410-afb5-c4e39611909c
* | switch all internal functions to return an LDAP status codeArthur de Jong2010-11-171-27/+31
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1314 ef36b2f9-881f-0410-afb5-c4e39611909c
* | return correct kind of error code from try_pwmod() (bug)Arthur de Jong2010-11-171-1/+2
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1313 ef36b2f9-881f-0410-afb5-c4e39611909c
* | implement configuring SASL authentication using Debconf, ↵Arthur de Jong2010-11-103-18/+165
| | | | | | | | | | | | based on a patch by Daniel Dehennin git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1312 ef36b2f9-881f-0410-afb5-c4e39611909c
* | fix for problem with undefined values in read_config() ↵Arthur de Jong2010-11-101-0/+2
| | | | | | | | | | | | function git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1311 ef36b2f9-881f-0410-afb5-c4e39611909c
* | split reading values from a configfile into a separate ↵Arthur de Jong2010-11-071-21/+20
| | | | | | | | | | | | function and also ensure that tls_reqcert is correctly read git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1310 ef36b2f9-881f-0410-afb5-c4e39611909c
* | add comment describing functionArthur de Jong2010-11-071-0/+1
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1309 ef36b2f9-881f-0410-afb5-c4e39611909c
* | split updating configuration file based on debconf value ↵Arthur de Jong2010-11-071-41/+30
| | | | | | | | | | | | to separate function and make config option renaming consistent git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1308 ef36b2f9-881f-0410-afb5-c4e39611909c
* | fix installation directory for PAM module (was broken in ↵Arthur de Jong2010-11-071-1/+1
| | | | | | | | | | | | r1239) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1307 ef36b2f9-881f-0410-afb5-c4e39611909c
* | move special casing of handling bindpw removal to ↵Arthur de Jong2010-11-071-11/+7
| | | | | | | | | | | | cfg_disable() function git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1306 ef36b2f9-881f-0410-afb5-c4e39611909c
* | handle tls_reqcert option consistently with other optionsArthur de Jong2010-11-072-4/+6
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1305 ef36b2f9-881f-0410-afb5-c4e39611909c
* | remove extra slash characterArthur de Jong2010-11-071-1/+1
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1304 ef36b2f9-881f-0410-afb5-c4e39611909c
* | guess NSS SONAME on freebsdArthur de Jong2010-11-071-0/+1
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1303 ef36b2f9-881f-0410-afb5-c4e39611909c
* | use NSS flavour to determine which exports file to useArthur de Jong2010-11-071-1/+1
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1302 ef36b2f9-881f-0410-afb5-c4e39611909c
* | log the request with any logged messagesArthur de Jong2010-11-0715-73/+111
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1301 ef36b2f9-881f-0410-afb5-c4e39611909c
* | SASL compatibility definitionArthur de Jong2010-11-071-0/+4
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1300 ef36b2f9-881f-0410-afb5-c4e39611909c
| * merge changes from trunkArthur de Jong2010-11-048-35/+38
| |\ | |/ |/| | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1299 ef36b2f9-881f-0410-afb5-c4e39611909c
* | move acceptconnection() function body inside the ↵Arthur de Jong2010-11-041-51/+63
| | | | | | | | | | | | worker() so we can more easily break out of the connection handling thread, close the server socket inside the signal handler to cause all threads waiting on accept() to fail and ensure that signals are handled in the main thread by blocking them in the worker threads (r1290 from -solaris branch) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1298 ef36b2f9-881f-0410-afb5-c4e39611909c
* | avoid unneeded strdup()s by using a passed buffer to ↵Arthur de Jong2010-11-043-26/+27
| | | | | | | | | | | | lookup_dn2uid() and using strcmp() in dn2uid() to see if the existing cached value is ok git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1297 ef36b2f9-881f-0410-afb5-c4e39611909c
* | fix race condition that could cause a memory leakArthur de Jong2010-11-041-0/+3
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1296 ef36b2f9-881f-0410-afb5-c4e39611909c
* | pass the actual size of the address family and the path ↵Arthur de Jong2010-11-042-2/+2
| | | | | | | | | | | | length to bind() and connect() for named sockets git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1295 ef36b2f9-881f-0410-afb5-c4e39611909c
* | call myldap_session_check() before adding a new search ↵Arthur de Jong2010-11-031-2/+2
| | | | | | | | | | | | to the session so the connection actually gets closed on timeout (the connection isn't closed when there are active searches) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1294 ef36b2f9-881f-0410-afb5-c4e39611909c
* | chage test for compiling with gcc to be simpler and not ↵Arthur de Jong2010-10-161-2/+2
| | | | | | | | | | | | use deprecated ac_cv_prog_gcc git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1288 ef36b2f9-881f-0410-afb5-c4e39611909c
* | fix log messageArthur de Jong2010-10-161-1/+1
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1287 ef36b2f9-881f-0410-afb5-c4e39611909c
* | remove obsolete noteArthur de Jong2010-10-161-2/+1
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1286 ef36b2f9-881f-0410-afb5-c4e39611909c
| * move acceptconnection() function body inside the ↵Arthur de Jong2010-10-281-51/+63
| | | | | | | | | | | | worker() so we can more easily break out of the connection handling thread, close the server socket inside the signal handler to cause all threads waiting on accept() to fail and ensure that signals are handled in the main thread by blocking them in the worker threads git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1290 ef36b2f9-881f-0410-afb5-c4e39611909c
| * remove redundant backslashArthur de Jong2010-10-281-1/+1
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1289 ef36b2f9-881f-0410-afb5-c4e39611909c
| * make formatting consistentArthur de Jong2010-10-151-12/+11
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1283 ef36b2f9-881f-0410-afb5-c4e39611909c
| * also export _nss_ldap_enablelookups so we can disable ↵Arthur de Jong2010-10-151-2/+5
| | | | | | | | | | | | the NSS module from nslcd git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1282 ef36b2f9-881f-0410-afb5-c4e39611909c
| * switch to using SETs to follow the netgroupsArthur de Jong2010-10-155-144/+26
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1281 ef36b2f9-881f-0410-afb5-c4e39611909c
| * merge changes from trunkArthur de Jong2010-10-157-51/+102
| |\ | |/ |/| | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1280 ef36b2f9-881f-0410-afb5-c4e39611909c
* | implement dict_getany() and set_pop() functions to be ↵Arthur de Jong2010-10-155-4/+50
| | | | | | | | | | | | able to pick and remove entries git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1279 ef36b2f9-881f-0410-afb5-c4e39611909c
* | make DICTs and SETs case-sensitiveArthur de Jong2010-10-155-31/+32
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1278 ef36b2f9-881f-0410-afb5-c4e39611909c
* | split out checking of NSS module availability and buffer ↵Arthur de Jong2010-10-151-27/+22
| | | | | | | | | | | | correctness to separate macros (taken from the -solaris branch) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1277 ef36b2f9-881f-0410-afb5-c4e39611909c
* | set a longer socket timout for the normal connection ↵Arthur de Jong2010-10-151-19/+23
| | | | | | | | | | | | (just in case mostly) and a short one to use when shutting down the connection (also see http://www.openldap.org/its/index.cgi?selectid=6673) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1276 ef36b2f9-881f-0410-afb5-c4e39611909c