summaryrefslogtreecommitdiff
path: root/source3/include/sam.h
AgeCommit message (Collapse)AuthorFilesLines
2002-09-29Remove sam/api.c.Andrew Bartlett1-45/+0
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 (This used to be commit b9036900d0bb227ec16c6a5792c18ef943dcf015)
2002-09-28Forgot to commit this in the patch changing back the create_user API.Andrew Bartlett1-2/+2
(This used to be commit cf249f5b222312bb05fb8ab53413d160149f7477)
2002-09-28Add the beginings of sam_ads to the tree.Andrew Bartlett1-6/+6
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 (This used to be commit 24fb0cde2f0b657df1c99474cd694438c94a566e)
2002-09-25Another patch from metze, towards his work on sam_ads.Andrew Bartlett1-3/+3
See mx-ldap.sf.net for his current progress. (This used to be commit 9c62d1312fdf0aa7b1978e8bbb56fc076ba7e9d0)
2002-09-24- Don't put pointer to sam_domain_handle in sam_methods but single domainsid ↵Jelmer Vernooij1-2/+3
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 (This used to be commit 50d2527eed0eb26c16f2f7e28badbf08d771380e)
2002-09-19Merge in first command for 'samtest'Jelmer Vernooij1-0/+3
Fix small bug in sam/interface.c Make sam backend to default to a define (This used to be commit 60ab55fedf03a0b505b0b73527e031124a46304e)
2002-09-15Make current_sam_methods a const - Patch by Kai KrügerJelmer Vernooij1-3/+3
(This used to be commit bd7245dc6fcff805fcb69f6bd1f4852dadf5aa84)
2002-09-08Patch from Kai Krüger for the new SAM systemJelmer Vernooij1-2/+9
(This used to be commit 771878a2d94009b6eccef5f98d4e782cd85c291e)
2002-09-06Updates to sam_skel from metze, add sam/group.c and add a DEBUG() to theAndrew Bartlett1-2/+5
SAM_ASSERT if we are not going to crash. (This used to be commit f91fcb166107e45ffb3de95a3da65c79992341eb)
2002-09-06This commit includes part of the patch from metze posted to the list, and a fewAndrew Bartlett1-30/+46
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 (This used to be commit e13bc432628a6131be082caedc75cd8a3d206e5a)
2002-09-02small typo, kai is german :-)Volker Lendecke1-1/+1
(This used to be commit f435bf0095694a283db47e33c9eb1b5b6df13d03)
2002-08-29Put in patch from metze (Stefan Metzmacher) to:Jelmer Vernooij1-141/+135
- Rename user -> account - Add sam_* functions (api.c) - Several small fixes (This used to be commit eafcc387045f4f265631a952297caf3f6db779d8)
2002-08-28Put in intermediate version of new SAM system. It's not stable yet, codeJelmer Vernooij1-0/+258
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 (This used to be commit 4b7de5ee236c043e6169f137992baf09a95c6f2c)