Skip to main content
Version: 7.2402.x.x RR

Configuration Example

The following XML document is a small but complete example of a working nevisDataPorter configuration. It mainly consists of previously shown configuration fragments.

<?xml version="1.0" encoding="UTF-8"?>
<dp:DataPorter
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dp="http://www.siven.ch/ch/siven/dataporter"
>
<config>
<dp:cfgVal name="basedn" value="OU=portal,DC=durg,DC=local"/>
<dp:cfgVal name="domain" value="durg.local"/>
<dp:cfgVal name="appl_list" value="SHAREPOINT EXCHANGE" separator=" "/>
</config>

<init>
<!-- configure JDBC connection pool for all modules -->
<object type="JDBCConnectionPool" name="dataSource">
<dp:paraVal name="connectionUrl" value="jdbc:oracle:thin:@hispano:49185:ESAU"/>
<dp:paraVal name="username" value="dev" sensitive="true" />
<dp:paraVal name="password" value="password"/>
<dp:paraVal name="driver" value="oracle.jdbc.OracleDriver"/>
</object>
</init>

<export>
<module name="default">
<!-- use an LDAP connection pool just for use in this module -->
<object type="LDAPConnectionPool" name="initalContext">
<dp:paraVal name="connectionUrl" value="ldaps://aldvia.siven.ch"/>
<dp:paraVal name="username" value="cn=admin,cn=users,dc=durg,dc=local"/>
<dp:paraVal name="password" value="password"/>
</object>
<entity name="appl">
<dataSource type="JDBCDataSource">
<dp:paraVal name="query" value="select id, name, desc from def_v_resource where resourcename in (#?)"/>
<dp:paraVal name="parameter" value="${cfg.appl_list}" separator=" "/>
<dp:paraVal name="datasource" value="${inst.dataSource}"/>
</dataSource>

<dataFilter type="ELMappingFilter">
<dp:attrVal name="objectClass" value="top group" separator=" "/>
<dp:attrVal name="cn" value="#{in.appl.NAME}"/>
<dp:attrVal name="description" value="#{in.appl.DESC}"/>
</dataFilter>

<dataSink type="LDAPDataSink">
<dp:paraVal name="ldapContext" value="${inst.initalContext}"/>
<dp:paraVal name="basedn" value="ou=${cfg.basedn}"/>
<dp:paraVal name="rdn" value="cn=#{in.appl.NAME}"/>
</dataSink>
</entity>
</module>
</export>
</dp:DataPorter>