Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd
Commit message (Collapse)AuthorAgeFilesLines
...
* log error when getpeercred() returned nothingArthur de Jong2008-01-261-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@567 ef36b2f9-881f-0410-afb5-c4e39611909c
* move code to get information from socket peer to the ↵Arthur de Jong2008-01-262-20/+12
| | | | | | compat directory because it is very platform specific git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@565 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix marsing of map statementArthur de Jong2008-01-261-62/+62
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@563 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix problem in map statement end-of-line handlingArthur de Jong2008-01-161-1/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@561 ef36b2f9-881f-0410-afb5-c4e39611909c
* close connections in worker threads at program terminationArthur de Jong2008-01-031-1/+10
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@559 ef36b2f9-881f-0410-afb5-c4e39611909c
* make code a little more compact, don't include debug ↵Arthur de Jong2008-01-031-93/+6
| | | | | | twice in the log message and remove the capabilities code because it will probably never be used git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@558 ef36b2f9-881f-0410-afb5-c4e39611909c
* update copyright yearArthur de Jong2008-01-031-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@555 ef36b2f9-881f-0410-afb5-c4e39611909c
* do not warn about missing loginShell attribute because ↵Arthur de Jong2008-01-031-2/+0
| | | | | | it is not mandatory git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@553 ef36b2f9-881f-0410-afb5-c4e39611909c
* immediatly bail out if write entity function failed ↵Arthur de Jong2008-01-021-1/+2
| | | | | | (prevents numerous "error writing to client" messages from filling up the logs) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@551 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix get_userpassword() function descriptionArthur de Jong2007-12-311-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@546 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix incorrect references to attribute map entriesArthur de Jong2007-12-311-3/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@545 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove TODO (was done)Arthur de Jong2007-12-311-1/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@544 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix bug that would return a password of one character shortArthur de Jong2007-12-311-6/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@543 ef36b2f9-881f-0410-afb5-c4e39611909c
* do not define variable if we're not going to use itArthur de Jong2007-12-271-0/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@542 ef36b2f9-881f-0410-afb5-c4e39611909c
* only log "connected to LDAP server" if it is a new ↵Arthur de Jong2007-12-261-6/+2
| | | | | | connection git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@535 ef36b2f9-881f-0410-afb5-c4e39611909c
* properly handle spaces in some configuration options ↵Arthur de Jong2007-12-262-249/+296
| | | | | | (major change in code in cfg module) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@534 ef36b2f9-881f-0410-afb5-c4e39611909c
* properly flag running searches as invalid if the ↵Arthur de Jong2007-12-261-15/+83
| | | | | | connection to the LDAP server is reset git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@532 ef36b2f9-881f-0410-afb5-c4e39611909c
* have myldap_get_entry() return an LDAP status code that ↵Arthur de Jong2007-12-253-8/+36
| | | | | | can signal errors in the lookup git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@531 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove NSLCD_RESULT_UNAVAIL because it's not needed ↵Arthur de Jong2007-12-251-1/+1
| | | | | | anymore (the connection is broken when an error occurs) and rename NSLCD_RESULT_NOTFOUND into NSLCD_RESULT_END to better match its meaning git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@530 ef36b2f9-881f-0410-afb5-c4e39611909c
* no need for us to flush the buffer since our caller ↵Arthur de Jong2007-12-251-2/+0
| | | | | | closes the stream immediatly (or could otherwise pass the flushing to another thread) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@529 ef36b2f9-881f-0410-afb5-c4e39611909c
* merge the do_map_error(), do_with_reconnect() into the ↵Arthur de Jong2007-12-241-172/+105
| | | | | | myldap_search() and do_try_search() functions having more understandable reconnect and retry logic git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@525 ef36b2f9-881f-0410-afb5-c4e39611909c
* add some more documentation for using the myldap moduleArthur de Jong2007-12-241-26/+35
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@524 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove bind_policy option because the same effect is ↵Arthur de Jong2007-12-223-31/+4
| | | | | | achieved by setting reconnect_tries to 1 git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@522 ef36b2f9-881f-0410-afb5-c4e39611909c
* reorder timing and reconnect options to be more logical ↵Arthur de Jong2007-12-222-45/+34
| | | | | | and remove nss_ prefix from reconnect options git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@521 ef36b2f9-881f-0410-afb5-c4e39611909c
* integrate do_result() into myldap_get_entry() reducing ↵Arthur de Jong2007-12-221-138/+119
| | | | | | complexity and improving error handling git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@518 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove duplicate commentArthur de Jong2007-12-221-1/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@517 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove some unused configuration file optionsArthur de Jong2007-12-222-45/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@516 ef36b2f9-881f-0410-afb5-c4e39611909c
* bring more uniformity to log messagesArthur de Jong2007-12-221-14/+26
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@515 ef36b2f9-881f-0410-afb5-c4e39611909c
* give struct myldap_session members more logical namesArthur de Jong2007-12-221-74/+74
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@514 ef36b2f9-881f-0410-afb5-c4e39611909c
* refactor myldap code to get rid of most of the old nss ↵Arthur de Jong2007-12-202-311/+296
| | | | | | status codes, properly handle failures of ldap function calls and improve sourcecode comments git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@509 ef36b2f9-881f-0410-afb5-c4e39611909c
* add myldap_session_close() function (mainly for testing ↵Arthur de Jong2007-12-202-0/+23
| | | | | | purposes) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@508 ef36b2f9-881f-0410-afb5-c4e39611909c
* move checks of validity of passed entries to separate ↵Arthur de Jong2007-12-201-10/+33
| | | | | | functions git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@507 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove msg member from struct myldap_entry and just ↵Arthur de Jong2007-12-201-12/+7
| | | | | | reference the same message in the search git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@506 ef36b2f9-881f-0410-afb5-c4e39611909c
* rewrite GET_OPTIONAL_DATE() as an extension to ↵Arthur de Jong2007-12-201-20/+4
| | | | | | GET_OPTIONAL_LONG() git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@505 ef36b2f9-881f-0410-afb5-c4e39611909c
* use ether_ntoa_r() instead of ether_ntoa()Arthur de Jong2007-12-201-3/+6
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@503 ef36b2f9-881f-0410-afb5-c4e39611909c
* potential fix for double free() bug like in nss_ldap ↵Arthur de Jong2007-12-141-3/+3
| | | | | | (Debian bug #366172) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@497 ef36b2f9-881f-0410-afb5-c4e39611909c
* improve description of myldap interface in commentsArthur de Jong2007-12-141-7/+8
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@496 ef36b2f9-881f-0410-afb5-c4e39611909c
* explain why we write an invalid address (in comment) and ↵Arthur de Jong2007-12-141-1/+3
| | | | | | add TODO to describe we need to change the log format git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@495 ef36b2f9-881f-0410-afb5-c4e39611909c
* some small layout changesArthur de Jong2007-12-093-4/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@491 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of some old code and rename ldap-nss to myldap ↵Arthur de Jong2007-12-099-362/+24
| | | | | | since there is no more NSS-related code in there git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@489 ef36b2f9-881f-0410-afb5-c4e39611909c
* switch to new LDAP entry parsing code that is much ↵Arthur de Jong2007-12-0913-1330/+975
| | | | | | simpler and more readable git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@488 ef36b2f9-881f-0410-afb5-c4e39611909c
* ignore decoding errors from ldap_get_values() as they ↵Arthur de Jong2007-12-091-1/+3
| | | | | | are just nonexisting attribute values git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@486 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't use backticks as quote markArthur de Jong2007-12-071-3/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@483 ef36b2f9-881f-0410-afb5-c4e39611909c
* clean up Kerberos ccname code, moving it to cfg.c, ↵Arthur de Jong2007-11-263-62/+54
| | | | | | fixing some bugs in the putenv() code, making the gss_krb5_ccache_name() automatically used if the function is available and removing the --with-gssapi-dir, --enable-configurable-krb5-ccname-gssapi and --enable-configurable-krb5-ccname-env configure options git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@481 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement LDAP server discovery through DNS, based on a ↵Arthur de Jong2007-11-251-10/+96
| | | | | | patch by Ralf Haferkamp <rhafer@suse.de> and Michael Calmer <mc@suse.de> git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@480 ef36b2f9-881f-0410-afb5-c4e39611909c
* patch from Andreas Schneider <anschneider@suse.de> to ↵Arthur de Jong2007-11-161-0/+43
| | | | | | get krb5_ccname option working git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@476 ef36b2f9-881f-0410-afb5-c4e39611909c
* some smaller cleanups and simplifications to the code ↵Arthur de Jong2007-10-281-63/+46
| | | | | | (getting rid of the is_connected flag git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@474 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove sizelimit parameterArthur de Jong2007-10-281-5/+5
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@473 ef36b2f9-881f-0410-afb5-c4e39611909c
* integrate ent_context attributes into ldap_searchArthur de Jong2007-10-281-41/+35
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@472 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove session from context and remove sycnhronous ↵Arthur de Jong2007-10-281-39/+4
| | | | | | search functions git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@471 ef36b2f9-881f-0410-afb5-c4e39611909c