Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd
Commit message (Collapse)AuthorAgeFilesLines
...
* return values of dn2uid() and uid2dn() should always be usedArthur de Jong2008-04-061-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@673 ef36b2f9-881f-0410-afb5-c4e39611909c
* properly handle the case where dn2uid() couldn't do a ↵Arthur de Jong2008-04-061-2/+2
| | | | | | DN->uid lookup git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@672 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix member->group searches by also searching for DN in ↵Arthur de Jong2008-04-053-6/+56
| | | | | | uniqueMember attribute git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@663 ef36b2f9-881f-0410-afb5-c4e39611909c
* make log line a little bigger to properly log more ↵Arthur de Jong2008-04-051-1/+1
| | | | | | search filters git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@662 ef36b2f9-881f-0410-afb5-c4e39611909c
* only return shadow entries to root usersArthur de Jong2008-04-051-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@661 ef36b2f9-881f-0410-afb5-c4e39611909c
* partial support for reading AD date format for ↵Arthur de Jong2008-04-051-12/+48
| | | | | | pwdLastSet attribute git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@657 ef36b2f9-881f-0410-afb5-c4e39611909c
* split closing of LDAP session to separate funtion to ↵Arthur de Jong2008-04-051-50/+46
| | | | | | invalidate running searches always and closes connection if setting up search failed git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@656 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove code that handles special cases when calling as ↵Arthur de Jong2008-04-043-65/+10
| | | | | | root (removing rootbinddn, rootbindpw, rootuse_sasl and rootsasl_authid options) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@653 ef36b2f9-881f-0410-afb5-c4e39611909c
* revert r628 (using ldap_str2dn() instead of ↵Arthur de Jong2008-04-041-56/+98
| | | | | | ldap_explode_r?dn()) for now to make this compile on older versions of OpenLDAP git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@652 ef36b2f9-881f-0410-afb5-c4e39611909c
* only define and use do_sasl_interact() if we have a sasl ↵Arthur de Jong2008-03-301-4/+13
| | | | | | library git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@648 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't warn about problems retreiving the objectClass ↵Arthur de Jong2008-03-281-3/+0
| | | | | | from en entry git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@644 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix a problem where the newly allocated storage by ↵Arthur de Jong2008-03-271-0/+1
| | | | | | realloc() wasn't used (thanks to Petter Reinholdtsen <pere@hungry.com> for the patch) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@643 ef36b2f9-881f-0410-afb5-c4e39611909c
* add StartTLS support by Ralf Haferkamp <rhafer@suse.de>Arthur de Jong2008-02-151-0/+11
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@634 ef36b2f9-881f-0410-afb5-c4e39611909c
* pass URI to do_bind() to make it work with do_rebind() ↵Arthur de Jong2008-02-151-12/+8
| | | | | | and use that URI (thanks Ralf Haferkamp <rhafer@suse.de>) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@633 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement resizable I/O buffers and tune buffer sizes to ↵Arthur de Jong2008-02-121-1/+9
| | | | | | normal requests git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@630 ef36b2f9-881f-0410-afb5-c4e39611909c
* replace the calls to ldap_explode_dn() and ↵Arthur de Jong2008-02-101-98/+56
| | | | | | ldap_explode_rdn() with a call to ldap_str2dn() resulting in much simpler code git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@628 ef36b2f9-881f-0410-afb5-c4e39611909c
* only support "dns" and "domain" values on platforms with ↵Arthur de Jong2008-02-081-0/+16
| | | | | | the necessary functions available git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@627 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't define struct ether_addr here, it was moved to ↵Arthur de Jong2008-02-081-6/+0
| | | | | | compat/ether.h git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@626 ef36b2f9-881f-0410-afb5-c4e39611909c
* make some changes to allow it to compile on more platformsArthur de Jong2008-02-041-3/+5
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@625 ef36b2f9-881f-0410-afb5-c4e39611909c
* provide replacements for ether_aton_r() and ↵Arthur de Jong2008-02-041-3/+1
| | | | | | ether_ntoa_r() for platforms that don't have them git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@624 ef36b2f9-881f-0410-afb5-c4e39611909c
* only call __nss_configure_lookup() if it is available, ↵Arthur de Jong2008-02-041-0/+5
| | | | | | if it isn't the platform is out of luck git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@623 ef36b2f9-881f-0410-afb5-c4e39611909c
* defined LDAP_SCOPE_DEFAULT it's not defined elsewhereArthur de Jong2008-02-041-0/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@622 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix missing castsArthur de Jong2008-02-041-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@621 ef36b2f9-881f-0410-afb5-c4e39611909c
* actually include the compat header files when neededArthur de Jong2008-02-041-0/+6
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@620 ef36b2f9-881f-0410-afb5-c4e39611909c
* 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