rohe / freeradius_pysaml2

A python module you can use to allow a freeradius server to fetch information about a user from a SAML2 Attribute Authority (AA) or Identity Provider (IdP).
2 stars 2 forks source link

freeradius_pysaml2 module with freeradius3 #3

Open sasilen opened 10 years ago

sasilen commented 10 years ago

I have now started to investigate freeradius3 with this freeradius_pysaml2 module, but module fails to load. I dont know why CONFIG_DIR section is nowadays commented out from freeradius_aa.py

CONFIG_DIR = "/usr/local/etc/moonshot" sys.path.insert(0, CONFIG_DIR)

I have to uncomment this to get this far.

Error I receive is following, I am not sure is this inherited from the pysaml2 installation, because during installation of pysaml2 compilation of pycrypto gave some errors, which didn't exists during next execution of install process. I weren't able to check what did happen, but I cant get those errors anymore. Pycrypto phase is now skipped because it's already installed and latest version.

/usr/lib/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg/Crypto/Util/_counter.py:3: UserWarning: Module radiusd was already imported from None, but /usr/lib/python2.6/site-packages/freeradius_pysaml2-0.0.6-py2.6.egg is being added to sys.path Tue Jan 14 12:35:11 2014 : Error: moonshot.py: 'module' object has no attribute 'SOAPClient'

sasilen commented 10 years ago

I tried this with earlier (older) pysaml2 and with that I were able to get this working (or at least freeradius started and initialized this plugin. I havent yet tried does it really work.)

rohe commented 10 years ago

31 jan 2014 kl. 10:32 skrev Sami notifications@github.com:

I tried this with earlier (older) pysaml2 and with that I were able to get this working (or at least freeradius started and initialized this plugin. I havent yet tried does it really work.)

I have not checked if it works with freeradius3. It's in my to-do list.

-- Roland "Education is the path from cocky ignorance to miserable uncertainty.” - Mark Twain