summaryrefslogtreecommitdiff
path: root/server/providers/data_provider_be.c
AgeCommit message (Collapse)AuthorFilesLines
2009-07-20add infrastructure to handle new backend targetsSumit Bose1-110/+168
2009-04-14Make reconnection to the Data Provider a global settingStephen Gallagher1-2/+2
Previously, every DP client was allowed to set its own "retries" option. This option was ambiguous, and useless. All DP clients will now use a global option set in the services config called "reconnection_retries"
2009-04-13Fix a couple of segfaults and timeout checksSimo Sorce1-18/+17
2009-04-13Always pass full domain infoSimo Sorce1-6/+11
Change sysdb to always passwd sss_domain_info, not just the domain name. This way domain specific options can always be honored at the db level.
2009-04-07Split modules types in Identity and AuthenticatorSimo Sorce1-20/+135
The same module may implement both types, but initializatrion will be nonetheless performed separately, once for the identity module and once for the authenticator module. Also change the proxy module to retireve the pam target name from the domain configuration so that it is possibile to create per-domain pam stacks. With this modification it is actually possibile to use normal nss and pam modules to perform a successful authentication (tested only with sudo so far) Update exmples.
2009-04-01Do not file a sure segfault.Simo Sorce1-0/+2
2009-03-20Enhance server_setupSimo Sorce1-1/+7
Now it can load from scratch default configuration that is valid for all daemons. First thing, make it possible for each daemon/provider to set its own debug level in its configuration entry.
2009-03-20Enable autoreconnection of Data Provider Backends to the Data ProviderStephen Gallagher1-3/+94
2009-03-19use pam_data as main data structure for dbus communicationSumit Bose1-38/+8
2009-02-26Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce1-5/+6
dependencies based on the latest samba code. Convert all references to the old events library to use the renamed tevent library.
2009-02-24Add PAM responderSumit Bose1-1/+137
Also move responders under server/responder with shared code in server/responder/common Signed-off-by: Simo Sorce <ssorce@redhat.com>
2009-02-24Proper fix for memory handling problem.Simo Sorce1-36/+46
sbus_message_handler is not responsible anymore for sending back data in any case. Transfer this responsibility to the handler function called. This way both synchronous and asynchronous funstions use the interface the same way and can properly free memory referenced by the reply after the send buffer has been filled in and all copies are done in sbus_conn_send_reply()
2009-02-24Revert "Fixing serious memory allocation bug in sbus_message_handler."Simo Sorce1-30/+41
This reverts commit 13421cbe0af4343f9d110600755ffa756690b282. Conflicts: server/infopipe/infopipe.c server/infopipe/infopipe.h While this solution fixed the contingent memory problem it introduced other problems in handling asynchronous replies. Reverting in preparation for a different way to solve it. Conflicts have been taken care of.
2009-02-23Fixing serious memory allocation bug in sbus_message_handler.Stephen Gallagher1-41/+30
dbus_message_append_args() adds a reference to memory that is not copied to the outgoing message until dbus_connection_send() is called. Since we compile our reply messages in functions and then return the reply, we need a mechanism for deleting allocated memory after invoking dbus_connection_send. I have changed the arguments to sbus_msg_handler_fn so that it takes a talloc ctx containing the sbus_message_handler_ctx and a pointer to a reply object. We can now allocate memory as a child of the reply context and free it after calling dbus_connection_send.
2009-02-13Make backend requests asyncSimo Sorce1-14/+223
2009-02-13Always pass teh database path explicitly, so that test cases can useSimo Sorce1-1/+1
throw away databases Check version and init main db if empty
2009-02-12Remove dp_cli_sbus_initSimo Sorce1-12/+5
2009-01-27Refactoring the monitor code and SBUS utility functions.Stephen Gallagher1-11/+59
2009-01-14Add code to make it easier to reconnect in case the serverSimo Sorce1-15/+3
is not available immediately or drops the dbus connection. First step is the nss connection to the data provider.
2009-01-12Regroup database rleated functions under db andSimo Sorce1-3/+2
rename everything with the sysdb suffix.
2009-01-11Turn ldap_provider.c into proxy.c and make it possible to load just anySimo Sorce1-1/+2
libnss library through config directives on the domain object
2009-01-08The code now successfully sends a getpwnam request to a remote LDAP server,Simo Sorce1-18/+53
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-06Add more infrastructure to data provider to dispatch requests (still untested).Simo Sorce1-153/+87
Add helper functions to connect to the data provider. Add some plumbing to the ldap provider (still untested).
2009-01-05Fix dp client to connect to the right dbus pipeSimo Sorce1-11/+16
2008-12-15Adding a parameter to the sbus_service_sbus_init function to allow passing ↵Stephen Gallagher1-1/+1
in an sbus_conn_destructor_fn to the sbus_new_connection() function. Fixing minor warning about the usage of talloc_reference.
2008-12-10Initial work on a test provider using the gross hack of dlopen()ing nss_ldapSimo Sorce1-8/+9
:-)
2008-12-08Change data provider into a hub, where backends (ldap, nis, ipa providers)Simo Sorce1-0/+515
and frontends (pam, nss, ... modules) can connect to.