We have a site level feature which gets activated when a "My Site" is provisioned. This feature finds the current SharePoint logged-in user and changes the User Profile Picture URL property to the logged-in user.
This works absolutely fine when we have NTLM authentication enabled.
Scenario-1 When the Kerberose authentication is enabled and the feature gets activated automatically, it always gets the current user name as "System Account" (In real this is wrong, because the current logged-in user is something else).
Scenario-2 When the Kerberose authentication is enabled and the feature gets activated manually, it always gets the current user name as the user name logged-in.(In real this is right).
Any ideas on what might be reason and resolution for the Scenario-1? Any help on this would be greatly appreciable.