diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:54:12 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:54:12 +0000 |
commit | b527294153be3b79563c82c66102adc0004736c0 (patch) | |
tree | 9b423a224848441885190b5ea7cf0feb23510c9d /tests/data/otp | |
parent | Initial commit. (diff) | |
download | openldap-b527294153be3b79563c82c66102adc0004736c0.tar.xz openldap-b527294153be3b79563c82c66102adc0004736c0.zip |
Adding upstream version 2.6.7+dfsg.upstream/2.6.7+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/data/otp/hotp.ldif | 61 | ||||
-rw-r--r-- | tests/data/otp/test001-out.ldif | 5 | ||||
-rw-r--r-- | tests/data/otp/totp.ldif | 64 |
3 files changed, 130 insertions, 0 deletions
diff --git a/tests/data/otp/hotp.ldif b/tests/data/otp/hotp.ldif new file mode 100644 index 0000000..dfd160e --- /dev/null +++ b/tests/data/otp/hotp.ldif @@ -0,0 +1,61 @@ +dn: dc=example, dc=com +changetype: modify +add: objectClass +objectClass: oathHOTPParams +- +add: oathOTPLength +oathOTPLength: 6 +- +add: oathHOTPLookAhead +oathHOTPLookAhead: 3 +- +add: oathHMACAlgorithm +# SHA-1 +oathHMACAlgorithm: 1.2.840.113549.2.7 + +dn: ou=Information Technology Division,ou=People,dc=example,dc=com +changetype: modify +add: objectClass +objectclass: oathHOTPToken +- +add: oathHOTPParams +oathHOTPParams: dc=example, dc=com +- +add: oathSecret +oathSecret:: PcbKpIJKbSiHZ7IzHiC0MWbLhdk= +- +add: oathHOTPCounter +oathHOTPCounter: 3 + +dn: ou=Alumni Association,ou=People,dc=example,dc=com +changetype: modify +add: objectClass +objectClass: oathHOTPParams +- +add: oathOTPLength +oathOTPLength: 8 +- +add: oathHOTPLookAhead +oathHOTPLookAhead: 0 +- +add: oathHMACAlgorithm +# SHA-512 +oathHMACAlgorithm: 1.2.840.113549.2.11 + +dn: cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example, + dc=com +changetype: modify +add: objectClass +objectClass: oathHOTPUser +- +add: oathHOTPToken +oathHOTPToken: ou=Information Technology Division,ou=People,dc=example,dc=com + +dn: cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example, + dc=com +changetype: modify +add: objectClass +objectClass: oathHOTPUser +- +add: oathHOTPToken +oathHOTPToken: ou=Information Technology Division,ou=People,dc=example,dc=com diff --git a/tests/data/otp/test001-out.ldif b/tests/data/otp/test001-out.ldif new file mode 100644 index 0000000..97fa931 --- /dev/null +++ b/tests/data/otp/test001-out.ldif @@ -0,0 +1,5 @@ +dn: ou=Information Technology Division,ou=People,dc=example,dc=com +oathSecret:: PcbKpIJKbSiHZ7IzHiC0MWbLhdk= +oathHOTPParams: ou=Alumni Association,ou=People,dc=example,dc=com +oathHOTPCounter: 12 + diff --git a/tests/data/otp/totp.ldif b/tests/data/otp/totp.ldif new file mode 100644 index 0000000..1067dfd --- /dev/null +++ b/tests/data/otp/totp.ldif @@ -0,0 +1,64 @@ +dn: dc=example, dc=com +changetype: modify +add: objectClass +objectClass: oathTOTPParams +- +add: oathOTPLength +oathOTPLength: 6 +- +add: oathTOTPTimeStepPeriod +oathTOTPTimeStepPeriod: 30 +- +add: oathTOTPTimeStepWindow +oathTOTPTimeStepWindow: 3 +- +add: oathHMACAlgorithm +# SHA-1 +oathHMACAlgorithm: 1.2.840.113549.2.7 + +dn: ou=Information Technology Division,ou=People,dc=example,dc=com +changetype: modify +add: objectClass +objectclass: oathTOTPToken +- +add: oathTOTPParams +oathTOTPParams: dc=example, dc=com +- +add: oathSecret +oathSecret:: PcbKpIJKbSiHZ7IzHiC0MWbLhdk= + +dn: ou=Alumni Association,ou=People,dc=example,dc=com +changetype: modify +add: objectClass +objectClass: oathTOTPParams +- +add: oathOTPLength +oathOTPLength: 8 +- +add: oathTOTPTimeStepPeriod +oathTOTPTimeStepPeriod: 30 +- +add: oathTOTPTimeStepWindow +oathTOTPTimeStepWindow: 0 +- +add: oathHMACAlgorithm +# SHA-512 +oathHMACAlgorithm: 1.2.840.113549.2.11 + +dn: cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example, + dc=com +changetype: modify +add: objectClass +objectClass: oathTOTPUser +- +add: oathTOTPToken +oathTOTPToken: ou=Information Technology Division,ou=People,dc=example,dc=com + +dn: cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example, + dc=com +changetype: modify +add: objectClass +objectClass: oathTOTPUser +- +add: oathTOTPToken +oathTOTPToken: ou=Information Technology Division,ou=People,dc=example,dc=com |