mirror of https://github.com/winsw/winsw
commit
109e754813
|
@ -24,7 +24,7 @@ namespace winsw.Configuration
|
||||||
// Installation
|
// Installation
|
||||||
public bool AllowServiceAcountLogonRight => false;
|
public bool AllowServiceAcountLogonRight => false;
|
||||||
public string? ServiceAccountPassword => null;
|
public string? ServiceAccountPassword => null;
|
||||||
public string ServiceAccountUser => "NULL\\NULL";
|
public string? ServiceAccountUser => null;
|
||||||
public List<Native.SC_ACTION> FailureActions => new List<Native.SC_ACTION>(0);
|
public List<Native.SC_ACTION> FailureActions => new List<Native.SC_ACTION>(0);
|
||||||
public TimeSpan ResetFailureAfter => TimeSpan.FromDays(1);
|
public TimeSpan ResetFailureAfter => TimeSpan.FromDays(1);
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ namespace winsw.Configuration
|
||||||
// Installation
|
// Installation
|
||||||
bool AllowServiceAcountLogonRight { get; }
|
bool AllowServiceAcountLogonRight { get; }
|
||||||
string? ServiceAccountPassword { get; }
|
string? ServiceAccountPassword { get; }
|
||||||
string ServiceAccountUser { get; }
|
string? ServiceAccountUser { get; }
|
||||||
List<Native.SC_ACTION> FailureActions { get; }
|
List<Native.SC_ACTION> FailureActions { get; }
|
||||||
TimeSpan ResetFailureAfter { get; }
|
TimeSpan ResetFailureAfter { get; }
|
||||||
|
|
||||||
|
|
|
@ -634,19 +634,17 @@ namespace winsw
|
||||||
|
|
||||||
protected string? AllowServiceLogon => GetServiceAccountPart("allowservicelogon");
|
protected string? AllowServiceLogon => GetServiceAccountPart("allowservicelogon");
|
||||||
|
|
||||||
// ReSharper disable once InconsistentNaming
|
protected string? ServiceAccountDomain => GetServiceAccountPart("domain");
|
||||||
protected string? serviceAccountDomain => GetServiceAccountPart("domain");
|
|
||||||
|
|
||||||
// ReSharper disable once InconsistentNaming
|
protected string? ServiceAccountName => GetServiceAccountPart("user");
|
||||||
protected string? serviceAccountName => GetServiceAccountPart("user");
|
|
||||||
|
|
||||||
public string? ServiceAccountPassword => GetServiceAccountPart("password");
|
public string? ServiceAccountPassword => GetServiceAccountPart("password");
|
||||||
|
|
||||||
public string ServiceAccountUser => (serviceAccountDomain ?? "NULL") + @"\" + (serviceAccountName ?? "NULL");
|
public string? ServiceAccountUser => ServiceAccountName is null ? null : (ServiceAccountDomain ?? ".") + "\\" + ServiceAccountName;
|
||||||
|
|
||||||
public bool HasServiceAccount()
|
public bool HasServiceAccount()
|
||||||
{
|
{
|
||||||
return !string.IsNullOrEmpty(serviceAccountDomain) && !string.IsNullOrEmpty(serviceAccountName);
|
return !string.IsNullOrEmpty(ServiceAccountName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool AllowServiceAcountLogonRight
|
public bool AllowServiceAcountLogonRight
|
||||||
|
|
Loading…
Reference in New Issue