This file is indexed.

/etc/freeradius/3.0/policy.d/dhcp is in freeradius-config 3.0.16+dfsg-1ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#  Assign compatibility data to request for sqlippool
dhcp_sqlippool.post-auth {


	#  Do some minor hacks to the request so that it looks
	#  like a RADIUS request to the SQL IP Pool module.
	update request {
		&User-Name = "DHCP-%{DHCP-Client-Hardware-Address}"
		&Calling-Station-Id = "%{DHCP-Client-Hardware-Address}"
		&NAS-IP-Address = "%{%{DHCP-Gateway-IP-Address}:-127.0.0.1}"
		&Acct-Status-Type = Start
	}

	#  Call the actual module
	dhcp_sqlippool

	#  Convert Framed-IP-Address to DHCP, but only if we
	#  actually allocated an address.
	if (ok) {
		update reply {
			&DHCP-Your-IP-Address = "%{reply:Framed-IP-Address}"
		}
	}
}