Skip to content

When using full stops in GssapiNameAttributes mapping, mapping does not work as expected #173

Closed
@spaetow

Description

@spaetow

When using a dot/full-stop (.) in a GssapiNameAttributes mapping, the mapping does not work as expected. Here's a raw json statement of a returned GSSAPI object:

{
  "attributes": {
    "urn:ietf:params:gss:radius-attribute 80": {
      "values": [
        {
          "raw": "SwqZxprjWQEYm2Etthfj6A==", 
          "display": null
        }
      ], 
      "authenticated": true, 
      "complete": true
    }, 
    "urn:ietf:params:gss:radius-attribute 26.25622.139": {
      "values": [
        {
          "raw": "NDE1MmE1YjUtNmQ5Yy01ZDAxLWJhN2YtZGM5NzJjMDUzOTVlQGlkcC50ZXN0LmFzc2VudA==", 
          "display": null
        }
      ], 
      "authenticated": true, 
      "complete": true
    }, 
    "urn:ietf:params:gss:radius-attribute 26.25622.138": {
      "values": [
        {
          "raw": "ZDNmMTk1ZTctYTc2ZS01ZjQ0LThkYjAtYjFlY2NjZmFlMWZhQGlkcC50ZXN0LmFzc2VudA==", 
          "display": null
        }
      ], 
      "authenticated": true, 
      "complete": true
    }, 
    "urn:ietf:params:gss:radius-attribute 26": {
      "values": [
        {
          "raw": "AAAAhxYwAgAqAaQGSFRUUKUkc2VydmljZS5tb29uc2hvdC1wbGF5cGVuLnRpLmphLm5ldA==", 
          "display": null
        }
      ], 
      "authenticated": true, 
      "complete": true
    }, 
    "urn:ietf:params:gss:radius-attribute 79": {
      "values": [
        {
          "raw": "AwYABA==", 
          "display": null
        }
      ], 
      "authenticated": true, 
      "complete": true
    }, 
    "urn:ietf:params:gss:radius-attribute 26.25622.140": {
      "values": [
        {
          "raw": "NDU1ZjdjMWMtMTYxYi01MjkxLThlNzEtODE1NjczNTAxNzNmQGlkcC50ZXN0LmFzc2VudA==", 
          "display": null
        }
      ], 
      "authenticated": true, 
      "complete": true
    }, 
    "local-login-user": {
      "values": [
        {
          "raw": "NDU1ZjdjMWMtMTYxYi01MjkxLThlNzEtODE1NjczNTAxNzNmQGlkcC50ZXN0LmFzc2VudA==", 
          "display": "455f7c1c-161b-5291-8e71-81567350173f@idp.test.assent"
        }
      ], 
      "authenticated": true, 
      "complete": true
    }
  }, 
  "name": ""
}

You can see that the name is "urn:ietf:params:gss:radius-attribute 26.25622.140". This won't map correctly using the following statement:

GssapiNameAttributes REMOTE_USER_4 urn:ietf:params:gss:radius-attribute 26.25622.140

It should. Can we consider a guidance as to how spaces and full-stops are handled? Unfortunately in this instance, such sub-types exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions