1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
class KRB5NegotiateAuth |
4
|
|
|
{ |
5
|
|
|
/** |
6
|
|
|
* @param string $keytab |
7
|
|
|
* @param string $spn |
8
|
|
|
*/ |
9
|
|
|
public function __construct($keytab, $spn) |
|
|
|
|
10
|
|
|
{ |
11
|
|
|
} |
12
|
|
|
|
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* @return bool |
16
|
|
|
*/ |
17
|
|
|
public function doAuthentication() |
18
|
|
|
{ |
19
|
|
|
} |
20
|
|
|
|
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @return string |
24
|
|
|
*/ |
25
|
|
|
public function getAuthenticatedUser() |
26
|
|
|
{ |
27
|
|
|
} |
28
|
|
|
|
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* @param KRB5CCache $ccache |
32
|
|
|
* @return void |
33
|
|
|
*/ |
34
|
|
|
public function getDelegatedCredentials(KRB5CCache $ccache) |
|
|
|
|
35
|
|
|
{ |
36
|
|
|
} |
37
|
|
|
} |
38
|
|
|
|
39
|
|
|
|
40
|
|
|
class KRB5CCache |
41
|
|
|
{ |
42
|
|
|
/** |
43
|
|
|
* |
44
|
|
|
*/ |
45
|
|
|
public function __construct() |
46
|
|
|
{ |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @return string |
52
|
|
|
*/ |
53
|
|
|
public function getName() |
54
|
|
|
{ |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @param string $src |
60
|
|
|
* @return bool |
61
|
|
|
*/ |
62
|
|
|
public function open($src) |
|
|
|
|
63
|
|
|
{ |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* @param string $dest |
69
|
|
|
* @return bool |
70
|
|
|
*/ |
71
|
|
|
public function save($dest) |
|
|
|
|
72
|
|
|
{ |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* @param string $principal |
78
|
|
|
* @param string $pass |
79
|
|
|
* @param array|null $options |
80
|
|
|
* @return bool |
81
|
|
|
*/ |
82
|
|
|
public function initPassword($principal, $pass, $options = null) |
|
|
|
|
83
|
|
|
{ |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @param string $principal |
89
|
|
|
* @param string $keytab_file |
90
|
|
|
* @param array|null $options |
91
|
|
|
* @return bool |
92
|
|
|
*/ |
93
|
|
|
public function initKeytab($principal, $keytab_file, $options = null) |
|
|
|
|
94
|
|
|
{ |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @return string |
100
|
|
|
*/ |
101
|
|
|
public function getPrincipal() |
102
|
|
|
{ |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @return string |
108
|
|
|
*/ |
109
|
|
|
public function getRealm() |
110
|
|
|
{ |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* @return array |
116
|
|
|
*/ |
117
|
|
|
public function getLifetime() |
118
|
|
|
{ |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
|
122
|
|
|
/** |
123
|
|
|
* @return array |
124
|
|
|
*/ |
125
|
|
|
public function getEntries() |
126
|
|
|
{ |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @param int $timeRemain |
132
|
|
|
* @return bool |
133
|
|
|
*/ |
134
|
|
|
public function isValid($timeRemain = 0) |
|
|
|
|
135
|
|
|
{ |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
|
139
|
|
|
/** |
140
|
|
|
* @param string|null $prefix |
141
|
|
|
* @return array |
142
|
|
|
*/ |
143
|
|
|
public function getTktAttrs($prefix = null) |
|
|
|
|
144
|
|
|
{ |
145
|
|
|
} |
146
|
|
|
|
147
|
|
|
|
148
|
|
|
/** |
149
|
|
|
* @return bool |
150
|
|
|
*/ |
151
|
|
|
public function renew() |
152
|
|
|
{ |
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
|
156
|
|
|
/** |
157
|
|
|
* @param string $principal |
158
|
|
|
* @param string $oldpass |
159
|
|
|
* @param string $newpass |
160
|
|
|
* @return bool |
161
|
|
|
*/ |
162
|
|
|
public function changePassword($principal, $oldpass, $newpass) |
|
|
|
|
163
|
|
|
{ |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* @return array |
169
|
|
|
*/ |
170
|
|
|
public function getExpirationTime() |
171
|
|
|
{ |
172
|
|
|
} |
173
|
|
|
} |
174
|
|
|
|
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.