1

Closed

IsDomainAdmin

description

Hi!

I think there's an Issue with the IsDomainAdmin Property
A User is in an Group where the SID EndsWith "-8512" and shows as DomainAdmin...
        /// <summary>
        /// Gets whether is domain admin.
        /// </summary>
        public bool IsDomainAdmin
        {
            get
            {
                return (from groupSid in this.GroupSids
                        where groupSid.EndsWith("512")
                        select groupSid).Any();
            }
        }
should be
        /// <summary>
        /// Gets whether is domain admin.
        /// </summary>
        public bool IsDomainAdmin
        {
            get
            {
                return (from groupSid in this.GroupSids
                        where groupSid.EndsWith("-512")
                        select groupSid).Any();
            }
        }
Br
Bernhard
Closed Dec 13, 2014 at 7:04 AM by pangxiaoliang
I have fix the issue, thx a lot for your feedback.

comments