How to use Autz-Type?

Fajar A. Nugraha fajar at fajar.net
Mon Mar 30 12:26:30 CEST 2009


Hi,

I'm using freeradius 2.1.3 (self-compiled as RPM), and trying to use
Autz-Type. I see example from
/usr/share/doc/freeradius-2.1.3/Autz-Type:

#==================
authorize{
	preprocess
	suffix
	Autz-Type customer1{
		ldap1
	}
	Autz-Type customer2{
		ldap2
	}
	files
}

users file-------------------

DEFAULT Realm == "customer1", Autz-Type := customer1, Auth-Type := customer1

DEFAULT Realm == "customer2", Autz-Type := customer2, Auth-Type := customer2

----------------------------
#==================


So in /etc/raddb/sites-available/default I have this (only authorize
section shown):
#==================
authorize {
        preprocess
        suffix
        Autz-Type DOM1 {
                sql1
        }
        Autz-Type DOM2 {
                sql2
        }
        files
}
#==================

and on /etc/raddb/users I have this:
#==================
DEFAULT Realm == "domain1.com", Autz-Type := DOM1, Auth-Type := DOM1
DEFAULT Realm == "domain2.com", Autz-Type := DOM2, Auth-Type := DOM2
#==================

but on starting freeradius I got this (full output on
http://pastebin.com/f7ab657ef)

 Module: Instantiating files
  files {
	usersfile = "/etc/raddb/users"
	acctusersfile = "/etc/raddb/acct_users"
	compat = "no"
  }
/etc/raddb/users[2]: Parse error (check) for entry DEFAULT: Unknown
value DOM1 for attribute Autz-Type
Errors reading /etc/raddb/users
/etc/raddb/modules/files[7]: Instantiation failed for module "files"

Did I miss something?

Regards,

Fajar



More information about the Freeradius-Users mailing list