#include "sal/config.h"
#include "rtl/ustring.h"
#include "sal/saldllapi.h"
Go to the source code of this file.
Typedefs |
| typedef void * | oslSecurity |
| | Process handle.
|
Enumerations |
| enum | oslSecurityError {
osl_Security_E_None,
osl_Security_E_UserUnknown,
osl_Security_E_WrongPassword,
osl_Security_E_Unknown,
osl_Security_E_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
} |
Functions |
| SAL_DLLPUBLIC oslSecurity | osl_getCurrentSecurity (void) |
| | Create a security handle for the current user.
|
| SAL_DLLPUBLIC oslSecurityError | osl_loginUser (rtl_uString *strUserName, rtl_uString *strPasswd, oslSecurity *pSecurity) |
| | Deprecated API Create a security handle for the denoted user.
|
| SAL_DLLPUBLIC oslSecurityError | osl_loginUserOnFileServer (rtl_uString *strUserName, rtl_uString *strPasswd, rtl_uString *strFileServer, oslSecurity *pSecurity) |
| | Create a security handle for the denoted user.
|
| SAL_DLLPUBLIC sal_Bool | osl_isAdministrator (oslSecurity Security) |
| | Query if the user who is denotes by this security has administrator rigths.
|
| SAL_DLLPUBLIC void | osl_freeSecurityHandle (oslSecurity Security) |
| | Free the security handle, created by osl_loginUser or osl_getCurrentSecurity.
|
| SAL_DLLPUBLIC sal_Bool | osl_getUserIdent (oslSecurity Security, rtl_uString **strIdent) |
| | Get the login ident for the user of this security handle.
|
| SAL_DLLPUBLIC sal_Bool | osl_getUserName (oslSecurity Security, rtl_uString **strName) |
| | Get the login name for the user of this security handle.
|
| SAL_DLLPUBLIC sal_Bool | osl_getHomeDir (oslSecurity Security, rtl_uString **strDirectory) |
| | Get the home directory of the user of this security handle.
|
| SAL_DLLPUBLIC sal_Bool | osl_getConfigDir (oslSecurity Security, rtl_uString **strDirectory) |
| | Get the directory for configuration data of the user of this security handle.
|
| SAL_DLLPUBLIC sal_Bool | osl_loadUserProfile (oslSecurity Security) |
| | Load Profile of the User Implemented just for Windows.
|
| SAL_DLLPUBLIC void | osl_unloadUserProfile (oslSecurity Security) |
| | Unload a User Profile Implemented just for Windows.
|
Typedef Documentation
Enumeration Type Documentation
- Enumerator:
| osl_Security_E_None |
|
| osl_Security_E_UserUnknown |
|
| osl_Security_E_WrongPassword |
|
| osl_Security_E_Unknown |
|
| osl_Security_E_FORCE_EQUAL_SIZE |
|
Function Documentation
| SAL_DLLPUBLIC void osl_freeSecurityHandle |
( |
oslSecurity |
Security | ) |
|
Free the security handle, created by osl_loginUser or osl_getCurrentSecurity.
- Parameters:
-
| [in] | Security | the security handle. |
- See also:
- osl_loginUser
Get the directory for configuration data of the user of this security handle.
- Parameters:
-
| [in] | Security | the security handle. |
| [out] | strDirectory | the string that receives the directory path on success. |
- Returns:
- True, if the security handle is valid, otherwise False.
| SAL_DLLPUBLIC oslSecurity osl_getCurrentSecurity |
( |
void |
| ) |
|
Get the home directory of the user of this security handle.
- Parameters:
-
| [in] | Security | the security handle. |
| [out] | strDirectory | the string that receives the directory path on success. |
- Returns:
- True, if the security handle is valid, otherwise False.
Get the login ident for the user of this security handle.
- Parameters:
-
| [in] | Security | the security handle. |
| [out] | strIdent | the string that receives the ident on success. |
- Returns:
- True, if the security handle is valid, otherwise False.
Get the login name for the user of this security handle.
- Parameters:
-
| [in] | Security | the security handle. |
| [out] | strName | the string that receives the user name on success. |
- Returns:
- True, if the security handle is valid, otherwise False.
Query if the user who is denotes by this security has administrator rigths.
- Parameters:
-
| [in] | Security | the security handle for th user. |
- Returns:
- True, if the user has adminsitrator rights, otherwise false.
Load Profile of the User Implemented just for Windows.
- Parameters:
-
| [in] | Security | previously fetch Security of the User |
- Returns:
- True if the Profile could successfully loaded, False otherwise.
Deprecated API Create a security handle for the denoted user.
Try to log in the user on the local system.
- Parameters:
-
| [in] | strUserName | denotes the name of the user to logg in. |
| [in] | strPasswd | the password for this user. |
| [out] | pSecurity | returns the security handle if user could be logged in. |
- Returns:
- osl_Security_E_None if user could be logged in, otherwise an error-code.
- See also:
- osl_freeSecurityHandle
-
osl_executeProcess
-
osl_executeApplication
| SAL_DLLPUBLIC oslSecurityError osl_loginUserOnFileServer |
( |
rtl_uString * |
strUserName, |
|
|
rtl_uString * |
strPasswd, |
|
|
rtl_uString * |
strFileServer, |
|
|
oslSecurity * |
pSecurity |
|
) |
| |
Create a security handle for the denoted user.
Try to log in the user on the denoted file server. On success the homedir will be the maped drive on this server.
- Parameters:
-
| [in] | strUserName | denotes the name of the user to logg in. |
| [in] | strPasswd | the password for this user. |
| [in] | strFileServer | denotes the file server on wich the user is logged in. |
| [out] | pSecurity | returns the security handle if user could be logged in. |
- Returns:
- osl_Security_E_None if user could be logged in, otherwise an error-code.
- See also:
- osl_freeSecurityHandle
-
osl_executeProcess
-
osl_executeApplication
| SAL_DLLPUBLIC void osl_unloadUserProfile |
( |
oslSecurity |
Security | ) |
|
Unload a User Profile Implemented just for Windows.
- Parameters:
-
| [in] | Security | previously fetch Security of the User |
- Returns:
- nothing is returned!