Implements SystemUser.
SystemUser Linuximpl | Implements SystemUser. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file SystemUser. |
C-kern/ | Implementation file SystemUser Linuximpl. |
sysuser_id_t | |
query | |
sysuser_t | |
static configuration | |
sysuser_SYS_SERVICE_NAME | The name of service used during authentication. |
sysuser_UNITTEST_USERNAME | Used in unittest_platform_sysuser to test <switchtoprivilege_sysuser>. |
sysuser_UNITTEST_PASSWORD | Used in unittest_platform_sysuser to test <switchtoprivilege_sysuser>. |
lifetime | |
query | |
switch | |
set | |
authentication | |
pamerr2errno_sysuser | Converts error codes from pam lib to errno error codes. |
authenticatecallback_sysuser | Function called back from PAM library during authentication of user. |
sysuser_info_t | |
test |
This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
© 2012 Jörg Seebohn
Header file SystemUser.
Implementation file SystemUser Linuximpl.
static configuration | |
sysuser_SYS_SERVICE_NAME | The name of service used during authentication. |
sysuser_UNITTEST_USERNAME | Used in unittest_platform_sysuser to test <switchtoprivilege_sysuser>. |
sysuser_UNITTEST_PASSWORD | Used in unittest_platform_sysuser to test <switchtoprivilege_sysuser>. |
lifetime | |
query | |
switch | |
set | |
authentication | |
pamerr2errno_sysuser | Converts error codes from pam lib to errno error codes. |
authenticatecallback_sysuser | Function called back from PAM library during authentication of user. |
#define sysuser_SYS_SERVICE_NAME "passwd"
The name of service used during authentication. The module registers itself to the underlying authentication service provider with this name. The current value uses the same name as the “passwd” service. This value can be overwritten in C-kern/resource/config/modulevalues.
#define sysuser_UNITTEST_USERNAME "guest"
Used in unittest_platform_sysuser to test <switchtoprivilege_sysuser>. This value can be overwritten in C-k ern/resource/config/modulevalues.
#define sysuser_UNITTEST_PASSWORD "GUEST"
Used in unittest_platform_sysuser to test <switchtoprivilege_sysuser>. This value can be overwritten in C-kern/resource/config/modulevalues.
The name of service used during authentication.
#define sysuser_SYS_SERVICE_NAME "passwd"
Used in unittest_platform_sysuser to test switchtoprivilege_sysuser.
#define sysuser_UNITTEST_USERNAME "guest"
Test sysuser_t functionality.
int unittest_platform_sysuser( void )
Used in unittest_platform_sysuser to test switchtoprivilege_sysuser.
#define sysuser_UNITTEST_PASSWORD "GUEST"
Converts error codes from pam lib to errno error codes.
static int pamerr2errno_sysuser( int pamerr )
Function called back from PAM library during authentication of user.
static int authenticatecallback_sysuser( int num_msg, const struct pam_message ** msg, struct pam_response ** resp, void * appdata_ptr )