Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd
Commit message (Collapse)AuthorAgeFilesLines
* move enum ldap_map_selector and struct ↵Arthur de Jong2007-08-262-30/+30
| | | | | | ldap_service_search_descriptor from ldap-nss.h to cfg.h git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@364 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix a couple of uses of per-map bases that could be NULL ↵Arthur de Jong2007-08-181-74/+28
| | | | | | and remove the ldap_proxy_bind_args that wasn't used anywhere git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@345 ef36b2f9-881f-0410-afb5-c4e39611909c
* rewrite configuration file handling to be simpler and ↵Arthur de Jong2007-08-187-787/+670
| | | | | | more consistent, this does mean that the syntax of the configfile has changed from the PADL one and that some options were removed (also update manual page and sample config file to reflect changes) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@343 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove nss_initgroups and nss_initgroups_ignoreusers ↵Arthur de Jong2007-08-033-152/+24
| | | | | | configfile options git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@342 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove --enable-paged-results configure option and now ↵Arthur de Jong2007-08-034-67/+25
| | | | | | always do runtime configuration, remove nss_paged_results configfile option and use pagesize option to specify usage of paging or not git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@340 ef36b2f9-881f-0410-afb5-c4e39611909c
* define the list of attributes to look up in searches in ↵Arthur de Jong2007-07-2816-270/+211
| | | | | | the service modules instead of in ldap-schema git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@337 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix typo in commentArthur de Jong2007-07-281-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@336 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove some more old mapping stuff and change ↵Arthur de Jong2007-07-262-180/+23
| | | | | | configuration file keyword to map with the new syntax git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@332 ef36b2f9-881f-0410-afb5-c4e39611909c
* switch to the new attribute mapping codeArthur de Jong2007-07-2616-190/+160
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@331 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of default and override attribute value mappings ↵Arthur de Jong2007-07-265-426/+33
| | | | | | and remove host and port configuration options git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@330 ef36b2f9-881f-0410-afb5-c4e39611909c
* move some shadow specific functions to shadow.cArthur de Jong2007-07-263-38/+34
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@329 ef36b2f9-881f-0410-afb5-c4e39611909c
* make function _nss_ldap_add_uri() staticArthur de Jong2007-07-262-42/+39
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@328 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove some more unused codeArthur de Jong2007-07-243-25/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@327 ef36b2f9-881f-0410-afb5-c4e39611909c
* switch to a new interface for doing attribute mapping, ↵Arthur de Jong2007-07-2420-179/+597
| | | | | | splitting the attribute mapping stuff into a separate file git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@326 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of some unused attribute mappings and a small ↵Arthur de Jong2007-07-243-79/+28
| | | | | | reorganisation of code git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@325 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of dnsconfig stuff since that probably didn't ↵Arthur de Jong2007-07-247-703/+0
| | | | | | work anyway and it cleans up some stuff git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@323 ef36b2f9-881f-0410-afb5-c4e39611909c
* add comment explaining the use of chmod() over fchmod()Arthur de Jong2007-06-181-0/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@297 ef36b2f9-881f-0410-afb5-c4e39611909c
* support building outside the source directoryArthur de Jong2007-06-171-0/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@289 ef36b2f9-881f-0410-afb5-c4e39611909c
* use the ACX_PTHREAD macro to check for platform ↵Arthur de Jong2007-06-171-1/+1
| | | | | | independant pthread support and required options git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@288 ef36b2f9-881f-0410-afb5-c4e39611909c
* change fchmod() into chmod() since fchmod() has ↵Arthur de Jong2007-06-171-2/+2
| | | | | | undifined behaviour on named sockets (fails silently) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@286 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix casts of types where neededArthur de Jong2007-06-123-38/+31
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@285 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix type of host address and handle errors in writing ↵Arthur de Jong2007-06-121-2/+3
| | | | | | hostent git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@284 ef36b2f9-881f-0410-afb5-c4e39611909c
* move dict into the common directoryArthur de Jong2007-06-114-225/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@279 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement our own stdio-like library that handles IO ↵Arthur de Jong2007-06-0918-92/+103
| | | | | | with a simple configurable timeout mechanism with buffering git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@272 ef36b2f9-881f-0410-afb5-c4e39611909c
* add some comments describing some problems that this ↵Arthur de Jong2007-06-011-0/+5
| | | | | | code may have git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@269 ef36b2f9-881f-0410-afb5-c4e39611909c
* code improvements by making type casts explicit, ↵Arthur de Jong2007-03-0415-116/+130
| | | | | | flagging ignored return values, renames and flagging of parameters and some miscelanious improvements (thanks to gcc warnings, splint, rats and flawfinder) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@265 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove runtime checking for existance of ↵Arthur de Jong2007-03-021-10/+0
| | | | | | /lib/init/rw/libnss-ldap.bind_policy_soft git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@264 ef36b2f9-881f-0410-afb5-c4e39611909c
* do chmod on file descriptor instead of on file nameArthur de Jong2007-03-021-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@262 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix a few bugs found thanks to the new warningsArthur de Jong2007-02-171-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@251 ef36b2f9-881f-0410-afb5-c4e39611909c
* add gcc attributes to some functions and parametersArthur de Jong2007-02-175-11/+26
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@250 ef36b2f9-881f-0410-afb5-c4e39611909c
* replace syslog calls to calls with our own logging moduleArthur de Jong2007-02-105-22/+12
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@240 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix list corruption bug in dict_put() and ignore setting ↵Arthur de Jong2007-02-041-3/+6
| | | | | | value to NULL git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@235 ef36b2f9-881f-0410-afb5-c4e39611909c
* don't store const void * as value, just void *Arthur de Jong2007-02-042-7/+7
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@234 ef36b2f9-881f-0410-afb5-c4e39611909c
* declare old dict functions static as thay are only used ↵Arthur de Jong2007-02-012-165/+149
| | | | | | from within util.c git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@233 ef36b2f9-881f-0410-afb5-c4e39611909c
* trim trailing whitespaceArthur de Jong2007-02-012-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@232 ef36b2f9-881f-0410-afb5-c4e39611909c
* add new dictionary module and use it for the attribute ↵Arthur de Jong2007-02-018-99/+283
| | | | | | mapping stuff git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@231 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of xmalloc.[ch]Arthur de Jong2007-02-014-98/+8
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@230 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove a const where it really wasn'tArthur de Jong2007-01-171-4/+4
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@224 ef36b2f9-881f-0410-afb5-c4e39611909c
* move most config code into cfg.c, clean up dictornary ↵Arthur de Jong2007-01-176-1434/+1348
| | | | | | stuff in util.c and do some more smaller restructuring git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@223 ef36b2f9-881f-0410-afb5-c4e39611909c
* move name_list stuff to group.c as that is the only ↵Arthur de Jong2007-01-174-123/+90
| | | | | | place it's used at the moment git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@222 ef36b2f9-881f-0410-afb5-c4e39611909c
* replace __netgrent with mynetgrent removing the fields ↵Arthur de Jong2007-01-171-8/+5
| | | | | | that are not used git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@221 ef36b2f9-881f-0410-afb5-c4e39611909c
* first step to split out all configuration stuff into ↵Arthur de Jong2007-01-178-419/+443
| | | | | | separate file git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@220 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of more code that would check if the socket was ↵Arthur de Jong2007-01-172-308/+5
| | | | | | changed from under us by our caller git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@219 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of rebinding-on-fork() logic as our threading ↵Arthur de Jong2007-01-171-184/+1
| | | | | | model is very predictable git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@218 ef36b2f9-881f-0410-afb5-c4e39611909c
* write a final result code of NSLCD_RESULT_NOTFOUND for ↵Arthur de Jong2007-01-101-0/+2
| | | | | | netgroup lookups git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@217 ef36b2f9-881f-0410-afb5-c4e39611909c
* change license from GNU Library General Public License ↵Arthur de Jong2007-01-0929-203/+203
| | | | | | v.2 to GNU Lesser General Public License v.2.1 with permission from Luke Howard git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@215 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of a few warningsArthur de Jong2006-12-301-1/+0
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@207 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of debug() function and call log_log() insteadArthur de Jong2006-12-294-164/+129
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@205 ef36b2f9-881f-0410-afb5-c4e39611909c
* do not allocate new memory with malloc() for each ↵Arthur de Jong2006-12-2712-59/+29
| | | | | | request with a string parameter but use a buffer allocated on the stack instead (this simplifies free()-ing the buffer(s) in case of problems) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@204 ef36b2f9-881f-0410-afb5-c4e39611909c
* get rid of NSS_BUFSIZ, rename _nss_ldap_oc_check() to ↵Arthur de Jong2006-12-257-197/+152
| | | | | | has_objectclass(), redo _nss_ldap_escape_string() with simpler logic and slightly different signature and redid layout of some code git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@203 ef36b2f9-881f-0410-afb5-c4e39611909c