Location: Symbol Reference > Files > JwsclKnownSid.pas
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
JwsclKnownSid.pas

Project JEDI Windows Security Code Library (JWSCL) Contains well known sids

The Original Code is JwsclKnownSid.pas. 

The Initial Developer of the Original Code is Christian Wimmer. Portions created by Christian Wimmer are Copyright (C) Christian Wimmer. All rights reserved.

Christian Wimmer

 
Name 
Description 
 
TJwIntegrityLevelSID provides methods to use fine grained integrity levels.
This class is subject to change and to be investigated and therefore should not be used!! 
 
TJwSecurityKnownSID is used by JWSCL to distinguish predefined SID classes that should not be freed by JWSCL. e.g. JwLocalServiceSID 
 
TJwSecurityThreadUserSID is a class that describes the current user that is running the current thread or process. Because the user must not be neccessary the current logged on user it is called that way. Use the var JwSecurityProcessUserSID to get its date. But don't free it. 
Name 
Description 
This is constant JwHighIL. 
This is constant JwIntegrityLevel. 
This is constant JwLowIL. 
This is constant JwMediumIL. 
This is constant JwProtectedProcessIL. 
This is constant JwSystemIL. 
 
Name 
Description 
 
JwAddMapSid adds a string to the string Sid map list. JwInitMapping must be called before.
 
 
JwCheckInitKnownSid checks whether one or more well known sid variables from unit JwsclKnownSid are initialized (not nil). If a given variable was not created the procedure raises EJwsclInitWellKnownException; otherwise it does nothing.
This procedure is like JwsclUtils.JwCheckInitKnownSid but does a thorough check for the variables.
 
 
JwGetLogonSID gets the logon SID of the given window station.
Remark: This function is useful if a new user must have access to the given windows station so she can create windows. One do not have to add the new user to the window station DACL. This does not work if the user is not logged on as an interactive user.
 
 
fSecurityCurrentThreadUserSID : TJwSecurityThreadUserSID = nil; 
 
JwGetMachineSid returns a local or remote machine's SID. Warning: This function may need some time on remote machines.
 
 
JwInitMapping initialises Sid name mapping. Must be called before using JwAddMapSid and JwSidMap.
JwInitMapping reads JwSidMapDef and adds it to the internal list of name to Sid mappings. If a mapping could not be made, JwSidMapDefErrors will contain the index (JwSidMapDef) of the problem. 
 
JwInitWellKnownSIDs initializes the WellKnownSID variables. This function should not be called during initialization of a Jwscl-unit since it indirectly accesses various global variables, e.g. JwProcessHeap, which might not have been initialized yet. 
 
JwInitWellKnownSIDsEx works like JwInitWellKnownSIDs but also inits the array JwKnownSid for additional known SIDs. It calls JwInitWellKnownSIDs automatically.
 
 
This is function JwInitWellKnownSIDsExAll. 
 
JwSecurityCurrentThreadUserSID gets the current process user or impersonated thread user of the current thread that is used to call this function. The caller is responsible to free the SecurityID instance.
Despite its name, the function does not fail if the current thread is not impersonated. In this case the process user is returned.
Use:  
 
JwSidMap returns a Sid instance that was connected to a name. The advantage of this type is that names are not translated. They are always the same.
JwInitMapping must be called before.
 
 
Name 
Description 
 
TJwSidMap defines a map between a name and its Sid instance. 
Name 
Description 
This is type PJwSidMap. 
Name 
Description 
This is variable IntegrityLevelSIDs. 
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
JwInitWellKnownSidStatus shows the status of the well known sid variables. It is set to true if JwInitWellKnownSIDs was called.
Only read this value. Never set it! 
This is variable JwIntegrityLabelSID. 
JwKnownSid contains a set of known sids. It is (partly) initialized by a call to JwInitWellKnownSIDsEx
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
JwSidMapDef defines a list of mapped known Sids which are used to retrieve by JwSidMap. See TJwSidMap for more information 
JwSidMapDefErrors contains a list of numbers that defines which index in JwSidMapDef could not be resolved. 
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
JwAuthenticatedUserSID defines the current user SID that started the process. You need to call JwInitWellknownSIDs before accessing this variable! Use:  
This is variable KnownSids. 
This is variable OnFinalization. 
This is variable SidMaps. 
License

The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ 

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. 

Alternatively, the contents of this file may be used under the terms of the GNU Lesser General Public License (the "LGPL License"), in which case the provisions of the LGPL License are applicable instead of those above. If you wish to allow use of your version of this file only under the terms of the LGPL License and not to allow others to use your version of this file under the MPL, indicate your decision by deleting the provisions above and replace them with the notice and other provisions required by the LGPL License. If you do not delete the provisions above, a recipient may use your version of this file under either the MPL or the LGPL License. 

For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html

Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!