Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
| * merge changes from trunkArthur de Jong2010-10-145-32/+41
| |\ | |/ |/| | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1275 ef36b2f9-881f-0410-afb5-c4e39611909c
* | set {nss,pam}_ldap_so_LINK from configure to allow ↵Arthur de Jong2010-10-141-8/+14
| | | | | | | | | | | | custom linker properties for Solaris (r1261 and r1263 from -solaris branch) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1274 ef36b2f9-881f-0410-afb5-c4e39611909c
* | also include sys/types.h for ethernet-related tests ↵Arthur de Jong2010-10-141-0/+2
| | | | | | | | | | | | (same as in compat/ether.h) (r1259 from -solaris branch) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1273 ef36b2f9-881f-0410-afb5-c4e39611909c
* | move _nss_ldap_initgroups_dyn() definition to the end to ↵Arthur de Jong2010-10-141-24/+24
| | | | | | | | | | | | have more logical order git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1272 ef36b2f9-881f-0410-afb5-c4e39611909c
* | simplify SASL includesArthur de Jong2010-10-141-3/+3
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1271 ef36b2f9-881f-0410-afb5-c4e39611909c
* | link local modules before .a files from common directory ↵Arthur de Jong2010-10-131-1/+1
| | | | | | | | | | | | to pick symbols up in correct order git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1270 ef36b2f9-881f-0410-afb5-c4e39611909c
* | move ethernet function checks outside nslcd-specific ↵Arthur de Jong2010-10-131-12/+12
| | | | | | | | | | | | tests to also compile without warnings when only compiling NSS module git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1269 ef36b2f9-881f-0410-afb5-c4e39611909c
* | make buffer sizes for PAM requests consistent (and large ↵Arthur de Jong2010-10-131-5/+3
| | | | | | | | | | | | enough for most situations) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1267 ef36b2f9-881f-0410-afb5-c4e39611909c
* | rename --with-nss-ldap-maps to --with-nss-mapsArthur de Jong2010-10-131-7/+7
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1266 ef36b2f9-881f-0410-afb5-c4e39611909c
* | small fixArthur de Jong2010-10-131-2/+2
| | | | | | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1265 ef36b2f9-881f-0410-afb5-c4e39611909c
* | set timeout options on LDAP socket to avoid problems ↵Arthur de Jong2010-10-121-0/+11
| | | | | | | | | | | | when the LDAP library hangs on a read() (e.g. at ldap_unbind()) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1264 ef36b2f9-881f-0410-afb5-c4e39611909c