views:

57

answers:

1

I've got a sharepoint site and a custom aspx portal, both under Windows Authentication. With the same machine, it happens that my sharepoint site returning me my current login, while my custom aspx returning me my domain admin account instead.

Is there anyway that I could ensure both logins are the same? Otherwise, is there anyway to consume SPUserProfileService from a custom aspx portal?

Mainly, I need to have the custom aspx portal to get sharepoint logon id. Nevertheless, i could still trigger AccessDenied.aspx in sharepoint to prompt for logins.

A: 

When you say "Custom ASPX Portal", is it still hosted on the SharePoint Site?

In that case, how do you get the user? You can use SPContext.Current.Web.CurrentUser to get the user.

Michael Stum