Go to the source code of this file.
|
SAL_DLLPUBLIC oslSecurity | osl_getCurrentSecurity (void) |
| Create a security handle for the current user. More...
|
|
SAL_DLLPUBLIC oslSecurityError | osl_loginUser (rtl_uString *strUserName, rtl_uString *strPasswd, oslSecurity *pSecurity) |
| Deprecated API Create a security handle for the denoted user. More...
|
|
SAL_DLLPUBLIC oslSecurityError | osl_loginUserOnFileServer (rtl_uString *strUserName, rtl_uString *strPasswd, rtl_uString *strFileServer, oslSecurity *pSecurity) |
| Create a security handle for the denoted user. More...
|
|
SAL_DLLPUBLIC sal_Bool | osl_isAdministrator (oslSecurity Security) |
| Query if the user who is denotes by this security has administrator rights. More...
|
|
SAL_DLLPUBLIC void | osl_freeSecurityHandle (oslSecurity Security) |
| Free the security handle, created by osl_loginUser or osl_getCurrentSecurity. More...
|
|
SAL_DLLPUBLIC sal_Bool | osl_getUserIdent (oslSecurity Security, rtl_uString **strIdent) |
| Get the login ident for the user of this security handle. More...
|
|
SAL_DLLPUBLIC sal_Bool | osl_getUserName (oslSecurity Security, rtl_uString **strName) |
| Get the login name for the user of this security handle. More...
|
|
SAL_DLLPUBLIC sal_Bool | osl_getHomeDir (oslSecurity Security, rtl_uString **strDirectory) |
| Get the home directory of the user of this security handle. More...
|
|
SAL_DLLPUBLIC sal_Bool | osl_getConfigDir (oslSecurity Security, rtl_uString **strDirectory) |
| Get the directory for configuration data of the user of this security handle. More...
|
|
SAL_DLLPUBLIC sal_Bool | osl_loadUserProfile (oslSecurity Security) |
| Load Profile of the User Implemented just for Windows. More...
|
|
SAL_DLLPUBLIC void | osl_unloadUserProfile (oslSecurity Security) |
| Unload a User Profile Implemented just for Windows. More...
|
|
§ oslSecurity
§ oslSecurityError
Enumerator |
---|
osl_Security_E_None | |
osl_Security_E_UserUnknown | |
osl_Security_E_WrongPassword | |
osl_Security_E_Unknown | |
osl_Security_E_FORCE_EQUAL_SIZE | |
§ osl_freeSecurityHandle()
Free the security handle, created by osl_loginUser or osl_getCurrentSecurity.
- Parameters
-
[in] | Security | the security handle. |
- See also
- osl_loginUser
§ osl_getConfigDir()
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.
§ osl_getCurrentSecurity()
§ osl_getHomeDir()
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.
§ osl_getUserIdent()
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.
§ osl_getUserName()
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.
§ osl_isAdministrator()
Query if the user who is denotes by this security has administrator rights.
- Parameters
-
[in] | Security | the security handle for th user. |
- Returns
- True, if the user has adminsitrator rights, otherwise false.
§ osl_loadUserProfile()
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.
§ osl_loginUser()
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 log 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
§ osl_loginUserOnFileServer()
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 mapped drive on this server.
- Parameters
-
[in] | strUserName | denotes the name of the user to log in. |
[in] | strPasswd | the password for this user. |
[in] | strFileServer | denotes the file server on which 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
§ osl_unloadUserProfile()
Unload a User Profile Implemented just for Windows.
- Parameters
-
[in] | Security | previously fetch Security of the User |
- Returns
- nothing is returned!