]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Simplify test preauth module use
authorGreg Hudson <ghudson@mit.edu>
Thu, 23 Jul 2015 16:33:07 +0000 (12:33 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 27 Jul 2015 15:49:35 +0000 (11:49 -0400)
Since ticket #7665, explicitly registered kdcpreauth modules have
appeared before built-in modules (disregarding the static preauth
systems, which are all informational).  Therefore, the test preauth
module can be used without disabling encrypted timestamp.  Remove an
erroneous comment in kdctest.c and simplify test scripts which use the
test preauth module.

src/plugins/preauth/test/kdctest.c
src/tests/t_authdata.py
src/tests/t_etype_info.py

index c824626de6ccd8470dd305473854e30e0ef8dfa2..5ac1cd1f564ad56bdfc8c7126cb32ca54d7e9c9c 100644 (file)
  * - It receives a space-separated list from the clpreauth module and asserts
  *   each string as an authentication indicator.  It always succeeds in
  *   pre-authenticating the request.
- *
- * To use this module, a test script should:
- * - Register this module and the corresponding clpreauth module
- * - Disable the encrypted_timestamp clpreauth or kdcpreauth module
- * - Set the requires_preauth flag on the client principal
  */
 
 #include "k5-int.h"
index 8da206d1bf81d86c34e87916079e93e5a104f849..d98c3fd52c67bdb4112f7d8d519e0e27ad502916 100644 (file)
@@ -81,8 +81,7 @@ realm.stop()
 # can control the indicators asserted.
 testpreauth = os.path.join(buildtop, 'plugins', 'preauth', 'test', 'test.so')
 krb5conf = {'plugins': {'kdcpreauth': {'module': 'test:' + testpreauth},
-                        'clpreauth': {'module': 'test:' + testpreauth,
-                                      'disable': 'encrypted_timestamp'}}}
+                        'clpreauth': {'module': 'test:' + testpreauth}}}
 realm, realm2 = cross_realms(2, args=({'realm': 'LOCAL'},
                                       {'realm': 'FOREIGN'}),
                              krb5_conf=krb5conf, get_creds=False)
index a3eaac2836e1874acad6d510c565f7f72aa9a90c..e7872bf5d479fc325fcb289a2a50b0a59fc9a70a 100644 (file)
@@ -79,8 +79,7 @@ realm.stop()
 # indicated by the etype info, and returns NULL if key was selected.
 testpreauth = os.path.join(buildtop, 'plugins', 'preauth', 'test', 'test.so')
 plugconf = {'plugins': {'kdcpreauth': {'module': 'test:' + testpreauth},
-                        'clpreauth': {'module': 'test:' + testpreauth,
-                                      'disable': 'encrypted_timestamp'}}}
+                        'clpreauth': {'module': 'test:' + testpreauth}}}
 conf.update(plugconf)
 realm = K5Realm(create_host=False, get_creds=False, krb5_conf=conf)
 realm.run([kadminl, 'modprinc', '+requires_preauth', realm.user_princ])