Subversion Repositories ALCASAR

Rev

Rev 2618 | Rev 2704 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2618 Rev 2701
Line 18... Line 18...
18
		max_pps = 0
18
		max_pps = 0
19
	}
19
	}
20
}
20
}
21
 
21
 
22
authorize {
22
authorize {
-
 
23
	ldap { fail = 1 }
-
 
24
	if ((ok || updated) && User-Password) {
23
	sql {
25
		update control {
24
		notfound = 1
26
			Auth-Type := LDAP
-
 
27
		}
25
	}
28
	}
-
 
29
 
26
	if (notfound) {
30
	sql { notfound = 1 }
-
 
31
	if ((notfound) && (!control:Auth-Type)) {
27
		update reply {
32
		update reply {
28
			Reply-Message := "Username not found"
33
			Reply-Message := "Username not found"
29
		}
34
		}
30
		reject
35
		reject
31
	}
36
	}
Line 96... Line 101...
96
		}
101
		}
97
		userlock
102
		userlock
98
	}
103
	}
99
 
104
 
100
	pap
105
	pap
101
 
-
 
102
	ldap {
-
 
103
		fail = 1
-
 
104
	}
-
 
105
	if ((ok || updated) && User-Password) {
-
 
106
		update control {
-
 
107
			Auth-Type := ldap
-
 
108
		}
-
 
109
	}
-
 
110
}
106
}
111
 
-
 
112
authenticate {
107
authenticate {
113
	Auth-Type PAP {
108
	Auth-Type PAP {
114
		pap
109
		pap
115
	}
110
	}
116
	Auth-Type LDAP { 
111
	Auth-Type LDAP {
117
		ldap 
112
		ldap
118
    }
113
	}
119
}
114
}
120
 
115
 
121
accounting {
116
accounting {
122
	sql
117
	sql
123
}
118
}