summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-11-10 22:08:39 -0500
committerGreg Hudson <ghudson@mit.edu>2012-11-15 13:58:45 -0500
commit4f349b6e154eb05e591cd0de10791e29f4c44fb9 (patch)
tree52619d94d4876b9b3623555c50cf3706d9ec2858 /src/util
parentdaede6e7ccfeb87ed8aec6604c07be2d8d0ed02c (diff)
downloadkrb5-4f349b6e154eb05e591cd0de10791e29f4c44fb9.tar.gz
krb5-4f349b6e154eb05e591cd0de10791e29f4c44fb9.tar.xz
krb5-4f349b6e154eb05e591cd0de10791e29f4c44fb9.zip
Add automated tests for LDAP KDB module
Add new tests kdbtest.c and t_kdb.py. Together these exercise most of the code in the LDAP back end. kdbtest is also run against the DB2 module, which is mostly redundant with other tests, but does exercise the lockout logic a little more thoroughly than t_lockout.py can. To test the LDAP back end, we look for slapd and ldapadd binaries in the path. The system slapd is sometimes constrained by AppArmor or the like, which we can typically work around by making a copy of the binary. slapd detaches before listening on its server socket (this got better in 2.4.27 but still isn't perfect), so we unfortunately have to use a one-second sleep in the slapd setup.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/k5test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/k5test.py b/src/util/k5test.py
index 3400154ca8..37e8929c3e 100644
--- a/src/util/k5test.py
+++ b/src/util/k5test.py
@@ -194,6 +194,7 @@ Scripts may use the following functions and variables:
- kadmind
- kadmin
- kadmin_local
+ - kdb5_ldap_util
- kdb5_util
- ktutil
- kinit
@@ -1238,6 +1239,8 @@ krb5kdc = os.path.join(buildtop, 'kdc', 'krb5kdc')
kadmind = os.path.join(buildtop, 'kadmin', 'server', 'kadmind')
kadmin = os.path.join(buildtop, 'kadmin', 'cli', 'kadmin')
kadmin_local = os.path.join(buildtop, 'kadmin', 'cli', 'kadmin.local')
+kdb5_ldap_util = os.path.join(buildtop, 'plugins', 'kdb', 'ldap', 'ldap_util',
+ 'kdb5_ldap_util')
kdb5_util = os.path.join(buildtop, 'kadmin', 'dbutil', 'kdb5_util')
ktutil = os.path.join(buildtop, 'kadmin', 'ktutil', 'ktutil')
kinit = os.path.join(buildtop, 'clients', 'kinit', 'kinit')