How to use views and LDAP query to get a list of names in a webform? I am using Views, LDAP query, Webform Views, and Webform to try and produce a webform that -- along with a bunch of other stuff in the webform -- has a select list of names, with emails associated, from our ldap server. So far I have gotten a View page with all the names, but I don't know how to condense that to not just be a giant list (un-collapsible) in the middle of a webform. So any idea how to do this or some similar solution so that the person filling out the form can find a name in a list of names, and for either them to see the email in a list and select/write it in another field, or for them to just select a name from a select list and have that selection effect the results(like providing an email to go with the name)?

Some other info -- the LDAP data has names and emails, as well as a variety of other information that would be useful to the people reading the results. Also, I have tried using feeds, and ldap feeds and was unsuccessful, but I would be happy if there was anyway to use both of those as well.
If you have a valid ldap query with names and emails your basically there with Views and LDAP.

You want to make a custom webform component in a module using PHP code. You can use views_get_results to get the results of the LDAP view as an array.

Then just build a webform component as you would a Forms API select widget with your values.

You then tell the webform to use your component in the UI.