Bug 46555 - enhancements for libradius
Summary: enhancements for libradius
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 4.7-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: ru
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-27 08:20 UTC by Michael Bretterklieber
Modified: 2004-04-27 16:01 UTC (History)
0 users

See Also:


Attachments
radlib.diff (4.32 KB, patch)
2002-12-27 08:20 UTC, Michael Bretterklieber
no flags Details | Diff
radlib_vs.c (3.22 KB, text/plain)
2002-12-27 08:20 UTC, Michael Bretterklieber
no flags Details
libradius.diff (6.46 KB, patch)
2003-01-04 22:32 UTC, Michael Bretterklieber
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Bretterklieber 2002-12-27 08:20:02 UTC
I made the radius integration for mpd. During this work I missed some functions in libradius.
I attached patches for libradius for adding this missing functions, here is a short changelog:

- added rad_demangle for demangling user-passwords (needed for MS-CHAPv1 MPPE-keys).
- added rad_demangle_mppe_key for demangling mppe-keys (needed for MS-CHAPv2 MPPE-keys).
- added some typecasts to avoid compilation warnings

The code for the rad_demangle_mppe_key function was taken from userland ppp.

I hope that someone with enough karma (=someone who has the permission to commit this) can make a short review and then commit this code.

Fix: 

not available
How-To-Repeat: 	not available
Comment 1 Michael Bretterklieber 2002-12-27 08:20:52 UTC
and here are the patches

-- 
------------------------------- ----------------------------------
Michael Bretterklieber        - Michael.Bretterklieber@jawa.at   
JAWA Management Software GmbH - http://www.jawa.at
Liebenauer Hauptstr. 200        -------------- privat ------------
A-8041 GRAZ                     GSM: ++43-(0)676-93 96 698       
Tel: ++43-(0)316-403274-12      E-mail:   mbretter@inode.at
Fax: ++43-(0)316-403274-10      http://www.bretterklieber.com
------------------------------- ----------------------------------
"...the number of UNIX installations has grown to 10, with more 
expected..." - Dennis Ritchie and Ken Thompson, June 1972
Comment 2 Michael Bretterklieber 2003-01-04 22:32:41 UTC
Hi,

I revised the patches and resolved also a minor issue:
- if the programmer has not called rad_create_request() but rad_put_*, 
then a weird error message was returned.

bye,
-- 
------------------------------- -------------------------------------
Michael Bretterklieber        - Michael.Bretterklieber@jawa.at
JAWA Management Software GmbH - http://www.jawa.at
Liebenauer Hauptstr. 200        -------------- privat ---------------
A-8041 GRAZ                     GSM: ++43-(0)676-93 96 698
Tel: ++43-(0)316-403274-12      E-mail:   michael@bretterklieber.com
Fax: ++43-(0)316-403274-10      http://www.bretterklieber.com
------------------------------- -------------------------------------
"...the number of UNIX installations has grown to 10, with more
expected..." - Dennis Ritchie and Ken Thompson, June 1972
Comment 3 ru freebsd_committer freebsd_triage 2004-04-27 16:00:35 UTC
State Changed
From-To: open->closed

An updated patch from Michael has been committed to 5.2-CURRENT. 


Comment 4 ru freebsd_committer freebsd_triage 2004-04-27 16:00:35 UTC
Responsible Changed
From-To: freebsd-bugs->ru