Show/Hide Toolbars

PerfectApps™ Help Guide

PerfectApps allows you to connect to a directory service using LDAP (Lightweight Directory Access Protocol). PerfectApps does this by communicating with the connection agent which ensures that security concerns are addressed.

 

Directory services functions in a very similar way to the database connections.

 

The connection agent details will usually be the same as for the database connections. However, if you have databases or directory services at different physical locations then you may also have different connection agents installed.

 

We suggest the use of an LDAP tool if you do not already have one. This lets you explore your directories before you begin the detailed configuration. If you are already familiar with your LDAP setup then this is not necessary. OpenLDAP from www.openldap.org/ and www.ldapadmin.org are examples of such a tool.

 

Document Icon

The following steps need to be followed on the connection agent in order to prepare it to receive requests from PerfectApps.

 

You will need to include the following in the config.xml file of the PerfectApps connection agent.

 

1.Within the <datasources> element, add (or edit) a <datasource> element as follows:

        <datasource name ="My LDAP" id="<unique id number>" server="<IP address or Server Name>" port="389 or

             636 type="ldap"> <database name ="LDAPServerName" id="<unique id number>" db="<Distinguished

             Name>" user="<Your LDAP User Name>" password="<LDAP User Password>" login="<Agent Login Name>" />

        </datasource>

 

For the <datasource> element:

name: This name will appear as a Connection Name within PerfectApps

id: Should be unique within the <datasources> element

server: This is the actual LDAP server name

port: For LDAP servers not requiring SSL access, use 389. If your LDAP server uses SSL then you should specify 636 (unless you have configured your server otherwise)

type: Always use "ldap"

 

Within the <database> element:

name: Name or IP Address of your LDAP server

id: This is a unique id text or number within this LDAP <datasource> element

db: This is the distinguished name of the LDAP server you wish to access. For example: "DC=DomainCatalog,DC=AnotherCatalog,..."

user: A valid LDAP user name (LDAP user must have administrative permissions in order to execute UPDATE, INSERT, DELETE actions)

password: The user name's password

login: Use "*" if any connection agent login name is acceptable. If you want to restrict users, then supply one or more login users separated by ','. The login names are those defined at the top of the config.xml within the <logins> element

 

 

Document Icon

1.Log in to PerfectApps. You must have administrative rights.

2.Go to the Connections Dashboard.

3.Click the New button and select Directory Service Connection. PerfectApps displays a new, empty connection.

4.Enter the Name of this connection. This is how app designers will identify the connection, so it should be a meaningful name.

5.Assign permissions. Choose the users or groups for whom permission will be granted. For more information, see the Connection and Action Permissions topic.

6.In the Details area, specify the URL of the connection agent.

7.Enter a valid connection agent <login> Username and Password.

8.Assign a Timeout setting if something other than the 60 seconds default is warranted for the connection.

9.If you want this connection to be secure and you already have PerfectApps running in secure mode, check the Use Proxy (for SSL) check box. Click Check to verify the connection is functioning given the URL and credentials.

10.Select the LDAP Datasource from the drop-down list and then the Distinguished Name from the drop-down list below it.

11.Click Apply Changes to save the new connection. The screen will now show two new buttons: New Action and Delete.

flag_green

For additional information see Defining Connection Actions.

12.Required: Click the New Action button to define a specific action within this LDAP Datasource. PerfectApps displays a new empty connection action.

13.In most cases you will be performing lookups into LDAP. From the Type drop-down choose the SELECT action.

14.You can enter the Distinguished Name to specify where the LDAP search should take place.

15.In the Send Parameters section, enter any LDAP field names that should be sent to the connection agent. If you are performing a lookup, this will be the lookup field name such as the e-mail address or authenticated user name. When PerfectApps loads an app, the authenticated User ID is passed into the app and can be used to perform lookups into databases or, in this case, LDAP.

16.The Return Parameters section lists the LDAP fields that are returned from the lookup (if you are performing one). These can then be mapped into app fields.

17.In the App Designer, add a Connect or Connect and Search behavior to any app object that should initiate this connection.

flag_green

Refer to the Calling the Connection from an App topic for information on how to perform lookups and other integration actions from within an app.

 

See also: Directory Services (LDAP) Connection Actions, SOAP Web Service Connections, Connection and Action Permissions

 

Return to: Creating PerfectApps Connections, Integration