Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you are using the tomcat bundle, First Name, Last Name,Employee Email and Manager attributes are already configured in the LDAP sections of the <frevvo-home>\tomcat\conf\catalina\localhost\frevvo.xml file. 

Image Added

If you want to pull additional information, you must add the "com.frevvo.security.Idap.customAttributes" configuration parameter where the value is a comma separated list of attribute names to be retrieved, Let's use the employee's Middle Name and Employee ID, Type and Number as  as an example.

Follow these steps to modify the configuration:  

...

Code Block
 <Parameter name="com.frevvo.security.ldap.customAttributes" value="employeeNumber,employeeType,employeeID,middleName,carLicense" override="false"/> 

 5. Save the file after all your changes are made.  6. Restart 

Frevvoproduct
 

Add the addititonal lines to the business rule to populate the Employee ID and Middle Name fields.

Code Block
if(form.load)
{
mail.value=_data.getParameter('subject.mail');
firstName.value=_data.getParameter('subject.givenName');
lastName.value=_data.getParameter('subject.sn');
employeeID.value=_data.getParameter('subject.employeeNumber');
employeeType.value=_data.getParameter('subject.manager');
}

Multi-valued Attributes

Attributes with more than one value are also supported. For example, The carLicense attribute can return multiple values. You can write a rule to populate dropdown options with those options. First of all, make sure the attribute is configured in the frevvo.xml file.

 

Code Block
 <Parameter name="com.frevvo.security.ldap.customAttributes" value="employeeNumber,employeeType,employeeID,middleName,carLicense" override="false"/> 

A JSON array string is returned and this rule will populate the options of a dropdown control named carLicense.

Code Block
carLicense.options=JSON.parse(_data.getParameter('subject.carLicense'));

 

LDAP Troubleshooting

If things are not working as you expected:

...