LdapServerElement.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Configuration;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace GreenTree.Nachtragsmanagement.Core.Configuration
  8. {
  9. public class LdapServerElement : ConfigurationElement
  10. {
  11. /// <summary>
  12. /// LDAP server which should be connected to to authenticate the user
  13. /// </summary>
  14. [ConfigurationProperty("ldapServer", DefaultValue = "", IsRequired = false)]
  15. public string SmtpServer
  16. {
  17. get
  18. {
  19. return (string)this["ldapServer"];
  20. }
  21. set
  22. {
  23. this["ldapServer"] = value;
  24. }
  25. }
  26. /// <summary>
  27. /// User which is allowed to query the specified LDAP server
  28. /// </summary>
  29. [ConfigurationProperty("administriveUser", DefaultValue = "", IsRequired = false)]
  30. public string AdministriveUser
  31. {
  32. get
  33. {
  34. return (string)this["administriveUser"];
  35. }
  36. set
  37. {
  38. this["administriveUser"] = value;
  39. }
  40. }
  41. /// <summary>
  42. /// Password of the administrive user
  43. /// </summary>
  44. [ConfigurationProperty("password", DefaultValue = "", IsRequired = false)]
  45. public string Password
  46. {
  47. get
  48. {
  49. return (string)this["password"];
  50. }
  51. set
  52. {
  53. this["password"] = value;
  54. }
  55. }
  56. }
  57. }