diff options
Diffstat (limited to 'LocalPrincipal.cs')
| -rw-r--r-- | LocalPrincipal.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/LocalPrincipal.cs b/LocalPrincipal.cs index 35ff310..f4b9981 100644 --- a/LocalPrincipal.cs +++ b/LocalPrincipal.cs @@ -11,6 +11,17 @@ public class LocalPrincipal : IPrincipal { public string Name { get; set; } public SecurityIdentifier Sid { get; set; } public List<LocalGroup> MemberOf { get; set; } + + // At this time, DisplayName is bound to Name, as local + // users are currently expected to be identified by username + // only. This is a quick 'n' dirty hack that works for + // displaying the user's name consistently, but may lead to + // unexpected behaviour in future when setting the DisplayName + // property if that ever becomes possible. + public string DisplayName { + get => Name; + set => Name = value; + } } public class LocalUser : LocalPrincipal, IUser { |
