Skip to content

Commit

Permalink
Persona test files
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Oct 20, 2017
1 parent 2ca927e commit a2bbcd5
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 0 deletions.
@@ -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>
@@ -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>
@@ -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>

0 comments on commit a2bbcd5

Please sign in to comment.