| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using System;
- using System.Collections.Generic;
- using System.Configuration;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace GreenTree.Nachtragsmanagement.Core.Configuration
- {
- public class LdapServerElement : ConfigurationElement
- {
- /// <summary>
- /// LDAP connection which should be used to to authenticate the user
- /// </summary>
- [ConfigurationProperty("ldapConnectionString", DefaultValue = "", IsRequired = false)]
- public string LdapConnectionString
- {
- get
- {
- return (string)this["ldapConnectionString"];
- }
- set
- {
- this["ldapConnectionString"] = value;
- }
- }
- /// <summary>
- /// User which is allowed to query the specified LDAP server
- /// </summary>
- [ConfigurationProperty("administriveUser", DefaultValue = "", IsRequired = false)]
- public string AdministriveUser
- {
- get
- {
- return (string)this["administriveUser"];
- }
- set
- {
- this["administriveUser"] = value;
- }
- }
- /// <summary>
- /// Password of the administrive user
- /// </summary>
- [ConfigurationProperty("password", DefaultValue = "", IsRequired = false)]
- public string Password
- {
- get
- {
- return (string)this["password"];
- }
- set
- {
- this["password"] = value;
- }
- }
- }
- }
|