Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kenbell
Copy link

@kenbell kenbell commented Dec 5, 2010

These changes implement:

  • System.Security.Principal.NTAccount
  • System.Security.Principal.SecurityIdentifier
  • System.Security.AccessControl.RawSecurityDescriptor

The changes ripple through to a number of associated classes (representing ACEs and ACLs).

Although some functionality is limited (can't do SID --> Name and Name --> SID translations for arbitrary accounts), it is enough to load, manipulate and store Security Descriptors in binary and SDDL form.

There are some unit tests included, that all pass on Microsoft's .NET.

@migueldeicaza
Copy link
Contributor

Hello Kenneth,

For new classes there is very little feedback that I can provide, but in a handful of cases you made changes that change the existing behavior (for example on NTAccount the _value is now set to name, instead of name.ToUpper ()). In those cases, it would be useful if you could state on your commit message why those changes are necessary.

@kenbell
Copy link
Author

kenbell commented Dec 6, 2010

Thanks - I've updated the commit message on that change, to add: NTAccount changed to not upper-case values to match behaviour observed in Microsoft's .NET (see also unit tests).

Cheers,

Ken

Kenneth Bell added 2 commits December 22, 2010 01:11
  * Only translates between SecurityIdentifier and NTAccount for
    well-known accounts.

  * NTAccount changed to not upper-case values to match behaviour
    observed in Microsoft's .NET (see also unit tests)

  * Add unit tests for both classes
 * Marshals to/from SDDL and binary form.

 * Supports 'Common' ACEs and 'Object' ACEs
@migueldeicaza
Copy link
Contributor

Applied. Thanks!

luliyi1024 referenced this pull request in luliyi1024/mono Sep 29, 2012
…y3.5-staging

Unity3.5 staging - fixing clobbered r8 on android (when script debugging is enabled)
luhenry pushed a commit to luhenry/mono that referenced this pull request Nov 11, 2018
* Get element from int array.

* Support modulo, array set, branch on boolean.
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants