diff options
author | cvs2svn Import User <samba-bugs@samba.org> | 2003-03-18 07:09:24 +0000 |
---|---|---|
committer | cvs2svn Import User <samba-bugs@samba.org> | 2003-03-18 07:09:24 +0000 |
commit | 74d3be021897d47e04a4ebecc484d16621b93c9d (patch) | |
tree | b6551b8c36820b2d5c9d24c4531dd0f14dc7ed97 /source3/stf/info3cache.py | |
parent | 417bf608f4253fadf4b227b5f7360f03b0193ff2 (diff) | |
parent | a084f06fe33eb9903489763bc34c7092080a0a5e (diff) | |
download | samba-74d3be021897d47e04a4ebecc484d16621b93c9d.tar.gz samba-74d3be021897d47e04a4ebecc484d16621b93c9d.tar.xz samba-74d3be021897d47e04a4ebecc484d16621b93c9d.zip |
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit f0d009c3e91979b0dc3443e16f3f545bcc64cfda)
Diffstat (limited to 'source3/stf/info3cache.py')
-rwxr-xr-x | source3/stf/info3cache.py | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/source3/stf/info3cache.py b/source3/stf/info3cache.py new file mode 100755 index 0000000000..96d5a1d459 --- /dev/null +++ b/source3/stf/info3cache.py @@ -0,0 +1,54 @@ +#!/usr/bin/python +# +# Upon a winbindd authentication, test that an info3 record is cached in +# netsamlogon_cache.tdb and cache records are removed from winbindd_cache.tdb +# + +import comfychair, stf +from samba import tdb, winbind + +# +# We want to implement the following test on a win2k native mode domain. +# +# 1. trash netsamlogon_cache.tdb +# 2. wbinfo -r DOMAIN\Administrator [FAIL] +# 3. wbinfo --auth-crap DOMAIN\Administrator%password [PASS] +# 4. wbinfo -r DOMAIN\Administrator [PASS] +# +# Also for step 3 we want to try 'wbinfo --auth-smbd' and +# 'wbinfo --auth-plaintext' +# + +# +# TODO: To implement this test we need to be able to +# +# - pass username%password combination for an invidivual winbindd request +# (so we can get the administrator SID so we can clear the info3 cache) +# +# - start/restart winbindd (to trash the winbind cache) +# +# - from samba import dynconfig (to find location of info3 cache) +# +# - be able to modify the winbindd cache (to set/reset individual winbind +# cache entries) +# +# - have --auth-crap present in HEAD +# + +class WinbindAuthCrap(comfychair.TestCase): + def runtest(self): + raise comfychair.NotRunError, "not implemented" + +class WinbindAuthSmbd(comfychair.TestCase): + def runtest(self): + # Grr - winbindd in HEAD doesn't contain the auth_smbd function + raise comfychair.NotRunError, "no auth_smbd in HEAD" + +class WinbindAuthPlaintext(comfychair.TestCase): + def runtest(self): + raise comfychair.NotRunError, "not implemented" + +tests = [WinbindAuthCrap, WinbindAuthSmbd, WinbindAuthPlaintext] + +if __name__ == "__main__": + comfychair.main(tests) |