summaryrefslogtreecommitdiffstats
path: root/source/sam
Commit message (Collapse)AuthorAgeFilesLines
* This commit make winbindd copy winbindd_idmap.tdb into idmap.tdb on theSimo Sorce2003-04-062-150/+18
| | | | | | | | | | | | | | first run if idmap.tdb is not found, and then eventually convert it to the new format. This is done to unify winbind and idmap databases and to make a backup of winbindd_idmap.tdb in case you want to downgrade (of course it will not be updated). This is needed because idmap.tdb contains also local mappings, not only foreign domains mappings. Added some other fixes/improvements Simo.
* some more idmapping :)Simo Sorce2003-04-051-18/+61
|
* Fixed compiler warning.Tim Potter2003-04-041-1/+1
|
* THE Idmap patch :-)Simo Sorce2003-04-023-85/+170
| | | | | | | | | | | | | | | | | | | includes a --with-idmap=no switch to disable idmap usage if you find problems. cosmetic fixes and param aliases to separate winbind from idamp roles. A temporarily remote idmap winbind compatibility backend. As I have time I will further change code to not call directly winbind (partly done but not tested) and a specilized module will be built in place for the current glue hack. The patch has been tested locally in my limited time, the patch is simple and clear and should not reserve problems, if any just disable it. As usual, comments and fisex are welcome :-) Simo.
* - Use FUNCTION_MACRO, not __FUNCTION__.Jelmer Vernooij2003-03-221-2/+2
| | | | - Add some const
* more on idmapSimo Sorce2003-03-082-69/+192
| | | | | | | | two layers structure with - local tdb cache - remote idmap repository compiles
* some more codeSimo Sorce2003-03-082-0/+472
| | | | (not tested yet)
* initial work for the new idmpa interfaceSimo Sorce2003-03-071-0/+145
|
* Some progress towards gums and tdbsam2Simo Sorce2003-03-074-210/+1076
| | | | genparser works fine, and it is a marvelous tool to store objects in tdb :)
* some more work on gums.Simo Sorce2002-12-283-36/+533
| | | | | - Building a tdbsam2 backend to see what I got right and what not about the proposed API - Corrections to API based on tdbsam2 work
* Finish adding strings to all talloc_init() calls.Jeremy Allison2002-12-231-1/+1
| | | | Jeremy.
* talloc_init_named -> talloc_init.Jeremy Allison2002-12-226-10/+10
| | | | Jeremy.
* updates to the gumsSimo Sorce2002-12-162-90/+539
| | | | introduce genparser will be used by tdbsam2
* Remove FILE_MACRO as __FILE__ is ANSI C.Tim Potter2002-12-041-1/+1
|
* use FILE_MACRO instead of __FILE__Herb Lewis2002-12-033-42/+42
| | | | use FUNCTION_MACRO instead of __FUNCTION_
* Some was asking to look at this code, so better it stay there until we ↵Simo Sorce2002-10-224-0/+1622
| | | | | | | | decide what to do with it. Last updates are support for the right way to support privileges. Simo.
* Sync with metze's CVS treeJelmer Vernooij2002-10-211-79/+253
|
* Don't use SAM FLAGS from smb.h since they're gone - patch from metzeJelmer Vernooij2002-10-142-32/+3
|
* try to put every security descriptors related definitions in the same file.Simo Sorce2002-10-061-2/+2
| | | | | | also try to uniform names to a clean scheme. first part.
* strchr -> strrchrJelmer Vernooij2002-10-021-1/+1
|
* Remove sam/api.c.Andrew Bartlett2002-09-292-773/+547
| | | | | | | | | | | | | | | | | | | | | | | | | | In order to reduce complexity, this patch removes the upper layer of the SAM API. Also, we remove the function pointers on the sam context - there really is no point making these replaceable - that's for the modules. Move a number of functions in include/interface.c around to allow for use of 'static' and to keep the external API in one chunk, at the bottem. All these functions were renamed to remove the context_sam -> sam Consequential changes in the samtest module, and back out metze's change for ACB filtering, becouse I think it belongs in the SAM backeds. (But I will take debate on this one). Changes to the lib/util_sid.c code to create a 'system' token, and make it a SAM_ASSERT() enforced requirement to have a token on those calls that specify it. samtest now uses this. We should have a samtest call to set your own token. We also need to extend our se_access code to cover the things that Win2k is returning in it's access tokens. Currently our system token doesn't pass, due to unexpected flags. (When running sam_ads against Win2k) Andrew Bartlett
* Updates for sam_ads by metze - add the start of domain policy searching, and aAndrew Bartlett2002-09-291-25/+150
| | | | | | small fix for the previous merge. Andrew Bartlett
* Fix typos + report FIXMEJelmer Vernooij2002-09-281-5/+5
|
* Back out one of the API changes, now I recall how it was meant to work.Andrew Bartlett2002-09-284-6/+258
| | | | | | | | | | | | (New accounts are created on thier internal talloc context, not a supplied one and not the one beloning to the SAM) Also actaully add the sam_skel to the tree. I need to work out with Jelmer an appropriate way to ensure we still have an example external build, and if this should move back out again. Andrew Bartlett
* Add the beginings of sam_ads to the tree.Andrew Bartlett2002-09-283-17/+1100
| | | | | | | | | | | | | | | | This module, primarilly the work of "Stefan (metze) Metzmacher" <metze@metzemix.de>, uses the Active Directory schema to store the user/group/other information. I've been testing it against a real AD server, and it is intended to work with OpenLDAP as well. I've moved a few functions around in our other libads code, which has made it easier to tap into that existing code. Also, I've made some changes to the SAM interface, I hope there are not too many objections... To ensure we don't get silly bugs in the skel module, it is now in the default compile. This way you should not forget to update it :-) Andrew Bartlett
* Fix segfault in sam_context_enum_domains - reported by KaiJelmer Vernooij2002-09-261-0/+1
|
* Add samtest command 'enum_accounts' + few typo fixes in sam/interface.cJelmer Vernooij2002-09-251-3/+1
|
* enum_domains shouldn't crash when there are no domains availableJelmer Vernooij2002-09-241-4/+0
|
* Fix bug in get_methods_by_nameJelmer Vernooij2002-09-241-10/+9
| | | | | | | | | Fix bug in enum_domains Add samtest commands: - lookup_sid - lookup_name - enum_domains - lookup_domain
* - Don't put pointer to sam_domain_handle in sam_methods but single domainsid ↵Jelmer Vernooij2002-09-242-19/+26
| | | | | | | | and domainname - Allocate sam_methods, set domain_sid, domain_name and backend_name in make_sam_methods_backend_entry instead of in the backend - Remove sam_context and domain_sid pointers from the sam_init_function - we don't need those arguments anymore since they're available in sam_methods as well
* Move functionality to check whether entries for lp_workgroup() and "BUILTIN"Jelmer Vernooij2002-09-192-69/+98
| | | | | | | | | | | exist and add them if necessary from check_correct_backend_entries into sam_context_check_default_backends. The reason for this is that we don't always want to have BUILTIN and lp_workgroup() in a sam_context, for example when doing sam2sam. check_correct_backend_entries has been renamed to 'check_duplicate_backend_entries' since that's what it currently does. The sam_context_check_default_backends() function is only called by sam_get_static_context(BOOL reload) currently currently.
* Merge in first command for 'samtest'Jelmer Vernooij2002-09-191-17/+16
| | | | | Fix small bug in sam/interface.c Make sam backend to default to a define
* Patch from Stefan (metze) Metzmacher with more updates for the SAM subsystemJelmer Vernooij2002-09-082-180/+397
|
* Fix some missing ; on the end of our SAM_ASSERT()...Andrew Bartlett2002-09-061-4/+4
|
* Get our consts back in line with current norms - only for pointer protection.Andrew Bartlett2002-09-061-7/+7
| | | | | | Debate about extending this policy welcomed on samba-technical. Andrew Bartlett
* Updates to sam_skel from metze, add sam/group.c and add a DEBUG() to theAndrew Bartlett2002-09-061-0/+193
| | | | SAM_ASSERT if we are not going to crash.
* This commit includes part of the patch from metze posted to the list, and a fewAndrew Bartlett2002-09-065-229/+179
| | | | | | | | | | | | | | | | | | | | | of my own changes. In particular: I've added a SAM_ASSERT macro. This expands to either SMB_ASSERT() (which should help us track down bugs) or a return of NT_STATUS_CHECK_FAIL. Metze's changes are mostly to bring the code into line with current discussions on things like adding users/groups, flags etc. I've adjusted a fair bit of the 'const' in the SAM stuff. Const is currently used only for pointers, not for local variables or non-pointer paramters. The benifits and reasons for extending this further need discussion on samba-technical. Also, some of the 'context' paramters should not be const, to allow backend modules to do fancy caching etc in them. Andrew Bartlett
* Several compiler warning fixes + fix dependencies samtestJelmer Vernooij2002-08-291-1/+1
|
* small fixesJelmer Vernooij2002-08-292-7/+6
| | | | make lp_sam_backend() a list
* Add plugin support for the sam system from metze (based on passdb code)Jelmer Vernooij2002-08-291-0/+79
|
* Add new files to Makefile + typo fixJelmer Vernooij2002-08-291-1/+1
|
* Put in patch from metze (Stefan Metzmacher) to:Jelmer Vernooij2002-08-296-372/+692
| | | | | | - Rename user -> account - Add sam_* functions (api.c) - Several small fixes
* Silly of me to only test this with --with-sam and not without. Doh!Jelmer Vernooij2002-08-281-1/+1
|
* Code style + typo fixesJelmer Vernooij2002-08-284-56/+57
| | | | Added Kai Krüger to copyrightholders of interface.c
* Put in intermediate version of new SAM system. It's not stable yet, codeJelmer Vernooij2002-08-285-0/+2591
| | | | | | | | | might be ugly, etc - please don't blame me for anything but instead try to fix the code :-). Compiling of the new sam system can be enabled with the configure option --with-sam Removing passdb/passgrp.c as it's unused fix typo in utils/testparm.c
* Add the current working document on the interface to the tree that we haveAndrew Bartlett2002-07-311-0/+123
*somthing* in the directory. (Stops cvs update -P eating it). This is the combined effort of many from #samba-technical, kai, metze, ctrlsoft, idra and abartlet in particular. It will no doubt change :-) Andrew Bartlett