University at Buffalo - The State University of New York
Skip to Content
UB Web Management

Transforming UB’s digital communications through process and tools

User Info Loader Component

This component pulls information about a site visitor from UB's LDAP directory and will only work for our students and employees.

To work properly, place this component on a secure page and set the Page Properties to 'Require SSL'. > see Restrictions

The UBCMS is not an appropriate place for ANY regulated private data, such as bank credit/debit card numbers, government-issued ID numbers, health information or computer passwords.

We discourage building forms in shared content -- this practice may interfere with normal functionality, such as validation.

The component after being dropped into a form.

The component after being dropped into a form.

Using This Component

Add the component to the page. There is only one tab.

  • Click on the “+” sign to add a field (“+”changes to a “-” sign so it can be removed). 
  • To make an LDAP parameter available for inclusion on your page, use this syntax:
                    #<variable>=<LDAP parameter>
                    e.g.        #your_name=displayName
  • Anywhere in your page that you put an HTML snippet with a named element (e.g. #your_name), the text of that HTML element will become the value of that LDAP variable. So in the above example, <h3 id="your_name">text_to_be_replaced</h3> will display an H3 heading with the value of displayName when published.  
  • To use an LDAP parameter in a form, use this syntax: 
                    input[name=<variable>]=<LDAP parameter>
                    e.g.        input[name=emailAddress]=email
  • You would then insert a Form container as usual and add the appropriate input fields. 
  • For example, to use an LDAP parameter in a Text Field, set the component values to:
    • Element Name: variable (e.g. Element Name: emailAddress)
    • Title: whatever text you wish
  • Each variable must match the value you used in the User Info Loader component for name=<variable>; in this case, emailAddress will automatically pull in their email address.

Make sure to activate all pages to the publisher to test them live.

The component opened for editing.

The component opened for editing.

Available LDAP Parameters

The following parameters are available from LDAP (with an example of the output for Jerod Sikorskyj):

id                   jjs58
path              /home/users/j/jj/jjs/jjs58
displayName  Jerod J Sikorskyj
givenName    Jerod
familyName   Sikorskyj
phone           645-5195
email            jjs58@buffalo.edu
affiliation     staff
department Enterprise Application Services
title             Application Developer
address        108 Fillmore Academic Center

Restrictions

  1. We discourage building forms in shared content -- this practice may interfere with normal functionality, such as validation.
  2. To work properly,
    1. This component should be placed on a secure page or under a parent that is a secure page (-pw must be in the URL).
    2. The page should be set to run as https://. (In the Page Properties Advanced tab, select the 'Require SSL' setting.)
    3. This component must be placed between the Start of Form and End of Form sections of the Form Container component.
  3. Because it pulls data from our internal LDAP directory, this component only works for UB students or employees.

Was this page helpful?

(Required)
(Required)
(so we can thank you or request more details)
(Required)
(buffalo.edu addresses only please)

On this page:

Related Components:

Last Reviewed:

October 26, 2016