Giter Site home page Giter Site logo

Comments (8)

ljudva avatar ljudva commented on May 10, 2024 1

Indeed, that is a possibility.
Yes, I've seen your repos. Would be great to have you on board for http://jam-py.com project. It is way more sophisticated than web2py appadmin from Massimo Di Pierro.
Grazie

from ansible-shibboleth-idp-sp-debian.

peppelinux avatar peppelinux commented on May 10, 2024

The port :4443 would be the problem, see /etc/shibboleth/shibboleth.xml, the entity id used for the idp it's there. Does it have that port in it?

I put a troubleshooting with these elements, see:
https://github.com/peppelinux/Ansible-Shibboleth-IDP-SP-Debian#fatalprofileexception-sp

from ansible-shibboleth-idp-sp-debian.

ljudva avatar ljudva commented on May 10, 2024

Updated the above, not sure if you've seen it...
/etc/shibboleth/shibboleth2.xml: entityID="https://idp.testunical.it:4443/idp/shibboleth">

This works now though:

https://idp.testunical.it:4443/idp/profile/admin/resolvertest?requester=https://sp.testunical.it:4443/shibboleth&principal=gino

{
"requester": "https://sp.testunical.it:4443/shibboleth",
"principal": "gino",
"attributes": [


  {
    "name": "givenName",
    "values": [
        "gino"
    ]
  },
  

  {
    "name": "schacHomeOrganizationType",
    "values": [
        "urn:schac:homeOrganizationType:eu:higherEducationalInstitution"
    ]
  },
  

  {
    "name": "schacPersonalUniqueID",
    "values": [
        "urn:schac:personalUniqueID:it:CF:CODICEFISCALEgino"
    ]
  },
  

  {
    "name": "eduPersonAffiliation",
    "values": [
        "affiliate"
    ]
  },
  

  {
    "name": "eduPersonEntitlement",
    "values": [
        "urn:mace:dir:entitlement:common-lib-terms"
    ]
  },
  

  {
    "name": "email",
    "values": [
        "[email protected]"
    ]
  },
  

  {
    "name": "sn",
    "values": [
        "rossi"
    ]
  },
  

  {
    "name": "title",
    "values": [
        "ospite"
    ]
  },
  

  {
    "name": "schacPersonalUniqueCode",
    "values": [
        "urn:schac:personalUniqueCode:it:testunical.it:dipendente:15432",
        "urn:schac:personalUniqueCode:it:testunical.it:studente:126145"
    ]
  },
  

  {
    "name": "mail",
    "values": [
        "[email protected]"
    ]
  },
  

  {
    "name": "eduPersonScopedAffiliation",
    "values": [
        "[email protected]",
        "[email protected]"
    ]
  },
  

  {
    "name": "uid",
    "values": [
        "gino"
    ]
  },
  

  {
    "name": "eduPersonPrincipalName",
    "values": [
        "[email protected]"
    ]
  },
  

  {
    "name": "displayName",
    "values": [
        "rossi gino"
    ]
  },
  

  {
    "name": "schacHomeOrganization",
    "values": [
        "testunical.it"
    ]
  },
  

  {
    "name": "cn",
    "values": [
        "gino rossi"
    ]
  }
  

]
}

This is also working:

debian:/opt/shibboleth-idp/conf# /opt/shibboleth-idp/bin/aacli.sh -n gino -r https://sp.testunical.it:4443/shibboleth --saml2 -u http://localhost:8080/idp

I suspect it is SP:

This service requires information about you that your identity provider did not release. To gain access to this service, your identity provider must release the required information.
 You were trying to access the following URL:

    https://sp.testunical.it:4443/secure/index.php

hmmm....

from ansible-shibboleth-idp-sp-debian.

peppelinux avatar peppelinux commented on May 10, 2024

Yes, It seems to be sp's attrchecker.
Is there some custom specification in sp configuration regarding the required attributes?

from ansible-shibboleth-idp-sp-debian.

ljudva avatar ljudva commented on May 10, 2024

Thanks for reply.

I did try to add into attribute-filter-local... as you did, but does not make any difference.

Would it help if I send you the VM image? Basically I replaced everything with xxx.it:4443, that's all. And obviously did set Port Forwarding on VirtualBox to host 4443 and guest 443.
Also touched /etc/hosts to reflect 127.0.0.1 for everything.

Cheers

from ansible-shibboleth-idp-sp-debian.

peppelinux avatar peppelinux commented on May 10, 2024

I think that you should use samltracer and sniff the saml2 assertions, you should see those release to sp.

That's the place where we filter attributes to SPs:
https://github.com/peppelinux/Ansible-Shibboleth-IDP-SP-Debian/blob/master/roles/shib4idp_configure/templates/attribute-filter-local.xml#L10

please share your playbook.yml for acknoledgement.
Remember to restart shibboleth-idp (or single service) everytime you make modifications to its configuration files.
If you need a working image you just have to use the playbook without any changements

from ansible-shibboleth-idp-sp-debian.

ljudva avatar ljudva commented on May 10, 2024

Cool thanks. Did not change playbook tho. Just IP's

Clean VM will not work over VB port forwarding, thats the problem. I think you and me are the only one on the Planet with a knowledge to provide VB image for the developers :)
Django/Flask/Jam.py devs at my Uni need it for research.

from ansible-shibboleth-idp-sp-debian.

peppelinux avatar peppelinux commented on May 10, 2024

could you use VB bridged interface?
This would avois DNAT and port forwariding. I still didn't understand the problem but hope to gve you the needed help
I am also a django/python programmer, you're welcome

from ansible-shibboleth-idp-sp-debian.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.