summaryrefslogtreecommitdiffstats
path: root/server/confdb
Commit message (Collapse)AuthorAgeFilesLines
* use fixed paths to sockets to make sure clients and server are using the sameSumit Bose2009-03-091-0/+4
|
* Make MPG a configurable option for the domain.Simo Sorce2009-03-092-0/+12
|
* Use LOCAL for the default domain in confdb_init_dbStephen Gallagher2009-03-081-0/+4
|
* added PAM default configuration to confdb_init_dbSumit Bose2009-03-061-6/+35
| | | | | | set default value of enumerate in LOCAL domain to 1 added checks to talloc_asprintf return values fixed InfoPipe defaults
* Add internal min/max/next id management fucntionsSimo Sorce2009-03-042-1/+46
| | | | | | | | Retrieve minID and maxID from domain configuration so that lower and upper bounds can be set per domain. Add function that keeps track of the next available id, increments and returns it on requests, avoiding collisions with existing ids.
* Implement GetUserAttributes in the InfoPipeStephen Gallagher2009-03-021-2/+2
| | | | | | | | | | | | | | | | | | This patch adds support for requesting user data in the sysdb via the InfoPipe. It currently has support for reading defined entries of integral, floating-point or string types. Tasks remaining: 1) Implement call to the provider when cache is out of date 2) Support byte arrays for userpic and similar I modified sysdb_search_ctx in sysdb_search.c to accept an array of attributes to pass into the LDB search. I also made one additional related fix: the btreemap now sorts in the correct order. Previously I had accidentally transposed the two values for sorting, so the map would always have been in exact reverse order.
* Fix confdb issues.Simo Sorce2009-02-282-94/+54
| | | | | | | | | | | Avoid uninitialized memory messages in valgrind (in _btreemap_get_keys). Do not free memory we just stored in the btree (in confdb_get_domains_list). Streamline confdb_get_domains() and remove extra calls when we already have all the information handy. Do not store basedn in domain info, the base dn is always calculated out of the domain name. Remove the "provider" attribute, it was really used only to distinguish between LOCAL and other domains, directly check for LOCAL as a special case instead.
* Refactor creation of domain_map into confdbStephen Gallagher2009-02-272-21/+138
| | | | | | | | | | | | | | | | | The NSS provider, the Data Provider backends and the InfoPipe all need access to the domain map provided by the confdb. Instead of reimplimenting it in multiple places, it is now provided in a pair of helper functions from the confdb. confdb_get_domains() returns a domain map by reference. Always returns the most up-to-date set of domains from the confdb. confdb_get_domains_list() returns an array of strings of all the domain names. Always returns the most up-to-date set of domains from the confdb. This patch also modifies the btreemap_get_keys() function to better handle memory and report allocation failures.
* Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce2009-02-262-5/+6
| | | | | | dependencies based on the latest samba code. Convert all references to the old events library to use the renamed tevent library.
* Spec file patch Take 2:Stephen Gallagher2009-02-241-0/+4
| | | | | | | | | | | | | | | Adding support for generating RPMS for sssd. Fixing TDB autoconf macros to require version 1.1.3 and support for the tdb_repack symbol (required by LDB) Updating tdb.h to #include <sys/stat.h> for proper autoconf Build system modifications to simplify RPM generation Fixing RPM build system as recommended during code review Minor tweaks to Makefile and sssd.spec Make policykit and infopipe configurable Soname and symlinks
* Add helper function to get booleans from confdbSimo Sorce2009-02-202-9/+46
|
* Completely rework the nss interface to be able to use 2Simo Sorce2009-02-202-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | types of domains: modern and legacy modern uses member/meberof, legacy uses memberUid for group memberships. Rework the proxy backend to use the legacy style as that's the format the data comes in (trying to convert would require too many transformations and increased the number of queries). Add support for fetching groups in nss. Add support for enumerating users and groups (requires to enable enumeration in config) both in nss and in the proxy provider. Remove confdb_get_domain_basedn() and substitute with generic calls in the nss init function. Store a domain structure in the btree not the basedn so that we can add enumeration flags. Also make sure NSS understand how to make multiple calls on enumerations, also make passing the domian parameter always mandatory, passing in domain=* is not valid anymore. This work fixes also a few memory, degfault, and logic bugs found while testing all nss functions (there are still some to fix that are less critical and much harder to find yet).
* Always pass teh database path explicitly, so that test cases can useSimo Sorce2009-02-132-13/+7
| | | | | throw away databases Check version and init main db if empty
* Add skeleton for PolicyKit back-endStephen Gallagher2009-01-271-0/+16
|
* Add skeleton for InfoPipe serviceStephen Gallagher2009-01-271-3/+15
|
* Automatically generate the config.ldb if it doesn't exist (i.e. First startup)Stephen Gallagher2009-01-271-6/+83
|
* Fix a bug in confdb_get_string where attempting to return a default string ↵Stephen Gallagher2009-01-091-1/+11
| | | | of NULL would erroneously report ENOMEM.
* Replacing hard-coded paths with configure script substitutions.Stephen Gallagher2008-11-241-2/+13
| | | | Changing the default SBUS locations to be configure script parameters
* Store all domains served by the SSSD to a binary-tree map for fast NSS lookup.Stephen Gallagher2008-11-072-3/+98
| | | | | | 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.
* Add some more service functionsSimo Sorce2008-11-042-0/+46
|
* Add support for dbus comunication in the nss serviceSimo Sorce2008-11-032-0/+38
| | | | | Add utility function in confdb Make all component fetch the dbus socket from the confdb
* Add configuration database functions.Simo Sorce2008-10-202-0/+411
Convert nss responder to use the confdb