Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
145 additions
and
0 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
model/model-intest/src/test/resources/persona/object-template-persona-admin-no-password.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2017 Evolveum | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
<objectTemplate oid="894ea1a8-2c0a-11e7-a950-ff2047b0c053" | ||
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' | ||
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>Persona admin object mapping - no password</name> | ||
|
||
<item> | ||
<ref>name</ref> | ||
<mapping> | ||
<name>persona-admin-name</name> | ||
<source> | ||
<path>name</path> | ||
</source> | ||
<expression> | ||
<script> | ||
<code>'a-' + name</code> | ||
</script> | ||
</expression> | ||
</mapping> | ||
</item> | ||
|
||
<item> | ||
<ref>givenName</ref> | ||
<mapping> | ||
<name>persona-admin-givenName</name> | ||
<source> | ||
<path>givenName</path> | ||
</source> | ||
</mapping> | ||
</item> | ||
|
||
<mapping> | ||
<source> | ||
<path>familyName</path> | ||
</source> | ||
<target> | ||
<path>familyName</path> | ||
</target> | ||
</mapping> | ||
|
||
<!-- Full name is computed using ordinary user template. --> | ||
|
||
</objectTemplate> |
59 changes: 59 additions & 0 deletions
59
model/model-intest/src/test/resources/persona/password-policy-persona.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2010-2017 Evolveum | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<valuePolicy oid="5d9e068a-b4df-11e7-be31-a7b0fef77d95" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<name>Password Policy - Persona</name> | ||
<stringPolicy> | ||
<description>Testing string policy</description> | ||
<limitations> | ||
<minLength>3</minLength> | ||
<maxLength>30</maxLength> | ||
<minUniqueChars>3</minUniqueChars> | ||
<checkAgainstDictionary>true</checkAgainstDictionary> | ||
<limit> | ||
<description>Alphas</description> | ||
<minOccurs>1</minOccurs> | ||
<mustBeFirst>false</mustBeFirst> | ||
<characterClass> | ||
<value>abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</value> | ||
</characterClass> | ||
</limit> | ||
<limit> | ||
<description>Numbers</description> | ||
<minOccurs>1</minOccurs> | ||
<maxOccurs>8</maxOccurs> | ||
<mustBeFirst>false</mustBeFirst> | ||
<characterClass> | ||
<value>1234567890</value> | ||
</characterClass> | ||
</limit> | ||
</limitations> | ||
</stringPolicy> | ||
<prohibitedValues> | ||
<item> | ||
<origin>persona</origin> | ||
<path>credentials/password/value</path> | ||
</item> | ||
<item> | ||
<origin>owner</origin> | ||
<path>credentials/password/value</path> | ||
</item> | ||
</prohibitedValues> | ||
</valuePolicy> |
26 changes: 26 additions & 0 deletions
26
model/model-intest/src/test/resources/persona/security-policy-persona.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2014-2015 Evolveum | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<securityPolicy oid="51545f14-b4df-11e7-a37a-d37b7c2b3f4c" | ||
xmlns='http://midpoint.evolveum.com/xml/ns/public/common/common-3'> | ||
<name>Security Policy - Persona</name> | ||
<credentials> | ||
<password> | ||
<valuePolicyRef oid="5d9e068a-b4df-11e7-be31-a7b0fef77d95" type="ValuePolicyType"/> | ||
</password> | ||
</credentials> | ||
</securityPolicy> |