Subversion Repositories ALCASAR

Rev

Rev 2701 | Rev 2706 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 2701 Rev 2704
Line 18... Line 18...
18
		max_pps = 0
18
		max_pps = 0
19
	}
19
	}
20
}
20
}
21
 
21
 
22
authorize {
22
authorize {
-
 
23
#	if (!(&User-Name =~ /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/)) {
-
 
24
	if ((!&Calling-Station-Id) || (&User-Name != &Calling-Station-Id) || (!&User-Password) || (&User-Password != "password")) { # no LDAP query for @MAC
23
	ldap { fail = 1 }
25
		ldap { fail = 1 }
24
	if ((ok || updated) && User-Password) {
26
		if ((ok || updated) && User-Password) {
25
		update control {
27
			update control {
26
			Auth-Type := LDAP
28
				Auth-Type := LDAP
-
 
29
			}
27
		}
30
		}
28
	}
31
	}
29
 
32
 
30
	sql { notfound = 1 }
33
	sql { notfound = 1 }
31
	if ((notfound) && (!control:Auth-Type)) {
34
	if ((notfound) && (!control:Auth-Type)) {