Multiple LDAP Values in a NAM Form Field



By: Misterwippy

January 9, 2008 2:10 pm

Reads: 307

Comments:0

Rating:0

Problem

A Forum reader recently asked:

“I’m in the process of upgrading an iChain setup to Access Manager 3. There seems to be an equivalent for almost everything, except that the Form fill policy only seems to allow one attribute per text input field. It appears that the NAM interface has no way of stuffing two LDAP attributes in the field. Is this possible to do?”

And here is the response from Rowan Truscott …

Solution

If you have another field on the form that you can temporarily put the second attribute into, then you would be able to apply some Javascript before the form is submitted to stuff the two values together.

I used the “value” for the Submit button. So….

Add GivenName to Name_on_Account
Add SN to submit button value (lets call it submit)

Add the following javscript to “Enable JavaScript Handling > Statements to Execute on Submit” section of the form fill policy:

function buildName() {

var givenName=document.getElementById("Name_on_Account");
var values= givenName.value;

var sn=document.getElementById("submit");
var values= values + sn.value;

alert(""+values);

document.getElementById("Name_on_Account").value=values;
}

buildName();

That might do the trick. And remember to take out the alert line once you have tested it.

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags:
Categories: Uncategorized

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Comment