summaryrefslogtreecommitdiff
path: root/source3/tests
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-01-14 01:14:22 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-01-14 01:14:22 +0000
commit0c0dfe4da56f52164da6e6633d2f8815d9d170fd (patch)
tree7c8b203673163f7c50b1e2ac3b99c936029aeb44 /source3/tests
parentb085f0f08eb66fd5741b6cb221fbfa67504514f2 (diff)
downloadsamba-0c0dfe4da56f52164da6e6633d2f8815d9d170fd.tar.gz
samba-0c0dfe4da56f52164da6e6633d2f8815d9d170fd.tar.bz2
samba-0c0dfe4da56f52164da6e6633d2f8815d9d170fd.zip
Finish adding cracklib support - this adds the configure test to enable
it, on machines that actually have a working cracklib, for which we have the correct path to the dictionary. Andrew Bartlett (This used to be commit 17518018c0264d2a8e4afbc712a22ef4a1a00003)
Diffstat (limited to 'source3/tests')
-rw-r--r--source3/tests/crack.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/tests/crack.c b/source3/tests/crack.c
index 1342887852..36119b3bbc 100644
--- a/source3/tests/crack.c
+++ b/source3/tests/crack.c
@@ -1,3 +1,10 @@
+#include <crack.h>
+
+#ifndef HAVE_CRACKLIB_DICTPATH
+#ifndef CRACKLIB_DICTPATH
+#define CRACKLIB_DICTPATH SAMBA_CRACKLIB_DICTPATH
+#endif
+#endif
int main(int argc, char **argv) {
FascistCheck("Foo", CRACKLIB_DICTPATH);