JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for MOONSHOT-COMMUNITY Archives


MOONSHOT-COMMUNITY Archives

MOONSHOT-COMMUNITY Archives


MOONSHOT-COMMUNITY@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

MOONSHOT-COMMUNITY Home

MOONSHOT-COMMUNITY Home

MOONSHOT-COMMUNITY  July 2013

MOONSHOT-COMMUNITY July 2013

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: gss-server not talking to freeradius?

From:

Mark Cairney <[log in to unmask]>

Reply-To:

Mark Cairney <[log in to unmask]>

Date:

Tue, 9 Jul 2013 11:40:10 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (176 lines)

Hi,

/etc/radsec.conf contains:

realm gss-eap {
     type = "UDP"
     timeout = 5
     retries = 3
     server {
         hostname = "localhost"
         service = "1812"
         secret = "testing123"
     }
}

I've tried the following for hostname (restarting freeradius and 
gss-server each time) with no difference in behaviour:

moonshot-test.is.ed.ac.uk
127.0.0.1

Finally iptables isn't running on the box at the moment which I think 
(hope?) rules out the possibility of it being a firewall issue ;-)

Finally just to make sure that radiusd is indeed working and listening 
as it claims I tried telnetting to port 1812 first (connection refused) 
but having done a little bit of reading I should be using radtest/radclient.

I've just installed freeradius-utils and tried the following:

[root@moonshot-test ~]# radtest steve testing localhost 10 testing123
Sending Access-Request of id 56 to 127.0.0.1 port 1812
	User-Name = "steve"
	User-Password = "testing"
	NAS-IP-Address = 129.215.17.225
	NAS-Port = 10
	Message-Authenticator = 0x00000000000000000000000000000000
rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=56, 
length=679
	SAML-AAA-Assertion = "<saml:Assertion 
xmlns:saml=\"urn:oasis:names:tc:SAML:2.0:assertion\" 
IssueInstant=\"2011-03-19T08:30:00Z\" ID=\"foo\" Version=\"2.0\">"
	SAML-AAA-Assertion = 
"<saml:Issuer>urn:mace:incommon:osu.edu</saml:Issuer><saml:AttributeStatement>"
	SAML-AAA-Assertion = "<saml:Attribute 
NameFormat=\"urn:oasis:names:tc:SAML:2.0:attrname-format:uri\" 
Name=\"urn:oid:1.3.6.1.4.1.5923.1.1.1.6\"><saml:AttributeValue>steve@local</saml:AttributeValue></saml:Attribute>"
	SAML-AAA-Assertion = "<saml:Attribute 
NameFormat=\"urn:oasis:names:tc:SAML:2.0:attrname-format:uri\" 
Name=\"urn:oid:1.3.6.1.4.1.5923.1.1.1.7\"><saml:AttributeValue>moonshot</saml:AttributeValue></saml:Attribute>"
	SAML-AAA-Assertion = "</saml:AttributeStatement></saml:Assertion>"


So going direct to radius appears to work but gss-server doesn't want to 
relay through radiusd? Any ideas?



On 09/07/13 11:12, Stefan Paetow wrote:
> Hi Mark,
>
> What does your /etc/radsec.conf file look like?
>
> It should contain this:
>
> realm gss-eap {
>      type = "UDP"
>      timeout = 5
>      retries = 3
>      server {
>          hostname = "freeradius host name" (can be 127.0.0.1)
>          service = "1812"
>          secret = " radius secret"
>      }
> }
>
> Also, check that on CentOS, the firewall has ports 1812-1814 open. :-)
>
> Stefan
>
>
>> -----Original Message-----
>> From: Moonshot community list [mailto:MOONSHOT-
>> [log in to unmask]] On Behalf Of Mark Cairney
>> Sent: 09 July 2013 11:09
>> To: [log in to unmask]
>> Subject: gss-server not talking to freeradius?
>>
>> Hi,
>>
>> I've been following the new instructions on how to set up a test
>> service on Centos. I'm using standard Centos 6.4 and as far as I can
>> tell have followed the instructions detailed on the wiki[1] to the
>> letter but it doesn't appear to work.
>>
>> radiusd appears to start up OK (I've included the output of it running
>> in debug as an attachment) but gss-server doesn't appear to want to
>> talk to it at all. I'm running the command:
>>
>> gss-server -verbose -logfile /tmp/gss-server.log host@moonshot-
>> test.is.ed.ac.uk & to initiate the gss-server
>>
>> I then run:
>>
>> gss-client -mech "{1.3.6.1.5.5.15.1.1.18 }" 127.0.0.1 host@moonshot-
>> test.is.ed.ac.uk bar
>>
>> This generates the following output:
>> Sending init_sec_context token (size=53)...continue needed...
>> CTRL-EVENT-EAP-STARTED EAP authentication started Sending
>> init_sec_context token (size=29)...continue needed...
>> GSS-API error initializing context: Unspecified GSS failure.  Minor
>> code may provide more information GSS-API error initializing context:
>> Generic RADIUS failure
>>
>> The output of /tmp/gss-server.log is:
>>
>> tail /tmp/gss-server.log
>> 73 68 6f 74 2d 74 65 73 74 2e 69 73 2e 65 64 2e
>> 61 63 2e 75 6b 80 00 00 05 00 00 00 05 01 00 00
>> 05 01
>> continue needed...
>> Received token (size=29):
>> 60 1b 06 09 2b 06 01 05 05 0f 01 01 12 06 01 80
>> 00 00 04 00 00 00 06 02 00 00 06 01 40
>> Sending accept_sec_context token (size=31):
>> 60 1d 06 09 2b 06 01 05 05 0f 01 01 12 06 02 80
>> 00 00 01 00 00 00 08 00 0d 00 00 00 00 00 10
>>
>> Running either gss-server or gss-client results in no additional output
>> to radiusd beyond that which I've attached which makes me think that it
>> isn't talking to radius at all but I've no idea why.
>>
>> I should add that I have set GSSAPIStrictAcceptorCheck to no in
>> /etc/ssh/sshd_config.
>>
>>
>> [1]https://community.ja.net/groups/moonshot/wiki/getting-started-
>> moonshot-creating-centos-6-environment
>>
>>
>>
>> --
>> /****************************
>>
>> Mark Cairney
>> ITI UNIX Section
>> Information Services
>> University of Edinburgh
>>
>> Tel: 0131 650 6565
>> Email: [log in to unmask]
>>
>> *******************************/
>>
>> The University of Edinburgh is a charitable body, registered in
>> Scotland, with registration number SC005336.
>
>

-- 
/****************************

Mark Cairney
ITI UNIX Section
Information Services
University of Edinburgh

Tel: 0131 650 6565
Email: [log in to unmask]

*******************************/

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2022
December 2021
October 2021
September 2021
August 2021
June 2021
April 2021
February 2021
January 2021
December 2020
November 2020
October 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
January 2020
November 2019
October 2019
September 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
June 2018
April 2018
November 2017
October 2017
September 2017
August 2017
July 2017
May 2017
April 2017
March 2017
February 2017
November 2016
October 2016
August 2016
July 2016
June 2016
May 2016
March 2016
February 2016
January 2016
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager