#include <dbuser.h>
Static Public Methods | |
LookString | GetCurrentUserName (void) |
Who is the current user? | |
bool | Login (const LookString &theUserName, const LookString &thePassword) |
Login. More... | |
void | SetCurrentUserName (void) |
Find out who is the current user. More... | |
Static Protected Attributes | |
LookString | itsCurrentUserName |
This knows the current user name and can also login (suid) under unix.
I'm not sure that the login is terribly useful at the moment - you don't need to use it.
|
Login. Under Win32 this does nothing except set itsCurrentUserName. Under unix it tries to do a setuid with password checking via getpwnam and crypt. You don't need to use this under unix - you can use SetCurrentUserName if you're already logged.
|
|
Find out who is the current user. Works out the current user via geteuid and getpwuid. |