Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jun 2003 12:06:11 +0800
From:      Andrew I Baznikin <dikiy@scn.ru>
To:        freebsd-questions@freebsd.org
Subject:   libradius
Message-ID:  <20030602120611.4a9d6868.dikiy@scn.ru>

next in thread | raw e-mail | index | archive | help
Hi!

According to RFC 2865, mandatory attributes in RADIUS request is User-Name and Service-Type.

But in radlib.c exists these lines:

        } else {
                /* Make sure the user gave us a password */
                if (h->pass_pos == 0 && !h->chap_pass) {
                        generr(h, "No User or Chap Password attributes given");
                        return -1;
                }
                if (h->pass_pos != 0 && h->chap_pass) {
                        generr(h, "Both User and Chap Password attributes given"
                        return -1;
                }
        }

I need to send a request with no User-Password field, but I can not do it with libradius.

This shoud be fixed or I need to write my own lib?


-- 
Andrew I Baznikin
http://d.scn.ru

#      /\    ASCII ribbon
#      \/      campaign
#      /\      against
#     /  \    HTML email



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030602120611.4a9d6868.dikiy>