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
7 changed files
with
1,076 additions
and
0 deletions.
There are no files selected for viewing
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,12 @@ | ||
|
||
CREATE TABLE crmusers ( | ||
userId VARCHAR(16) NOT NULL, | ||
password VARCHAR(16) NOT NULL, | ||
firstName VARCHAR(16), | ||
lastName VARCHAR(16), | ||
fullName VARCHAR(32), | ||
description VARCHAR(256), | ||
accessLevel VARCHAR(256), | ||
disabled BOOLEAN, | ||
PRIMARY KEY (userId) | ||
); |
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,8 @@ | ||
|
||
CREATE TABLE portalusers ( | ||
login VARCHAR(16) NOT NULL, | ||
ldapDn VARCHAR(128), | ||
fullName VARCHAR(32), | ||
disabled BOOLEAN, | ||
PRIMARY KEY (login) | ||
); |
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,153 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2016 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. | ||
--> | ||
|
||
<resource oid="04afeda6-394b-11e6-8cbe-abf7ff430056" | ||
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" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" | ||
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" | ||
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" | ||
xmlns:icfc="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3" | ||
xmlns:my="http://myself.me/schemas/whatever"> | ||
|
||
<name>CRM</name> | ||
|
||
<connectorRef type="ConnectorType"> | ||
<filter> | ||
<q:equal> | ||
<q:path>c:connectorType</q:path> | ||
<q:value>org.identityconnectors.databasetable.DatabaseTableConnector</q:value> | ||
</q:equal> | ||
</filter> | ||
</connectorRef> | ||
|
||
<connectorConfiguration> | ||
|
||
<icfc:configurationProperties | ||
xmlns:icscdbtable="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/bundle/com.evolveum.polygon.connector-databasetable/org.identityconnectors.databasetable.DatabaseTableConnector"> | ||
<icscdbtable:port>5432</icscdbtable:port> | ||
<icscdbtable:host>localhost</icscdbtable:host> | ||
<icscdbtable:user>crm</icscdbtable:user> | ||
<icscdbtable:password><clearValue>qwe123</clearValue></icscdbtable:password> | ||
<icscdbtable:database>crm</icscdbtable:database> | ||
<icscdbtable:table>crmusers</icscdbtable:table> | ||
<icscdbtable:keyColumn>userId</icscdbtable:keyColumn> | ||
<icscdbtable:passwordColumn>password</icscdbtable:passwordColumn> | ||
<icscdbtable:jdbcDriver>org.postgresql.Driver</icscdbtable:jdbcDriver> | ||
<icscdbtable:jdbcUrlTemplate>jdbc:postgresql://%h:%p/%d</icscdbtable:jdbcUrlTemplate> | ||
<icscdbtable:enableEmptyString>false</icscdbtable:enableEmptyString> | ||
<icscdbtable:rethrowAllSQLExceptions>true</icscdbtable:rethrowAllSQLExceptions> | ||
<icscdbtable:nativeTimestamps>false</icscdbtable:nativeTimestamps> | ||
<icscdbtable:allNative>false</icscdbtable:allNative> | ||
</icfc:configurationProperties> | ||
|
||
</connectorConfiguration> | ||
|
||
<schemaHandling> | ||
|
||
<objectType> | ||
<displayName>Default Account</displayName> | ||
<default>true</default> | ||
<objectClass>ri:AccountObjectClass</objectClass> | ||
<attribute> | ||
<ref>icfs:uid</ref> | ||
<displayName>User ID</displayName> | ||
<limitations> | ||
<access> | ||
<read>true</read> | ||
</access> | ||
</limitations> | ||
</attribute> | ||
<attribute> | ||
<ref>icfs:name</ref> | ||
<displayName>Name</displayName> | ||
<limitations> | ||
<minOccurs>0</minOccurs> | ||
<access> | ||
<read>true</read> | ||
<add>true</add> | ||
<modify>true</modify> | ||
</access> | ||
</limitations> | ||
<outbound> | ||
<source> | ||
<path>$user/name</path> | ||
</source> | ||
</outbound> | ||
</attribute> | ||
|
||
<attribute> | ||
<ref>ri:firstname</ref> | ||
<displayName>First name</displayName> | ||
<outbound> | ||
<source> | ||
<path>$user/givenName</path> | ||
</source> | ||
</outbound> | ||
|
||
</attribute> | ||
<attribute> | ||
<ref>ri:lastname</ref> | ||
<displayName>Last name</displayName> | ||
<outbound> | ||
<source> | ||
<path>$user/familyName</path> | ||
</source> | ||
</outbound> | ||
|
||
</attribute> | ||
<attribute> | ||
<ref>ri:fullname</ref> | ||
<displayName>Full name</displayName> | ||
<outbound> | ||
<source> | ||
<path>$user/fullName</path> | ||
</source> | ||
</outbound> | ||
</attribute> | ||
|
||
<activation> | ||
<administrativeStatus> | ||
<outbound/> | ||
</administrativeStatus> | ||
</activation> | ||
|
||
<credentials> | ||
<password> | ||
<outbound/> | ||
</password> | ||
</credentials> | ||
|
||
</objectType> | ||
</schemaHandling> | ||
|
||
<capabilities xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3"> | ||
<configured> | ||
<cap:activation> | ||
<cap:status> | ||
<cap:attribute>ri:disabled</cap:attribute> | ||
<cap:enableValue></cap:enableValue> | ||
<cap:enableValue>false</cap:enableValue> | ||
<cap:disableValue>true</cap:disableValue> | ||
</cap:status> | ||
</cap:activation> | ||
</configured> | ||
</capabilities> | ||
|
||
</resource> |
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,66 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2010-2016 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. | ||
--> | ||
|
||
|
||
<!-- | ||
This file is an example of Resource definition. It defines CSV resource. | ||
--> | ||
<c:resource oid="03c3ceea-78e2-11e6-954d-dfdfa9ace0cf" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" | ||
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" | ||
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" | ||
xmlns:ext="http://midpoint.evolveum.com/xml/ns/story/orgsync/ext" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:icfc="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3"> | ||
|
||
<c:name>HR System</c:name> | ||
|
||
<connectorRef type="ConnectorType"> | ||
<filter> | ||
<q:equal> | ||
<q:path>c:connectorType</q:path> | ||
<q:value>com.evolveum.polygon.csvfile.CSVFileConnector</q:value> | ||
</q:equal> | ||
</filter> | ||
</connectorRef> | ||
|
||
<c:connectorConfiguration> | ||
|
||
<!-- Configuration specific for the CSVfile connector --> | ||
<icfc:configurationProperties | ||
xmlns:icfccsvfile="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/bundle/com.evolveum.polygon.connector-csvfile/com.evolveum.polygon.csvfile.CSVFileConnector"> | ||
<icfccsvfile:filePath>/var/opt/midpoint-example/resources/hr.csv</icfccsvfile:filePath> | ||
<icfccsvfile:encoding>utf-8</icfccsvfile:encoding> | ||
<icfccsvfile:valueQualifier>"</icfccsvfile:valueQualifier> | ||
<icfccsvfile:fieldDelimiter>,</icfccsvfile:fieldDelimiter> | ||
<icfccsvfile:multivalueDelimiter>;</icfccsvfile:multivalueDelimiter> | ||
<icfccsvfile:usingMultivalue>false</icfccsvfile:usingMultivalue> | ||
<icfccsvfile:uniqueAttribute>id</icfccsvfile:uniqueAttribute> | ||
<!-- <icfccsvfile:nameAttribute>id</icfccsvfile:nameAttribute> --> | ||
<icfccsvfile:passwordAttribute>password</icfccsvfile:passwordAttribute> | ||
</icfc:configurationProperties> | ||
|
||
|
||
</c:connectorConfiguration> | ||
|
||
</c:resource> | ||
|
Oops, something went wrong.