How can I pass Person Directory attributes to server-side scripting languages such as PHP or JSP?
How can I pass Person Directory attributes to server-side scripting languages such as PHP or JSP?
WebProxy channels give you the ability to pass person attribute values to any server-side scripting language. Unicon Customer Support recommends the following publishing parameters for channels of this type:
Channel Type: Web Proxy
Application URI: http://url.to.script/script.php Class name of the LocalConnectionContext implementation (optional): leave blank Cache Mode for initial request only: none Cache Timeout for initial request only: none Edit URI: leave blank Help URI: leave blank Info URI: leave blank Default Cache Mode: none Restrict IPerson Attributes Passing to These: * Default IPerson Attributes to Pass: username
^-- List the attribute you want to pass to the channel seperated by a comma Enable HTML Filter: on Default Cache Timeout (in seconds): 900 Pass-through Type: all
LDAP attributes are mapped to Academus attributes within the PersonDirs.xml file. For example, 'uid' is an LDAP attribute but it is generally mapped to the 'username' attribute in Academus. You will want to reference the 'username' attribute within the WebProxy channel, as this is what will be passed. Keep in mind that attributes are only passed on the initial render of the channel. One way to work around this issue is by using sessions.
Here is an example using PHP:
session_start();
$username = $_GET['username'];
if (!isset($_SESSION['username'])
