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  June 2013

MOONSHOT-COMMUNITY June 2013

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: SSH and authorization

From:

Alejandro Perez Mendez <[log in to unmask]>

Reply-To:

Alejandro Perez Mendez <[log in to unmask]>

Date:

Thu, 13 Jun 2013 17:05:43 +0200

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (59 lines)

> Ola Alejandro,
>
> You can amend your FreeRADIUS configuration post-auth section with the following change if you want:
>
> if ( ("%{request:X-Ascend-FR-DCE-N393}") || ("%{request:GSS-Acceptor-Service-Name}") ) {
> 	update reply {
> 		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-AAA-Assertion += '<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-AAA-Assertion += "<saml:AttributeValue>[log in to unmask]</saml:AttributeValue>"
> 		SAML-AAA-Assertion += '</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-AAA-Assertion += "<saml:AttributeValue>guest</saml:AttributeValue>"
> 		SAML-AAA-Assertion += '</saml:Attribute>'
> 		SAML-AAA-Assertion += '</saml:AttributeStatement>'
> 		SAML-AAA-Assertion += '</saml:Assertion>'
> 	}
> }
>
> The difference here is that ONLY if the request to the FreeRADIUS server contains the attribute "X-Ascend-FR-DCE-N393" or "GSS-Acceptor-Service-Name" (both map to the same ID, although the latter is correct, and the Moonshot mechanism always sends it), will the Access-Accept reply contain the SAML assertion. So if a normal eduroam request comes in, this portion is not sent back. As far as I know, both attributes should be filtered out by the attr_filter.post-proxy anyway (they are not on the list of 'approved' eduroam attributes).
Hi Stefan,

thanks for the answer. Actually, attribute filtering was my motivation. 
In the tests I've been doing so far, SAML-AAA-Assertion was being 
filtered. That's why I was looking for a non-SAML alternative, based 
just in RADIUS outcome.

Regards,
Alejandro


> This little bit of functionality works on any version of FreeRADIUS (regardless of whether it has RADSEC and trust_router support or not).
>
> With Regards
>
> Stefan
>
>
> -----Original Message-----
> From: Moonshot community list [mailto:[log in to unmask]] On Behalf Of Alejandro Perez Mendez
> Sent: 13 June 2013 10:45
> To: [log in to unmask]
> Subject: SSH and authorization
>
> Hello,
>
> I have some doubts related on how the Moonshot's SSH server is managing authorization. I will use the term username to refer to the identifier in .gss_eap_id (e.g. [log in to unmask]), while I will use the term account to the refer to the account in the SSH server  (i.e. alex@sshserver).
>
> On my first tries, gss_userok failed no matter which username/account combination I tried. I even created the [log in to unmask] account in the server machine, with no luck.
>
> Digging into the mailing list archive, I read about the <Attribute name="urn:oid:1.3.6.1.4.1.5923.1.1.1.7" id="local-login-user"/> option in attribute-map.xml file. That made the trick. Now gss_userok succeed when the account name matched the attribute
> urn:oid:1.3.6.1.4.1.5923.1.1.1.7 included in the SAML Asssertion from the server.
>
> Now, my question is: how can I map the local-login-user attribute to the User-Name attribute from the Access-Accept? Moreover, can I make that map to be hard-coded in the SSH server, in such a way that it does not matter who you are, you will be ending up in the guest@server account. I need these options for the situations where the AAA server is not sending a SAML Assertion (e.g. eduroam AAA server with no moonshot support).
>
> Best regards,
> Alejandro

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

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