White Pages Light (aka Ochre Pages)

This example Config implements a simple White Pages web-app for searching, adding, editing and deleting users.

WhitePages.jpg

It uses a single AssemblyLine (tagged for auto-start) called "WhitePages" that implements a web server with an HTTP Server Mode Connector. Branches are used to check for HTTP query strings signalling button pushes and input data.

WP_AL.jpg

The Config includes both an XML data file and ALs for adding test users to your directory.

The solution is built to use an LDAP directory (you can change this if you like) which you configure by editing the External Properties file: WhitePages.properties.

HTML_DirPath=Configs\WhitePages\HTML\
HTML_FullDirPath=C:/HTML/
WP_MainPage:WhitePages_fs.html
XSL_SearchResults=SearchResults.xsl
XSL_UserInfo=UserInfo.xsl
IDS_Login:cn=Directory Manager
IDS_PW=secret123
IDS_SearchBase:ou=wp,dc=ibm,dc=com
IDS_URL=ldap://localhost:389
IDS_SearchFilter:cn=*
XML_EDfilepath=Configs\WhitePages\ED\ED.XML
IDS_SearchFilter=cn=*

Note that the XSL stylesheets (SearchResults.xsl and UserInfo.xsl) determine which Attributes are used to build the return web pages. In this solution these refer to the following Attributes: cn, title, telephoneNumber, mail and ou (Department).

Note also that this Config does not work well with large user registries. This is because it iterates through the entire search result set and builds an XML document in memory using the MemoryStream Connector. When Iteration completes, this XML doc is then passed to XSLT to generate the return HTML. One improvement would be to use the MemQueue feature to queue up large searches (which you could do in the background) while the AL returns a page at a time to the browser.

Please let me know if you improve it!!

-- EddieHartman - 20 Feb 2006

P.S. This is a 6.0 Config. It will not open in older versions.

Topic revision: r2 - 16 Jun 2006, AndrewFindlay - This page was cached on 04 Aug 2023 - 18:17.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TDI Users? Send feedback