Directory Services Example
Use the example below to create a directory service in ThingWorx.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Entities build="33" majorVersion="5" minorVersion="0" revision="2" schemaVersion="773">
<DirectoryServices>
<DirectoryService className="com.thingworx.security.directoryservices.LDAPDirectoryService" description="Thingworx Active Directory Services Example" documentationContent="&lt;p&gt;&amp;nbsp;Use this Example, Duplicate it and update the Configuration to tie into your Active Directory System.&lt;/p&gt;&lt;p&gt;In LDAP terms, you can define as many DC and CN as you need.&lt;br&gt;&lt;/p&gt;" enabled="false" homeMashup="" lastModifiedDate="2014-08-20T17:20:39.620-04:00" name="TWLDAPExample" priority="1" tags="">
<Owner name="Administrator" type="User"/>
<avatar/>
<DesignTimePermissions>
<Create/>
<Read/>
<Update/>
<Delete/>
<Metadata/>
</DesignTimePermissions>
<RunTimePermissions/>
<VisibilityPermissions>
<Visibility/>
</VisibilityPermissions>
<ConfigurationTables>
<ConfigurationTable description="LDAP Settings" isMultiRow="false" name="LDAPProxyConfiguration" ordinal="0">
<DataShape>
<FieldDefinitions>
<FieldDefinition aspect.defaultValue="10389.0" baseType="NUMBER" description="LDAP Server port" name="port" ordinal="0"/>
<FieldDefinition aspect.defaultValue="uid=admin,ou=system" baseType="STRING" description="LDAP Distinguished Name to use when binding" name="adminBindDN" ordinal="0"/>
<FieldDefinition baseType="PASSWORD" description="LDAP administrative password" name="adminPassword" ordinal="0"/>
<FieldDefinition aspect.defaultValue="ou=people" baseType="STRING" description="User Base DN" name="userBaseDN" ordinal="0"/>
<FieldDefinition aspect.defaultValue="localhost" baseType="STRING" description="LDAP Server" name="server" ordinal="0"/>
<FieldDefinition aspect.defaultValue="uid" baseType="STRING" description="LDAP user id attribute to match when looking up a user" name="userIdAttribute" ordinal="0"/>
</FieldDefinitions>
</DataShape>
<Rows>
<Row>
<port>389.0</port>
<adminBindDN>
<![CDATA[DC=AdminDC,CN=AdminCN]]>
</adminBindDN>
<adminPassword>
<![CDATA[ugd08BRQrg5gmA1yOvImaw==]]>
</adminPassword>
<userBaseDN>
<![CDATA[DC=UserDC]]>
</userBaseDN>
<server>
<![CDATA[<Directory Server IP>]]>
</server>
<userIdAttribute>
<![CDATA[User Name]]>
</userIdAttribute>
</Row>
</Rows>
</ConfigurationTable>
</ConfigurationTables>
<ConfigurationChanges/>
</DirectoryService>
</DirectoryServices>
</Entities>
Was this helpful?