summaryrefslogtreecommitdiff
path: root/nslcd/ldap-nss.c
AgeCommit message (Collapse)Author
2007-12-09get rid of some old code and rename ldap-nss to myldap since there is no ↵Arthur de Jong
more NSS-related code in there git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@489 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-12-09ignore decoding errors from ldap_get_values() as they are just nonexisting ↵Arthur de Jong
attribute values git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@486 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-11-26clean up Kerberos ccname code, moving it to cfg.c, fixing some bugs in the ↵Arthur de Jong
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
2007-11-16patch from Andreas Schneider <anschneider@suse.de> to get krb5_ccname option ↵Arthur de Jong
working git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@476 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-28some smaller cleanups and simplifications to the code (getting rid of the ↵Arthur de Jong
is_connected flag git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@474 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-28remove sizelimit parameterArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@473 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-28integrate ent_context attributes into ldap_searchArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@472 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-28remove session from context and remove sycnhronous search functionsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@471 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-28replace calls to _nss_ldap_get_values() by myldap_get_values(), remove ↵Arthur de Jong
unused functions, remove struct ldap_state and replace remaining references to context to use search instead git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@470 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-28remove support for nss_connect_policy configfile option and remove some ↵Arthur de Jong
supporting code for it git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@469 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-28first step to use the new myldap interfaceArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@468 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-25clean up any messages after abandoning the search because that returns a new ↵Arthur de Jong
message (fix memory leak) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@454 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-25fix a memory leak, not storing search entries so they could be freed later onArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@453 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-25fix using unassigned statusArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@452 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-25fix memory leakArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@451 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-19make a replacement for _nss_ldap_getbyname() which uses the myldap calls ↵Arthur de Jong
internally git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@444 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-19integrate basic myldap interface (partially merged from dev-myldap branch)Arthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@443 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-21remove unneeded variables and slightly improve loggingArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@412 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-15centralize opening of connection to LDAP server in do_open() and refactor ↵Arthur de Jong
do_bind() to be simpler (making do_rebind() just one line) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@409 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-15remove support for nested groups and use of uniqueMember and member ↵Arthur de Jong
attributes as well as memberOf attribute (this removes quite some functionality but helps us in refactoring because the code was one big exception to all the other modules) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@407 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-15some more code cleanup, changing return type of _nss_ldap_init(), ↵Arthur de Jong
integrating _nss_ldap_init(), do_init_session(), do_parse_async() and _nss_ldap_search_async() into the functions that call them (each was only called once) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@406 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-15do not pass useless errnos around because they aren't used anymoreArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@404 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-14some type fixes and logic simplificationsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@402 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-14move the two remaining useful functions from util.c to ldap-nss.cArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@400 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-14revert special casing for alias_byname() to other functions and some logging ↵Arthur de Jong
strings simplifications git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@394 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-14remove mutex from all LDAP operations because we now have a session and a ↵Arthur de Jong
connection per thread git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@392 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-14get rid of global session and instead pass the session as a parameter with ↵Arthur de Jong
every request and allocate a session per thread git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@391 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-12some code cleanup and fixes to the layoutArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@390 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-09change naming of search functions to clearly indicate whether the ↵Arthur de Jong
synchronous or the asynchronous interface is used git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@389 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-09some simplifications in the reconnect loging, removing the undocumented ↵Arthur de Jong
nss_reconnect_maxconntries configfile option and some work to split out LDAP compatibility code to a separate file git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@388 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-08move nss2nslcd() to ldap-nss.cArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@387 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-08rename a function and a little bit of cleanupArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@386 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-08fix endless loop bugArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@385 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-08move base and scope handling to database specific modules, gettting rid of ↵Arthur de Jong
ldap_service_search_descriptor git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@384 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-08move filters definitions to the database modules themselves (and already ↵Arthur de Jong
define base and scope but don't use them yet) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@383 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-07make handling of ent_context consistent and simplerArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@382 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-07remove the ldap-schema.[ch] files since this is now fully implemented in the ↵Arthur de Jong
database specific files git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@378 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-07also pass search filter for the *_all() functions from the database module ↵Arthur de Jong
instead of doing it in ldap-nss.c git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@377 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-07move some of the filter code to the database specific modules to be able to ↵Arthur de Jong
reduce complexity of ldap-nss.c later on git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@375 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-03remove sigpipe handling code since sigpipe is ignored throughout the programArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@372 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-08-18fix a couple of uses of per-map bases that could be NULL and remove the ↵Arthur de Jong
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
2007-08-18rewrite configuration file handling to be simpler and more consistent, this ↵Arthur de Jong
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
2007-08-03remove --enable-paged-results configure option and now always do runtime ↵Arthur de Jong
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
2007-07-28define the list of attributes to look up in searches in the service modules ↵Arthur de Jong
instead of in ldap-schema git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@337 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-07-26switch to the new attribute mapping codeArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@331 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-07-26get rid of default and override attribute value mappings and remove host and ↵Arthur de Jong
port configuration options git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@330 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-07-26move some shadow specific functions to shadow.cArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@329 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-07-24remove some more unused codeArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@327 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-07-24switch to a new interface for doing attribute mapping, splitting the ↵Arthur de Jong
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
2007-06-12fix casts of types where neededArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@285 ef36b2f9-881f-0410-afb5-c4e39611909c