summaryrefslogtreecommitdiff
path: root/LocalPrincipal.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-10-09 16:00:18 +1100
committerJake Mannens <jake@asger.xyz>2023-10-09 16:00:18 +1100
commit299e58db28202be8706dee1c570c382e1489213b (patch)
tree9276a024702e7596cd58c72337c29955fafa98e2 /LocalPrincipal.cs
parent2c30354c4af308bf9856a3651d9ba3a686eed936 (diff)
AclDialog
Diffstat (limited to 'LocalPrincipal.cs')
-rw-r--r--LocalPrincipal.cs11
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 {