Radius issues on MAC authentication... please help

I have a RADIUS server that’s meant to go up, but only after being able to do MAC authentication with Mikrotik NAS. I’ve got it working with mySQL, and if both username and password are entered, it works fine, but as soon as i try sending authentication on username with no password (this how mikrotik does MAC authentication, username = MAC, password = (blank)), this error shows in the debug mode radius -X: module “pap” returns invalid for request 0.

Where do i look, coz the encryption scheme has been left out, as i am using freeRADIUS v1.1.4, using auto_header = yes.

Please help, i’ve been going over the config files numerous times without succcess.

Thanks in advance.

Well what does radiusd -X show for this ‘invalid request’?

You more than likely don’t have the correct attributes in the mySQL database.

Removed the “pap” entry from the instantiate section of the radiusd.conf file, and it seems to be working fine now. Not sure why the pap module was complaining when i had the default (its presence in the instantiate section) code used. Would like to know what putting it in the instantiate section does. I read the man page for rlm_pap, but it didnt give me much information. Still using pap to authenticate.