Pulls LDAP details about the submitter (only UB constituents).
This component has only one tab.
Because it draws information about the user from UB's LDAP directory, the user must be a UB constitutent and logged in through Shibboleth. The component thus must be in a secure part of the site.
- 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:
- <selector>=<LDAP parameter>
- e.g. #your_name=displayName -- for HTML code
- e.g. input[your_name]=displayName -- for a form
- Anywhere in your page with a matching selector, such as an element with an ID 'your_name' in a form field or an HTML snippet, the text of that HTML element will become the value of the referenced LDAP parameter.
- From 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 UBCMS form,
- Insert a Form container as usual and add the appropriate input fields.
- Then use this syntax:
- input[name=<variable>]=<LDAP parameter>
(e.g. input[name=emailAddress]=email)
- For this 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
- To use an LDAP parameter with a pre-existing Formstack form,
- Insert the Formstack component on your page.
- Switch to Preview mode and right-click on the field you wish to receive the LDAP parameter and select Inspect Element.
- An inspection window will appear. Look for the highlighted row of code
(beginning something like '<input type="text" id="field36355541" ...')
and copy the ID number (e.g. "field36355541").
- Then use that ID number with a leading "#" in your User Info Loader component to identify the LDAP parameter you wish to map into the Formstack form element (e.g. "#field36355541=displayName").
- Each variable must match the value you used in the User Info Loader component for name=<variable>.
- For this example, emailAddress will automatically pull in their email address.
Make sure to activate all pages to the publisher to test them live.
The following are some common fields available from LDAP (with an example for a former staffer):
username jjs58
path /home/users/j/jj/jjs/jjs58
displayName Sikorskyj, Jerod J
givenName Jerod
familyName Sikorskyj
phone (716) 645-5195
email jjs58@buffalo.edu
affiliation staff
department Enterprise Application Services
title Application Developer
address 108 Academic Center