Tags » Anwar

Anwar Barbouti: The Road to Success

There are over 7 billion people on this planet, but most of them never get the chance to enjoy a successful career. In some cases, the circumstances might really be against you, but most of the times, each person has the possibility to develop a great career and to be highly respected in the community. 373 more words

error connect to active directory

I tried to connect to Active directory to get current user name but i faced error ” The server could not be contacted.”

 var identityName = HttpContext.Current.User.Identity.Name;
        using (HostingEnvironment.Impersonate())
        {
            using (var context = new PrincipalContext(ContextType.Domain, "\\MyDomain.local", null, ContextOptions.Negotiate | ContextOptions.SecureSocketLayer))
            using (userPrincipal = UserPrincipal.FindByIdentity(context, IdentityType.SamAccountName, identityName))
            {
                lblUserName.Text = userPrincipal.DisplayName;
            }
        }
… 12 more words
Stackoverflow

Beautiful songs

When I like a song, I listen to it over and over again until I get tired of it. But songs like ‘maula mere maula’, ‘tohse naina’ and ‘madno’ are those few that I never get tired of listening to. 471 more words