userentry.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_USERENTRY_H
#define RUDIMENTS_USERENTRY_H
#include <rudiments/private/userentryincludes.h>
class RUDIMENTS_DLLSPEC userentry {
public:
userentry();
userentry(const userentry &u);
userentry &operator=(const userentry &u);
~userentry();
bool initialize(const char *username);
bool initialize(uid_t userid);
const char *getName() const;
const char *getPassword() const;
uid_t getUserId() const;
const char *getSidString() const;
const void *getSid() const;
uint64_t getSidSize() const;
gid_t getPrimaryGroupId() const;
const char *getRealName() const;
const char *getHomeDirectory() const;
const char *getShell() const;
const char *getEncryptedPassword() const;
long getLastChangeDate() const;
int32_t getDaysBeforeChangeAllowed() const;
int32_t getDaysBeforeChangeRequired() const;
int32_t getDaysBeforeExpirationWarning() const;
int32_t getDaysOfInactivityAllowed() const;
int32_t getExpirationDate() const;
int32_t getFlag() const;
static char *getName(uid_t userid);
static uid_t getUserId(const char *username);
static char *getSidString(const char *username);
static bool platformSupportsFormalSid();
static bool needsMutex();
static void setMutex(threadmutex *mtx);
#include <rudiments/private/userentry.h>
};
#endif
threadmutex
Definition: threadmutex.h:11
userentry
Definition: userentry.h:11
userentry::getSidSize
uint64_t getSidSize() const
userentry::initialize
bool initialize(uid_t userid)
userentry::getUserId
static uid_t getUserId(const char *username)
userentry::getSid
const void * getSid() const
userentry::getUserId
uid_t getUserId() const
userentry::~userentry
~userentry()
userentry::operator=
userentry & operator=(const userentry &u)
userentry::getEncryptedPassword
const char * getEncryptedPassword() const
userentry::getShell
const char * getShell() const
userentry::getName
const char * getName() const
userentry::getHomeDirectory
const char * getHomeDirectory() const
userentry::getPrimaryGroupId
gid_t getPrimaryGroupId() const
userentry::getDaysBeforeExpirationWarning
int32_t getDaysBeforeExpirationWarning() const
userentry::getSidString
const char * getSidString() const
userentry::getRealName
const char * getRealName() const
userentry::getSidString
static char * getSidString(const char *username)
userentry::getExpirationDate
int32_t getExpirationDate() const
userentry::setMutex
static void setMutex(threadmutex *mtx)
userentry::getName
static char * getName(uid_t userid)
userentry::getDaysOfInactivityAllowed
int32_t getDaysOfInactivityAllowed() const
userentry::getLastChangeDate
long getLastChangeDate() const
userentry::platformSupportsFormalSid
static bool platformSupportsFormalSid()
userentry::getDaysBeforeChangeRequired
int32_t getDaysBeforeChangeRequired() const
userentry::userentry
userentry()
userentry::needsMutex
static bool needsMutex()
userentry::initialize
bool initialize(const char *username)
userentry::userentry
userentry(const userentry &u)
userentry::getDaysBeforeChangeAllowed
int32_t getDaysBeforeChangeAllowed() const
userentry::getFlag
int32_t getFlag() const
userentry::getPassword
const char * getPassword() const