-
Notifications
You must be signed in to change notification settings - Fork 188
/
password-policy-username.xml
38 lines (36 loc) · 1.27 KB
/
password-policy-username.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2017-2019 Evolveum and contributors
~
~ This work is dual-licensed under the Apache License 2.0
~ and European Union Public License. See LICENSE file for details.
-->
<!-- Password policy with a very limited amount of possible combinations
and additional check for conflict with the username. -->
<valuePolicy xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3">
<name>Testing username policy</name>
<stringPolicy>
<limitations>
<minLength>2</minLength>
<maxLength>2</maxLength>
<minUniqueChars>0</minUniqueChars>
<checkExpression>
<expression>
<script>
<code>
input != basic.stringify(object.getName())
</code>
</script>
</expression>
</checkExpression>
<limit>
<minOccurs>2</minOccurs>
<characterClass>
<value>abc</value>
</characterClass>
</limit>
</limitations>
</stringPolicy>
</valuePolicy>