summaryrefslogtreecommitdiff
path: root/server
AgeCommit message (Collapse)AuthorFilesLines
2009-01-11Add support for getpwuid in proxy backendSimo Sorce4-46/+230
2009-01-11Add caching behavior to nsssrv_cmd.c check cache first andSimo Sorce4-20/+82
dispatch to backends only if we have a cache miss.
2009-01-11Turn ldap_provider.c into proxy.c and make it possible to load just anySimo Sorce6-37/+70
libnss library through config directives on the domain object
2009-01-09Minor change to btreemap to use an enum for the return codes of ↵Stephen Gallagher2-17/+24
btreemap_search_key.
2009-01-09If exec() returns in start_service (for example, if the command contains a ↵Stephen Gallagher1-2/+10
typo and therefore doesn't exist), we cannot call exit() due to a bug in D-BUS. We will replace this with _exit() and also print out the nature of the error that caused exec() to return.
2009-01-09Fix a bug in confdb_get_string where attempting to return a default string ↵Stephen Gallagher1-1/+11
of NULL would erroneously report ENOMEM.
2009-01-09Adding 'lib' to the server build directories. Fixes a build failure during ↵Stephen Gallagher1-1/+1
the first attempt to build the SSSD from source. The build process did not create the appropriate output directories for the back-end providers, and therefore could not produce an output library into that directory.
2009-01-09Lots of little nasty bugs fixed.Simo Sorce8-42/+138
I was finally able to get a getpwnam() request go through sssd, hit the remote ldap server and get the answer back with 'getent passwd foo' Yupiee!
2009-01-08The code now successfully sends a getpwnam request to a remote LDAP server,Simo Sorce14-171/+501
and caches the result in LDAP. Still chasing a bug that does not let NSS known that the BE was successful. This makes NSS timeout the client and not return any results yet.
2009-01-07Add current test ldap provider configuration example.Simo Sorce1-0/+7
It is a bit inconsistent with the existing EXAMPLE, will fix later
2009-01-07Check size of incoming packets.Simo Sorce3-6/+15
This should fix a buffer overflow waiting to be exploited :/
2009-01-06Add initial support to connect nss to the data provider as a frontendSimo Sorce3-0/+65
2009-01-06Add more infrastructure to data provider to dispatch requests (still untested).Simo Sorce8-173/+1064
Add helper functions to connect to the data provider. Add some plumbing to the ldap provider (still untested).
2009-01-06fix typoSimo Sorce1-1/+1
2009-01-06fix typoSimo Sorce1-1/+1
2009-01-06SBUS messages with no reply (or no immediate reply) would incorrectly report ↵Stephen Gallagher1-3/+2
DBUS_HANDLER_NOT_YET_HANDLED. This would cause SBUS to report NOT_IMPLEMENTED to the calling function. The message_handler will now check the return code of the method call to determine which reply to send, instead of relying on the presence of a reply message.
2009-01-06Change cli_ctx to include nss_ctx, not just select members of it.Simo Sorce3-16/+17
2009-01-05Fix dp client to connect to the right dbus pipeSimo Sorce4-21/+34
2008-12-22libevents renamed upstream to libteventSimo Sorce10-13/+14
events.h -> tevent.h
2008-12-15Fix dependencies for LDBSumit Bose2-2/+2
2008-12-15Modified sbus_server_new() to take a talloc memory context to useStephen Gallagher4-5/+8
as a parent for the new server context object.
2008-12-15Adding a parameter to the sbus_service_sbus_init function to allow passing ↵Stephen Gallagher6-7/+13
in an sbus_conn_destructor_fn to the sbus_new_connection() function. Fixing minor warning about the usage of talloc_reference.
2008-12-15Disconnected client SBUS connections would delete the master set of ↵Stephen Gallagher5-13/+24
sbus_method_ctx entries, meaning that the next connection to attempt to disconnect would receive a segmentation fault also trying to delete them. They are now talloc_reference()-ed to their connection context and talloc_unlink()-ed upon deletion. I have also modified the sbus_new_server() call to take a reference to an sbus_srv_ctx object as a return argument, so that the calling function can keep track of the SBUS server context if it so chooses.
2008-12-10Initial work on a test provider using the gross hack of dlopen()ing nss_ldapSimo Sorce5-11/+196
:-)
2008-12-10Fix indentation to follow rulesSimo Sorce1-21/+29
2008-12-10Convert leading tabs to 4 spacesSimo Sorce2-56/+56
2008-12-09Fix dbus related memory leaksSimo Sorce3-15/+29
2008-12-08Change data provider into a hub, where backends (ldap, nis, ipa providers)Simo Sorce10-186/+824
and frontends (pam, nss, ... modules) can connect to.
2008-11-25Make a binary out of each major sssd component instead ofSimo Sorce9-136/+223
using the same binary to fork off all services.
2008-11-25Move all server helpers in util/server.cSimo Sorce2-168/+130
2008-11-25Remove the service stuff that we stopped using when we moved toSimo Sorce10-436/+3
the forl/exec model
2008-11-24REmove test client. It's not needed anymore.Simo Sorce3-220/+2
2008-11-24point PIPE_PATH at /var/lib/sss/pipes, not just the private path so that theSimo Sorce5-5/+17
same config option can be used for the nss service
2008-11-24Replacing hard-coded paths with configure script substitutions.Stephen Gallagher12-33/+156
Changing the default SBUS locations to be configure script parameters
2008-11-24change structure nameSimo Sorce2-7/+13
2008-11-24Fix indentationSimo Sorce3-14/+14
2008-11-21Update example configSimo Sorce1-0/+2
2008-11-20Created a helper function sssd_service_sbus_init() to simplify creating the ↵Stephen Gallagher8-100/+168
initial connection to the monitor service within the child services. It will create the D-BUS connection to the monitor and configure the service to handle the mandatory getIdentity and ping methods.
2008-11-20Make it possible to use an arbitrary command to start servicesSimo Sorce2-11/+122
2008-11-20Remove unused code and fix message handlers in dpSimo Sorce2-49/+20
2008-11-20Update config example with data providerSimo Sorce1-0/+5
2008-11-20Start conversion from a fork() and live to a fork()/exec() model.Simo Sorce15-122/+258
To start the dameon now you need to pass the option -s monitor Still have some problems communicating with children.
2008-11-19Add some infrastructure code to add data providers.Simo Sorce7-10/+529
This currently breacks the dameon because of a problem with destroying the monitor dbus server in the children after fork()
2008-11-19Add method to get a connection's private dataSimo Sorce3-7/+13
Fix memory hierarchy, set the destructor on the server context so that it is called before any memory attached to it is freed. Before this change a talloc_free() on the event context would end in a double free and and an abort() inside talloc.
2008-11-19Move definition into the header fileSimo Sorce3-2/+3
2008-11-19btreemap.c and btreemap.h seem to be missing from an earlier commit. Adding ↵Stephen Gallagher2-0/+207
them.
2008-11-17The default message handler will now pass both the method_ctx and theStephen Gallagher5-22/+44
sbus_conn_ctx to all message handling functions. This will allow connection-specific data to be passed in by taking advantage of the sbus_conn_set_private_data() function on the sbus_conn_ctx struct. Presently this private data is global to all methods of the connection context.
2008-11-13Fix trailing spaces and some indentation issues.Simo Sorce1-46/+57
2008-11-07Store all domains served by the SSSD to a binary-tree map for fast NSS lookup.Stephen Gallagher8-10/+179
Changed the "section" feature of confdb.c to use '/' as a delimiter instead of '.', because this conflicted with the ability to use dots in domain names.
2008-11-05Set floor to ping time or the monitor will get crazy trying to pingSimo Sorce1-1/+7
children thousands of times per second.