blob: 1fc87d78217bab875baf058c64bed0839c2d70e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
*** pwlib.c Fri Mar 16 14:42:54 2001
--- ../../tac_plus.F5.0.0.alpha/pwlib.c Sat Jan 19 23:22:07 2002
***************
*** 40,45 ****
--- 40,49 ----
#include "ldap.h"
#endif /* LDAP */
+ #ifdef USE_RADIUS
+ #include "radius.h"
+ #endif
+
/* Generic password verification routines for des, file and cleartext
passwords */
***************
*** 166,171 ****
--- 170,189 ----
#ifdef USE_LDAP
case (S_ldap):
if (ldap_verify(name, passwd, file)==1) {
+ data->status = TAC_PLUS_AUTHEN_STATUS_FAIL;
+ return (0);
+ } else {
+ data->status = TAC_PLUS_AUTHEN_STATUS_PASS;
+ }
+ exp_date = NULL;
+ set_expiration_status(exp_date, data);
+ return (data->status == TAC_PLUS_AUTHEN_STATUS_PASS);
+ break;
+ #endif
+
+ #ifdef USE_RADIUS
+ case (S_radius):
+ if (radius_verify(name,passwd,file)==1) {
data->status = TAC_PLUS_AUTHEN_STATUS_FAIL;
return (0);
} else {
|