Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd
Commit message (Collapse)AuthorAgeFilesLines
* support the uniqueMember LDAP attribute that holds DN ↵Arthur de Jong2008-02-033-40/+144
| | | | | | values (they are translated with dn2uid() from passwd.c) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@615 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement a dn2uid() function to transform a DN into a ↵Arthur de Jong2008-02-022-1/+46
| | | | | | username (looking inside the DN or doing an LDAP lookup if neede) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@610 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement myldap_cpy_rdn_value() function to copy rdn ↵Arthur de Jong2008-02-022-19/+67
| | | | | | value into a buffer (functionality like myldap_get_rdn_value()) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@609 ef36b2f9-881f-0410-afb5-c4e39611909c
* log and otherwise ignore errors in ldap_parse_page_control()Arthur de Jong2008-02-021-3/+10
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@608 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix copy-pastoArthur de Jong2008-02-021-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@607 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't request paging when doing a search with scope base ↵Arthur de Jong2008-02-021-6/+11
| | | | | | and ignore errors of ldap_create_page_control() git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@606 ef36b2f9-881f-0410-afb5-c4e39611909c
* reset LDAP error flag if ldap_get_values() returned an ↵Arthur de Jong2008-02-021-1/+6
| | | | | | error because some LDAP functions don't do this correctly git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@605 ef36b2f9-881f-0410-afb5-c4e39611909c
* have proper checks and logs of all ldap operationsArthur de Jong2008-02-011-9/+30
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@604 ef36b2f9-881f-0410-afb5-c4e39611909c
* defined LDAP_DEPRECATED to also have definitions for ↵Arthur de Jong2008-01-311-0/+3
| | | | | | deprecated functions git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@595 ef36b2f9-881f-0410-afb5-c4e39611909c
* move pagectrl code into compat directoryArthur de Jong2008-01-314-271/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@592 ef36b2f9-881f-0410-afb5-c4e39611909c
* include stdint.hArthur de Jong2008-01-301-0/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@584 ef36b2f9-881f-0410-afb5-c4e39611909c
* use uint8_t instead of u_int8_t because the former seems ↵Arthur de Jong2008-01-301-3/+3
| | | | | | to be available on more platforms git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@583 ef36b2f9-881f-0410-afb5-c4e39611909c
* integrate some compatibility code into myldap.c, the ↵Arthur de Jong2008-01-272-4/+6
| | | | | | only place it's used git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@575 ef36b2f9-881f-0410-afb5-c4e39611909c
* work around some LDAP libraries not having all optionsArthur de Jong2008-01-271-0/+13
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@573 ef36b2f9-881f-0410-afb5-c4e39611909c
* on some systems lber.h needs to be included before ldap.hArthur de Jong2008-01-271-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@572 ef36b2f9-881f-0410-afb5-c4e39611909c
* when including stdint.h check if we actually have itArthur de Jong2008-01-271-0/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@571 ef36b2f9-881f-0410-afb5-c4e39611909c
* correct #endif commentArthur de Jong2008-01-272-4/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@570 ef36b2f9-881f-0410-afb5-c4e39611909c
* have a fallback value for HOST_NAME_MAX if it is not definedArthur de Jong2008-01-261-0/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@569 ef36b2f9-881f-0410-afb5-c4e39611909c
* 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