summaryrefslogtreecommitdiff
path: root/src/db/sysdb.c
AgeCommit message (Collapse)AuthorFilesLines
2011-04-13sysdb: use header defined macros instead of explicit valuesSimo Sorce1-9/+9
2011-03-23Check result of talloc_strdup() properlyStephen Gallagher1-1/+1
Coverity 10737
2011-03-23Don't crash on error if _name parameter unspecifiedStephen Gallagher1-2/+2
Coverity 10738
2011-03-23Don't crash if we get a multivalued name without an origDNStephen Gallagher1-1/+3
Coverity 10740 and 10739
2011-03-23Add sysdb_attrs_primary_name_list() routineStephen Gallagher1-0/+53
This routine will replace the use of sysdb_attrs_to_list() for any case where we're trying to get the name of the entry. It's a necessary precaution in case the name is multi-valued.
2011-03-23Add sysdb_attrs_primary_name()Stephen Gallagher1-0/+102
This function will check a sysdb_attrs struct for the primary name of the entity it represents. If there are multiple entries, it will pick the one that matches the RDN. If none match, it will throw an error.
2011-03-23Create sysdb_get_rdn() functionStephen Gallagher1-13/+48
This function takes a DN formatted string and returns the RDN value from it.
2011-02-14Check LDB_MODULES_PATH for sysdbSumit Bose1-0/+9
2011-02-14Introduce sysdb_ldb_connect()Sumit Bose1-45/+42
2011-02-11Make 'make check' look nice againSumit Bose1-8/+0
With current libldb releases 'make check' will print a lot of 'unable to dlopen' messages although the test will succeed. This patch place the memberof module into a directory of its own to avoid these messages. Additionally this patch introduces TESTS_ENVIRONMENT which allows us to remove the SYSDB_TEST preprocessor definition.
2011-02-11Clear up -Wunused-but-set-variable warningsStephen Gallagher1-0/+3
2011-02-03Add additional indexing for sysdbStephen Gallagher1-0/+113
Adds an index for dataExpireTimestamp This is used for determining which users need to be removed during the cleanup task. If enumeration is enabled (or huge numbers of users have been cached), the cleanup task runs very slowly due to the non-indexed search. Also adds an index for ONELEVEL lookups, to speed up situations where we would need to request all entries under a particular node in the LDB.
2010-12-20Add sysdb_has_enumerated and sysdb_set_enumerated helper functionsStephen Gallagher1-0/+142
Includes a unit test
2010-11-15Fix const cast issue with sysdb_attrs_users_from_str_listStephen Gallagher1-1/+1
2010-11-15Sanitize sysdb DN helpersStephen Gallagher1-7/+83
2010-11-15Add sysdb utility function for sanitizing DNStephen Gallagher1-0/+24
2010-10-26Always use uint32_t for UID/GID numbersJakub Hrozek1-7/+7
2010-10-15Add sysdb_attrs_get_ulong utility functionJakub Hrozek1-0/+27
2010-10-13Add sysdb_netgroup_base_dn()Sumit Bose1-0/+6
2010-10-13Netgroups sysdb APIStephen Gallagher1-0/+6
2010-09-22Fix sysdb_attrs_to_listJakub Hrozek1-2/+2
2010-09-22Fix sysdb_group_dn_nameJakub Hrozek1-1/+8
2010-09-08Dead assignments cleanup in various places in SSSDJan Zeleny1-0/+3
Three assignments deleted, two return code inspection added. Also found and fixed one critical bug caused by dead assignment. Ticket: #590
2010-08-03Add sysdb_group_dn_name utility functionStephen Gallagher1-0/+22
2010-08-03Add sysdb_attrs_to_list() utility functionStephen Gallagher1-0/+75
2010-06-02Add sysdb_attrs_get_string_array()Sumit Bose1-0/+33
2010-05-27Add ldap_access_filter optionStephen Gallagher1-0/+10
This option (applicable to access_provider=ldap) allows the admin to set an additional LDAP search filter that must match in order for a user to be granted access to the system. Common examples for this would be limiting access to users by in a particular group, for example: ldap_access_filter = memberOf=cn=access_group,ou=Groups,dc=example,dc=com
2010-04-12sysydb: Finally stop using a common event contextSimo Sorce1-19/+7
This commit completes the migration to a synchronous sysdb
2010-04-12sysdb: remove remaining traces of sysdb_handleSimo Sorce1-193/+0
2010-04-12sysdb: remove async transactionsSimo Sorce1-138/+0
not used anymore
2010-04-12sysdb: add synchronous transaction functionsSimo Sorce1-0/+32
2010-04-12sysdb: start conversion from async to syncSimo Sorce1-0/+4
allow nesting during transition
2010-03-04Add forgotten \n in DEBUG statementsMartin Nagy1-4/+4
Logs from confdb with missing '\n' in the DEBUG statements annoyed me so I decided to fix them. I also made a quick grep through the code and found other places so I fixed them too.
2010-03-04Add --with-test-dir option to configureStephen Gallagher1-2/+2
All 'make check' tests will chdir() into this directory before running the suite. This provides the option of having temporary files generated in a tmpfs or ramdisk
2010-02-18Rename server/ directory to src/Stephen Gallagher1-0/+1883
Also update BUILD.txt