Hi,
I'm having a very bizarre problem with a custom authetnciation provider and alternate access mappings.
I have a custom MembershipProvider and RoleProvider set up for the extranet zone of mycompany.com (extranet.mycompany.com).
I also have alternate access mappings and corresponding IIS host headers set up for extranet.mycompany.com. These are client1.extranet.mycompany.com, client2.extranet.mycompany.com, client3.extranet.mycompany.com. All of these use my custom MembershipProvider and RoleProvider.
The MembershipProvider and RoleProvider work perfectly, no exceptions...but...
When I navigate to one of the alternate mappings for the extranet (ie. client1.extranet.mycompany.com), the login page comes up, as it should...but when I log in (and the MembershipProvider and RoleProvider authenticate the user correctly - I've verified this in debug) the same login page comes back up...but this time the URL is
http://extranet.mycompany.com/_layouts/login.aspx?ReturnUrl=%2fdefault.aspx
...this is the main extranet URL...it should be
http://client1.extranet.mycompany.com/_layouts/login.aspx?ReturnUrl=%2fdefault.aspx
...well really it should have just logged me in and brought me to the default.aspx page...
Now, here's where it gets strange...
If I go to http://client1.extranet.mycompany.com/default.aspx and log in...it works!! I can then navigate around the site perfectly....with one exception (that I've found so far). If I go to People and Groups...the page that comes up is
http://extranet.mycompany.com/_layouts/login.aspx?ReturnUrl=%2fdefault.aspx
again...
If I navigate straight to http://extranet.mycompany.com/ in the first place and log in, everything works normally the whole way through.
Anyone have any ideas? I have a feeling this has something to do with security permissions...or something, but I've tried everything I can think of (changing permissions of the IUSR account, enabling anonymous access for the authentication provider, changing the identity of the anonymous access user, changing the web.config to not use impersonation.....)
Thank you in advance.