public static String GetSession(String sFilter)
{
string adsPath = "LDAP://af.ad.uum";
string[] attribs = new string[] { "employeeID" };
String username = null;
String password = null;
DirectoryEntry de = new DirectoryEntry(adsPath, username, password, AuthenticationTypes.Secure);
return de;
}
refer to the above code, how do i pass password (the onet with yellow highlighted) to another page. and how to read it back in another page.. tq..please help..
Nitin SontakkePosted Feb 21, 2017, 5:39 AM
Amit KumarPosted Feb 21, 2017, 5:12 AM
Asma KhalidPosted Feb 21, 2017, 2:47 AM
Bryian TanPosted Feb 20, 2017, 9:06 PM
service.UseDefaultCredentials = false;
service.Credentials = new NetCredential("myUserName", "password", "Domain");
Hazel MahmudPosted Feb 20, 2017, 7:55 PM
{
get
{
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013);
service.Credentials = new WebCredentials("username", "password");
service.UseDefaultCredentials = true;
// service.Credentials = new WebCredentials(CredentialCache.DefaultCredentials);
//service.AutodiscoverUrl(mail);
// service.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, mail);
service.Url = new Uri("https://.edu.my/EWS/exchange.asmx");
return service;
}
}
Bryian TanPosted Feb 20, 2017, 4:01 PM
Joginder BangerPosted Feb 20, 2017, 3:47 PM
Joginder BangerPosted Feb 20, 2017, 3:46 PM
Vignesh ManiPosted Feb 20, 2017, 3:42 PM
Bryian TanPosted Feb 20, 2017, 3:27 PM