| | |
| | | map("uid", "test.user", "realm", "test+cn=quoting") |
| | | }, |
| | | { |
| | | // Should not perform DN quoting. |
| | | "dn:{dn}", |
| | | "dn:uid=test.user,ou=acme,dc=example,dc=com", |
| | | map("dn", "uid=test.user,ou=acme,dc=example,dc=com") |
| | | }, |
| | | { |
| | | "u:{uid}@{realm}.example.com", |
| | | "u:test.user@acme.example.com", |
| | | map("uid", "test.user", "realm", "acme") |
| | |
| | | map("uid", "test.user") |
| | | }, |
| | | { |
| | | // Malformed DN. |
| | | "dn:{dn}", |
| | | map("dn", "uid") |
| | | }, |
| | | { |
| | | "u:{uid}@{realm}.example.com", |
| | | map("uid", "test.user") |
| | | }, |
| | |
| | | }, |
| | | }; |
| | | // @formatter:on |
| | | |
| | | } |
| | | |
| | | @Test(dataProvider = "invalidTemplates", expectedExceptions = IllegalArgumentException.class) |