[freeradius] ldap/wifi: on identifie par mac

This commit is contained in:
Daniel STAN 2013-08-25 23:00:49 +02:00
parent 4ff87822c7
commit 1e14765434

View file

@ -49,9 +49,8 @@ ldap {
# Ceci est fait dans le fichier hints par le matching d'une expression régulière, extrait:
#DEFAULT Calling-Station-Id =~ "^(..)-(..)-(..)-(..)-(..)-(..)$"
#Calling-Station-Id := `%%{1}:%%{2}:%%{3}:%%{4}:%%{5}:%%{6}`
# On auth désormais par login=mac OU hostname (sans le .wifi.crans.org)
filter = "(&(macAddress=%%{Calling-Station-Id:-*})(|(macAddress=%%{Stripped-User-Name:-%%{User-Name}})(host=%%{Stripped-User-Name:-%%{User-Name}}.wifi.crans.org)))"
#filter = "(&(macAddress=%%{Stripped-User-Name:-%%{User-Name}})(objectclass=machineWifi))"
# On auth fdésormais par login=mac OU hostname (sans le .wifi.crans.org)
filter = "macAddress=%%{Calling-Station-Id:-*}"
base_filter = "(objectclass=machineWifi)"
# How many connections to keep open to the LDAP server.