-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EAP Support #75
Open
martin-belanger
wants to merge
14
commits into
FreeRADIUS:master
Choose a base branch
from
martin-belanger:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
EAP Support #75
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
24f854d
When printing strings that contain non-printable characters, run for …
martin-belanger 6054229
Handle Access-Challenge responses and add Message-Authenticator attri…
martin-belanger 92b0440
Making nettle library mandatory
martin-belanger 663e2b2
a little bit of clean up
martin-belanger e2b3944
Adding test script to test EAP messages
martin-belanger 14a78d2
Adding test script to test EAP messages
martin-belanger e391813
Adding these auto-generated files. They are needed by configure.
martin-belanger 0b8be83
Merge pull request #1 from martin-belanger/EAP-support
martin-belanger 8212b66
Adding license full text
martin-belanger 7703b9d
Making nettle-dev mandatory
martin-belanger a6edf27
Merge pull request #2 from martin-belanger/EAP-support
martin-belanger 41a8887
Making nettle optional (again)
martin-belanger 20681da
Merge pull request #3 from martin-belanger/EAP-support
martin-belanger c7d22f5
clean up. Wrote my own HMAC MD5 algorithm to eliminate the 4-clause B…
martin-belanger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#!/bin/sh | ||
|
||
# Copyright (C) 2016 Martin Belanger | ||
# | ||
# License: BSD | ||
|
||
srcdir="${srcdir:-.}" | ||
|
||
echo "***********************************************" | ||
echo "This test will use a radius server on localhost" | ||
echo "and which can be executed with run-server.sh " | ||
echo "The test sends a basic EAP message and expects " | ||
echo "an Acess-Challenge response. The test does not " | ||
echo "go beyond this point as there is no real EAP " | ||
echo "service capable of handling a full EAP request " | ||
echo "***********************************************" | ||
|
||
TMPFILE=tmp$$.out | ||
|
||
if test -z "$SERVER_IP";then | ||
echo "the variable SERVER_IP is not defined" | ||
exit 77 | ||
fi | ||
|
||
sed 's/localhost/'$SERVER_IP'/g' <$srcdir/radiusclient.conf >radiusclient-temp.conf | ||
sed 's/localhost/'$SERVER_IP'/g' <$srcdir/servers >servers-temp | ||
|
||
|
||
# NOTE: The string 2:0:0:9:1:74:65:73:74 is equivalent to defining a C array as | ||
# follows: | ||
# uint8_t eap_msg[] = { 2, 0, 0, 9, 1, 't', 'e', 's', 't' }; | ||
# | ||
# which corresponds to this EAP message: | ||
# Code = 2 (8-bit) -> 2 for Response | ||
# Identifier = 0 (8-bit) | ||
# Length = 9 (16-bit) | ||
# Type = 1 (8-bit) -> 1 for Identity | ||
# Data = "test" (string) | ||
|
||
../src/radiusclient -f radiusclient-temp.conf -e 2:0:0:9:1:74:65:73:74 User-Name=test Password=test >$TMPFILE | ||
if test $? != 0;then | ||
echo "Error in PAP auth" | ||
exit 1 | ||
fi | ||
|
||
grep "^EAP-Message = " $TMPFILE >/dev/null 2>&1 | ||
if test $? != 0;then | ||
echo "Error in data received by server (EAP-Message)" | ||
cat $TMPFILE | ||
exit 1 | ||
fi | ||
|
||
grep "^Message-Authenticator =" $TMPFILE >/dev/null 2>&1 | ||
if test $? != 0;then | ||
echo "Error in data received by server (Message-Authenticator)" | ||
cat $TMPFILE | ||
exit 1 | ||
fi | ||
|
||
grep "^State =" $TMPFILE >/dev/null 2>&1 | ||
if test $? != 0;then | ||
echo "Error in data received by server (State)" | ||
cat $TMPFILE | ||
exit 1 | ||
fi | ||
|
||
rm -f servers-temp | ||
#cat $TMPFILE | ||
rm -f $TMPFILE | ||
rm -f radiusclient-temp.conf | ||
|
||
exit 0 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be best to put the full license text here.