summaryrefslogtreecommitdiffstats
path: root/src/tests/modules/pap/pbkfd2_salt0.unlang
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/modules/pap/pbkfd2_salt0.unlang')
-rw-r--r--src/tests/modules/pap/pbkfd2_salt0.unlang19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tests/modules/pap/pbkfd2_salt0.unlang b/src/tests/modules/pap/pbkfd2_salt0.unlang
new file mode 100644
index 0000000..173f768
--- /dev/null
+++ b/src/tests/modules/pap/pbkfd2_salt0.unlang
@@ -0,0 +1,19 @@
+if ("${feature.tls}" == no) {
+ test_pass
+ return
+}
+
+if (&User-Name == 'pbkdf2_salt0') {
+ update control {
+ &PBKDF2-Password := 'HMACSHA2+256:AAAnEA::4RJEKVFQ5nE8126aURI0cJO9tqy/DIAhq64piBEwshA='
+ }
+ pap.authorize
+ pap.authenticate {
+ invalid = 1
+ }
+ if (invalid) {
+ test_pass
+ } else {
+ test_fail
+ }
+}