username etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
username etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

16 Şubat 2012 Perşembe

Sharepoint Infopath getting logged in username in Forms Authentication

If you use Claims Based Auth., you cannot get a proper username with the command ın Infopath:


this.Application.User.LoginName

You ll get something like :
i:0#.|PROVIDERNAME|Username

You can replace the string but it 's not a proper way to do it.

You can use 2 methods:

1.  SPUser user = SPContext.Current.Web.CurrentUser;
user.userName would get you the proper name

or

2.

string userName = null;
SPClaimProviderManager mgr = SPClaimProviderManager.Local;
if (mgr != null)
{
       userName = mgr.DecodeClaim(SPContext.Current.Web.CurrentUser.LoginName).Value;
}

6 Şubat 2012 Pazartesi

Sharepoint 2010 - Constantly prompting Username Password in local server.

This problem was also bugging me in Dynamics CRM.

İf you would have a server and try to access it inside, it constantly prompts you username and password.

In order to be able to solve this issue you need to add a new registry key

Run - regedit

Go to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa


Create a DWORD (32bit) key in the folder, named as:
DisableLoopbackCheck


Set the value as:
1


Close the regisrty window. By default (and best case) it does not need any restart of iis, explorer or server.


Source:
http://www.jeremytaylor.net/2010/05/24/sharepoint-disable-loopback-check-disableloopbackcheck-dword-in-registry/