Custom Login Form

Hi,

We are using a custom login form (copied from the domcfg.nsf template) and directory assistance to authenticate to an external LDAP. I want to add some functionality to the form to do a lookup to ldap and retrieve additional user attributes and put them in a cookie or something… but I don’t want to mess up what the login form is doing already… Has anyone tried anything like this? or have suggestions?

Thanks,

-h