c# - Localization for security identity in .NET -


i looking implement named pipe service/client communication in .net , came across this code that, while initializing server side of pipe had set security descriptor pipe. did way:

pipesecurity pipesecurity = new pipesecurity();  // allow read , write access pipe. pipesecurity.setaccessrule(new pipeaccessrule("authenticated users",     pipeaccessrights.readwrite, accesscontroltype.allow));  // allow administrators group full access pipe. pipesecurity.setaccessrule(new pipeaccessrule("administrators",     pipeaccessrights.fullcontrol, accesscontroltype.allow)); 

but i'm looking @ it, , i'm concerned specifying sids strings, or authenticated users , administrators parts. guarantee called that, say, in chinese or other language?

(extracted op's original question)

i came alternative:

pipesecurity pipesecurity = new pipesecurity();  // allow read , write access pipe. pipesecurity.setaccessrule(new pipeaccessrule(     "authenticated users",     new securityidentifier(wellknownsidtype.authenticatedusersid, null),        pipeaccessrights.readwrite, accesscontroltype.allow));  // allow administrators group full access pipe. pipesecurity.setaccessrule(new pipeaccessrule(     "administrators",     new securityidentifier(wellknownsidtype.builtinadministratorssid, null),        pipeaccessrights.fullcontrol, accesscontroltype.allow)); 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -