Rudiments
userentry.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_USERENTRY_H
5#define RUDIMENTS_USERENTRY_H
6
7#include <rudiments/private/userentryincludes.h>
8
11class RUDIMENTS_DLLSPEC userentry : public object {
12 public:
13
16
19
22 bool open(const char *username);
23
26 bool open(uid_t userid);
27
29 const char *getName();
30
32 const char *getPassword();
33
44 uid_t getUserId();
45
53 const char *getSidString();
54
62 const void *getSid();
63
67
70
72 const char *getRealName();
73
75 const char *getHomeDirectory();
76
78 const char *getShell();
79
81 const char *getEncryptedPassword();
82
87
91
95
99
103
107
110
111
120 static char *getName(uid_t userid);
121
128 static uid_t getUserId(const char *username);
129
140 static char *getSidString(const char *username);
141
147 static bool supportsFormalSid();
148
151 static bool getNeedsMutex();
152
156 static void setMutex(threadmutex *mtx);
157
158 #include <rudiments/private/userentry.h>
159};
160
161#endif
Definition avltree.h:11
Definition object.h:10
Definition threadmutex.h:11
Definition userentry.h:11
const char * getShell()
static uid_t getUserId(const char *username)
int32_t getDaysBeforeChangeAllowed()
int32_t getDaysOfInactivityAllowed()
int32_t getExpirationDate()
const char * getName()
const char * getSidString()
static bool supportsFormalSid()
int32_t getDaysBeforeChangeRequired()
static bool getNeedsMutex()
const char * getEncryptedPassword()
const char * getRealName()
bool open(uid_t userid)
uid_t getUserId()
int32_t getDaysBeforeExpirationWarning()
const char * getPassword()
uint64_t getSidSize()
const void * getSid()
bool open(const char *username)
static void setMutex(threadmutex *mtx)
long getLastChangeDate()
static char * getName(uid_t userid)
static char * getSidString(const char *username)
const char * getHomeDirectory()
gid_t getPrimaryGroupId()
int32_t getFlag()