Actually, I believe your URL enables authentication only against your LDAP (and Cognos is configured to use Single-SignOn). Where it takes the credentials from - a cookie? the URL? Any how, you need to retrieve them from your authentication page, and then pass them to Cognos login (wrapped as XML of course).
I hope I understand the situation correctly...