summaryrefslogtreecommitdiff
path: root/server
AgeCommit message (Collapse)AuthorFilesLines
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.
2008-11-05Update config.ldif exampleSimo Sorce1-0/+6
2008-11-04Add the ping funtion to the nss service Make the monitor task ping ↵Simo Sorce7-150/+506
connecting services Make it possible to configure timeouts and service ping times.
2008-11-04Rename function, do not use other libraries namespaceSimo Sorce2-9/+16
2008-11-04Add some more service functionsSimo Sorce2-0/+46
2008-11-03Add support for dbus comunication in the nss serviceSimo Sorce7-41/+197
Add utility function in confdb Make all component fetch the dbus socket from the confdb
2008-11-03Use a common interface file for all users of the internalSimo Sorce4-22/+62
sbus service.
2008-11-03Renaming sssd/server/dbus to sssd/server/sbus. Making necessary changes to ↵Stephen Gallagher8-12/+12
header includes and makefiles.
2008-11-03Refactoring dbus code. Also corrected one talloc allocation mistake for ↵Stephen Gallagher7-207/+205
sbus_dispatch.
2008-11-03Moved method handling into sssd_dbus_connection.c. Added support for ↵Stephen Gallagher8-173/+557
handling multiple D-BUS paths in a connection. Added support for per-connection method setup. Added support for per-connection specialized destructors. Added mandatory getIdentity call for all services connecting to the monitor. If they do not present an identity (expose the getIdentity method and respond with name and version), they are dropped immediately. Other minor fixes.
2008-11-03Missed a file on the last commit. Resetting the dbus_server to use the ↵Stephen Gallagher1-1/+1
common remove_watch code.
2008-11-03Cleaning up improper whitespaceStephen Gallagher5-25/+15
2008-11-03Fixed segfault issue when remote connection is lost.Stephen Gallagher5-9/+67
2008-11-03Fixing SEGFAULT caused by not completely purging watch data when removing a ↵Stephen Gallagher1-0/+1
D-BUS watch from the event loop
2008-11-03Initial memory cleanup workStephen Gallagher8-10/+71
2008-10-27D-BUS integration style changes.Simo Sorce12-501/+597
Rework interfaces a bit to simplify and uniform function names so that they use a well defined namespace (sssd_*). Simplify headers file, split them into a private and a public one only. Make static all file private functions. Rename sssd_dbus_client.c to sssd_dbus_connection.c to reflect it's function, as it is is used by both a server and a client. Introduce a function table to know where to dipatch messages. Fix coding style issues, and start pointing out where clean-up fucntions are missing.
2008-10-24Integrate D-BUS support for use as IPC between parts.Stephen Gallagher12-11/+923
Integrates DBUS with the event system so that it is asynchronous.
2008-10-24Minor/Cosmetic fixesStephen Gallagher1-1/+1
2008-10-21Make return the pid when new process are started.Simo Sorce10-136/+162
Monitor each service and restart it conditionally if it fails. These monitoring is extremely simple at this moment and just uses waitpid() to check if the client is alive, there is no active probing, that will require dbus. Make nsssrv.c read the sss pipe config option for the config db.
2008-10-21Add example ldifs to bootstrap the serverSimo Sorce2-0/+62
2008-10-20Start using the configuration backend in the main server too.Simo Sorce1-7/+25
Now unless properly configured, no services are started by default.
2008-10-20Add configuration database functions.Simo Sorce9-132/+767
Convert nss responder to use the confdb
2008-10-14 add code for initgroups callsSimo Sorce4-0/+206
2008-10-14Fix error in parsing multiple groupsSimo Sorce4-29/+346
Revert to use 'cn' for group names Implement getgrent()
2008-10-13Implement getgrgid()Simo Sorce4-2/+62
2008-10-12Implement getgrnam()Simo Sorce4-14/+354
2008-10-09Implement getpwent() supportSimo Sorce5-77/+335
2008-10-09Fix memory handling problem, stuff was allocated on the wrong memory context,Simo Sorce1-7/+7
causing it to be freed ahead of time
2008-10-09Use classic errno instead of inventing our own, it's broad enough fro atm.Simo Sorce9-63/+65
2008-10-08Add getpwuid supportSimo Sorce3-8/+93
2008-10-08Use a utility function (to be shared with getpwent)Simo Sorce1-60/+75
2008-10-08First retrieval of a user (getpwnam only) from an actual ldb fileSimo Sorce10-32/+362
2008-10-07Fix build issues surrounding signal blocking and DEBUG macrosStephen Gallagher3-0/+3
2008-10-07We need replace.h here or __location__ cannot be foundSimo Sorce1-0/+1
2008-10-07Forgot to add debug.cSimo Sorce1-0/+20
2008-10-07Add primitive debugging capabilities.Simo Sorce3-4/+16
So far debug goes to stderr so sssd need to be run int interactive mode (-i option)
2008-10-06First working daemon that responds only to a getpwnam() request with fake dataSimo Sorce5-62/+215
2008-10-04Add initial nss responder skeletonSimo Sorce6-4/+494
2008-10-04Make it possible to pass extra CFLAGS and LDFLAGS by passingSimo Sorce1-1/+1
them on the command line before calling makefiles