|
using System;
using System.Configuration;
namespace ActiveDirectoryAuthentication.Helper
{
public class ActiveDirectoryConfiguration : ConfigurationSection
{
[ConfigurationProperty("enabled", DefaultValue = "true", IsRequired = true)]
public Boolean Enabled
{
get
{
return (Boolean)this["enabled"];
}
set
{
this["enabled"] = value;
}
}
[ConfigurationProperty("server", DefaultValue = "", IsRequired = true)]
public string Server
{
get
{
return this["server"].ToString();
}
set
{
this["server"] = value;
}
}
[ConfigurationProperty("domain", DefaultValue = "", IsRequired = true)]
public string Domain
{
get
{
return this["domain"].ToString();
}
set
{
this["domain"] = value;
}
}
[ConfigurationProperty("directoryPath", DefaultValue = "", IsRequired = true)]
public string DirectoryPath
{
get
{
return this["directoryPath"].ToString();
}
set
{
this["directoryPath"] = value;
}
}
[ConfigurationProperty("groupName", DefaultValue = "", IsRequired = true)]
public string GroupName
{
get
{
return this["groupName"].ToString();
}
set
{
this["groupName"] = value;
}
}
[ConfigurationProperty("filter", DefaultValue = "", IsRequired = true)]
public string Filter
{
get
{
return this["filter"].ToString();
}
set
{
this["filter"] = value;
}
}
[ConfigurationProperty("filterReplace", DefaultValue = "", IsRequired = true)]
public string FilterReplace
{
get
{
return this["filterReplace"].ToString();
}
set
{
this["filterReplace"] = value;
}
}
[ConfigurationProperty("pageLevelSecurityCheck", DefaultValue = "false", IsRequired = true)]
public Boolean PageLevelSecurityCheck
{
get
{
return (Boolean)this["pageLevelSecurityCheck"];
}
set
{
this["pageLevelSecurityCheck"] = value;
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am Bachelor in CSE from Khulna University of Engineering & Technology,Bangladesh. I have more than 11 years experience in software design & development, data analysis & modeling, project management and currently working in a software company in Dubai,UAE as a Lead Software Engineer. I am MCAD(Microsoft Certified Application Developer) certified since 2005. Please feel free to contact with me at nill_akash_7@yahoo.com.