summaryrefslogtreecommitdiff
path: root/server/db/sysdb.h
AgeCommit message (Collapse)AuthorFilesLines
2009-02-26Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce1-8/+8
dependencies based on the latest samba code. Convert all references to the old events library to use the renamed tevent library.
2009-02-20Reorganize sysdb a bit,Simo Sorce1-36/+51
rename _posix_ function into _legacy_ Add support for the posix legacy mode where memberships are stored in memberUId and not in member/memberof pairs. Do not build sysdb as a library
2009-02-13Always pass teh database path explicitly, so that test cases can useSimo Sorce1-3/+4
throw away databases Check version and init main db if empty
2009-02-12- make all functions supposed to get input in posix formatSimo Sorce1-50/+47
use the same namespace (sysdb_posix_) - no need to explicitly start a transaction if only one operation is performed using a synchronous interface - split _add_remove_ functions into separate functions, don't let ldap madness creep into out interfaces
2009-02-12Added sysdb_remove_group_posix and sysdb_remove_group_posix_by_gidStephen Gallagher1-0/+8
Fixed a few small bugs in sysdb_[store|remove]_account_posix. The string "uid=" needed to be replaced with SYSDB_PW_NAME, and the search scope in sysdb_remove_account_posix_by_uid needed to be LDB_SCOPE_ONELEVEL, not LDB_SCOPE_BASE. Added associated unit tests. Modified the unit test structure so that it is called as a single suite, rather than a User and Group suite, since there is too much overlap.
2009-02-12Add support for removing members from groups. Updated convenience functions ↵Stephen Gallagher1-16/+27
for adding/removing user accounts and POSIX groups to the groups. Also modified the add/remove member functions to be a single interface taking a flag for add or removal, since the code only differs by one LDB flag. Added associated unit tests.
2009-02-12Add sysdb_add_group_to_posix_group, refactored sysdb_add_acct_to_posix_group ↵Stephen Gallagher1-0/+11
to now use sysdb_add_member_to_posix_group along with sysdb_add_member_to_posix_group. Added new unit tests to sysdb-tests.c for groups of groups.
2009-02-12Adding sysdb_add_acct_to_posix_group and associated unit testsStephen Gallagher1-2/+12
2009-02-12Adding sysdb_store_group_posix with unit testStephen Gallagher1-3/+8
2009-01-12Regroup database rleated functions under db andSimo Sorce1-0/+148
rename everything with the sysdb suffix.