diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-09-29 06:07:58 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-09-29 06:07:58 +0000 |
commit | df316e3cd931baaa3793a260b5f2e70cb8235580 (patch) | |
tree | b0f047b8b3bb255209d19a867cd7521916f36a70 /source3/torture/samtest.c | |
parent | a89ecb9bc8d6f812dd8b846939d895f7ab552e66 (diff) | |
download | samba-df316e3cd931baaa3793a260b5f2e70cb8235580.tar.gz samba-df316e3cd931baaa3793a260b5f2e70cb8235580.tar.bz2 samba-df316e3cd931baaa3793a260b5f2e70cb8235580.zip |
Remove sam/api.c.
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)
Diffstat (limited to 'source3/torture/samtest.c')
-rw-r--r-- | source3/torture/samtest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/torture/samtest.c b/source3/torture/samtest.c index b5f7ed9f76..d3268d8b5b 100644 --- a/source3/torture/samtest.c +++ b/source3/torture/samtest.c @@ -360,7 +360,6 @@ int main(int argc, char *argv[]) struct cmd_set **cmd_set; struct samtest_state st; - /* make sure the vars that get altered (4th field) are in a fixed location or certain compilers complain */ poptContext pc; @@ -375,6 +374,8 @@ int main(int argc, char *argv[]) ZERO_STRUCT(st); + st.token = get_system_token(); + setlinebuf(stdout); DEBUGLEVEL = 1; |