Rudiments
include
rudiments
userentry.h
1
// Copyright (c) 2002-2014 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
11
class
RUDIMENTS_DLLSPEC
userentry
{
12
public
:
13
15
userentry
();
16
19
userentry
(
const
userentry
&u);
20
23
userentry
&operator=(
const
userentry
&u);
24
26
~
userentry
();
27
30
bool
initialize(
const
char
*username);
31
34
bool
initialize(uid_t userid);
35
37
const
char
*getName()
const
;
38
40
const
char
*getPassword()
const
;
41
52
uid_t getUserId()
const
;
53
61
const
char
*getSidString()
const
;
62
70
const
void
*getSid()
const
;
71
74
uint64_t getSidSize()
const
;
75
77
gid_t getPrimaryGroupId()
const
;
78
80
const
char
*getRealName()
const
;
81
83
const
char
*getHomeDirectory()
const
;
84
86
const
char
*getShell()
const
;
87
89
const
char
*getEncryptedPassword()
const
;
90
94
long
getLastChangeDate()
const
;
95
98
int32_t getDaysBeforeChangeAllowed()
const
;
99
102
int32_t getDaysBeforeChangeRequired()
const
;
103
106
int32_t getDaysBeforeExpirationWarning()
const
;
107
110
int32_t getDaysOfInactivityAllowed()
const
;
111
114
int32_t getExpirationDate()
const
;
115
117
int32_t getFlag()
const
;
118
119
128
static
char
*getName(uid_t userid);
129
136
static
uid_t getUserId(
const
char
*username);
137
148
static
char
*getSidString(
const
char
*username);
149
155
static
bool
platformSupportsFormalSid();
156
159
static
bool
needsMutex();
160
164
static
void
setMutex(
threadmutex
*mtx);
165
166
#include <rudiments/private/userentry.h>
167
};
168
169
#endif
threadmutex
Definition:
threadmutex.h:11
userentry
Definition:
userentry.h:11
Generated on Tue Sep 11 2018 11:36:51 for Rudiments by
1.8.13