22 August, 2013

Sign-in didn't work, you didn't get signed in. It might be your sign-in address or logon credentials

Problem description:
Users getting ‘Sign-in didn’t work’ error while login on Lync.

Error message:
Sign-in didn't work, you didn't get signed in. It might be your sign-in address or logon credentials, so try those again. If that doesn't work, contact your support team.

Most probable root cause:
Look like error is very simple and user might not using proper credential that why Sign-in error occurred. Most of the cases users are using their proper credential however continuously getting above error. Means credential is not the only culprit. When I dig into this then I got the actual reason behind the error.

Resolution: There are multiple resolution for this, let me share one by one:

First solution:
First step you can always check the login credential including password. Like password expired or recently changed etc.
Format:
Sign-in name: amolghuge@mydomain.com
User Name: mydomain\amolghuge
Password: *************

Second solution:
Go to Active Directory and find the user and see whether user has multiple accounts or not. Multiple accounts (separate account in each domain).

-If two or more accounts are found then, Open Lync Management Shell and run below cmdlet.

PS C:\> Get-CsUser -Identity "Ilag, Balu"

You will see the result with all enable account with above display name.

-Just keep required ID and disable rest.

-Some cases alias will be same for multiple accounts, if so then change the one of the alias name and wait to sync.

-Still getting same error message then disable the Lync account through Lync Control Panel. And enable after 30 minutes to update account information.

Note: Disable account through Lync Control Panel only. Do not disable via Lync Management shell otherwise user will lose their buddy list.

In case of any queries/questions regarding the above mentioned information then please let me know, Thank you.

Product applies:

Lync Server 2010

Problem occurred while contacting to the server. If the problem continues, contact your administrator- SharePoint 2010

Problem description:
Not able to edit office documents on SharePoint site

Error Message:
Problem occurred while contacting to the server. If the problem continues, contact your administrator.

Resolution:
Please refer the following steps to resolve this issue:

1.   Click 'Select Reinstall Mode'
2.   Uncheck “Repair all detected reinstall problems”.
3.   Check “Force all files to be reinstalled, regardless of checksum or version”.
4.   Check “Verify that required user registry entries are present”.
5.   Check “Verify that required machine registry entries are present”.
6.   Check “Validate shortcuts”.
7.   Press OK
8.   Click REINSTALL

If you have any queries/questions regarding the above mentioned information then please let me know, Thank you.

Problem applies to:
SharePoint Server 2010
SharePoint Foundation 2010

Reference:

http://microsoftdll.com/2013/06/how-to-fix-webfldrs-msi-error

Fetch current login user data from active directory using JavaScript in SharePoint

Problem Description:
Fetch current login user data from active directory using JavaScript in SharePoint.

Resolution:

<script type="text/javascript">
/* getUserName function is use to find Current System User */
function getUserName()
{
 var wshNetwork = new ActiveXObject("WScript.Network");
 var userName = wshNetwork.UserName;
 return userName;
}

function getAD(userName)
{
 //var name = userName.split(".");
 objConnection = new ActiveXObject("ADODB.Connection");
 objConnection.Provider="ADsDSOObject";

 objConnection.Open("ADs Provider");

 objCommand = new ActiveXObject("ADODB.Command");
 objCommand.ActiveConnection = objConnection;

 objCommand.CommandText = "SELECT sAMAccountName, givenName, SN, mail,physicalDeliveryOfficeName FROM 'LDAP://DomainName.com/DC=Domain,DC=com' WHERE objectCategory='user' and sAMAccountName = '"+userName+"'";

 /* Next up is the command itself.*/
 objRecordSet = objCommand.Execute();

 /* Then we execute the command */
 /* Once executed, the command will return an enumeration of the results.*/

 var userMail,lastName,firstName;
 if (objRecordSet.RecordCount == 1) {
  objRecordSet.Movefirst;
  userMail = objRecordSet.Fields("mail").value;
  firstName = objRecordSet.Fields("givenName").value;
  lastName = objRecordSet.Fields("sn").value;
  samaccountname= objRecordSet.Fields("samaccountname").value;
  physicalDeliveryOfficeName= objRecordSet.Fields("physicalDeliveryOfficeName").value;
 }
 else
 {
  userMail = "";
  firstName = "";
  lastName = "";
  physicalDeliveryOfficeName = "";
 }
 objConnection.Close;
 return userMail+";"+firstName+";"+lastName+";"+physicalDeliveryOfficeName;
}

var AD = getAD(getUserName()).split(";");

var mail = AD[0];
var firstName = AD[1];
var lastName = AD[2];
var Office = AD[3];
</script>


References:
In objCommand.CommandText make connection string properly.

In Select query use column name of active directory from which you want data.
Refer this link for column name:

Product Applies To:
·         SharePoint Server 2010
·         SharePoint Foundation 2010
·         SharePoint Server 2013


Feel free to revert in-case of any query...

SharePoint 2013 training in Mumbai + Pune + Bangalore + Chennai + Delhi

SharePoint 2013 training in Mumbai





SharePoint 2013 training in Bangalore





SharePoint 2013 training in Pune





SharePoint 2013 training in Delhi





SharePoint 2013 training in Chennai




Microsoft Office 365 training

Gain the skills needed to set up and manage Microsoft Office 365 for your organization.
Associate level: Office 365

Associate level: Office 365

TitleE-learningExam
MCTS: Administering Office 365 Successfully complete this exam and you’ll earn a Microsoft Certified Technology Specialist: Office 365 certification.
Expert level: Office 365

Expert level: Office 365

TitleE-learningExam
MCITP: Office 365 AdministratorNot yet available Successfully complete this exam and you’ll earn a Microsoft Certified IT Professional: Office 365 certification.