From 299e58db28202be8706dee1c570c382e1489213b Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Mon, 9 Oct 2023 16:00:18 +1100 Subject: AclDialog --- LocalPrincipal.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'LocalPrincipal.cs') 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 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 { -- cgit v1.3