Hi Everyone,

I've setup freeradius 0.7.1 on an OpenBSD 3.2 machine for use in my QA
environment. My goal right now is to test a simple challenge response 
scheme, although later I'll be extending it to testing more complex 
situations.

My problem right now is that I'm unable to figure out how to change
the type of packet that I send in response. I have a simple case right
now which works (IE, login as user python, and it runs the script to
verify the user,) but I can't figure out how to return an Access-Challenge
packet instead of an Access-Accept packet.

Here's my (very basic) authorize function so far:

def authorize(p):
  return (radiusd.RLM_MODULE_UPDATED,
    (('Reply-Message', 'What color is the sky?'),),
    (('Auth-Type', 'python'),))  

This returns an Access-Accept packet, but I can't figure out how to return
Access-Challenge instead. I've tried adding a tuple of the form
('Packet-Type', 'Access-Challenge') to both the config tuple and the reply
tuple, but no luck in either case. None of the radiusd.RLM_MODULE_* values
seem to be correct either. I do see the Reply-Message in the response, so
I know the correct function is executing.

Thanks in advance for any help.

-- 
Zach White <[EMAIL PROTECTED]>
Sr. System Administrator - SafeWeb, Inc. - http://www.safeweb.com

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to