This guide will walk you through all the steps to install the SAML addon.
To install the add-on:
/opt/dradispro/dradispro/shared/addons/cache/
(create the directory if it doesn’t exist)/opt/dradispro/dradispro/shared/addons/config/
/opt/dradispro/dradispro/shared/addons/initializers/
/opt/dradispro/dradispro/current
$ cd /opt/dradispro/dradispro/current/vendor/cache/ $ ln -s /opt/dradispro/dradispro/shared/addons/cache/*.gem ./
$ cd /opt/dradispro/dradispro/current/config/ $ ln -s /opt/dradispro/dradispro/shared/addons/config/*.yml ./
$ cd /opt/dradispro/dradispro/current/config/initializers/ $ ln -s /opt/dradispro/dradispro/shared/addons/initializers/*.rb ./
$ cd /opt/dradispro/dradispro/current/ $ RAILS_ENV=production bundle install --local --without development test $ RAILS_ENV=production ./bin/rails assets:precompile
$ RAILS_ENV=production ./bin/rails g dradis:pro:plugins:saml:install
$ god restart
Confirm that the installation has completed by visiting the login page and seeing a "Sign in with {{provider}}"
button. If you click the sign in button and receive any errors there may be more information about the specific setup problem in the logs.
You should be able to upgrade your SAML plugin following the installation steps from above. However, if you are upgrading to v4.3 of the SAML plugin from an earlier version, then some changes will be required in your /opt/dradispro/dradispro/current/config.saml.yml
file.
idp_sso_target_url
to idp_sso_service_url
email_attribute: name_id
As of v4.3 of Dradis, your /opt/dradispro/dradispro/current/config.saml.yml
file should look something like this:
production: admin_group_id: admin assertion_consumer_service_url: https://[your Dradis IP]/pro/auth/saml/consume email_attribute: name_id idp_cert_fingerprint: [redacted] idp_cert_fingerprint_algorithm: http://www.w3.org/2000/09/xmldsig#sha1 idp_provider: OneLogin idp_sso_service_url: https://[redacted].onelogin.com/trust/saml2/http-post/sso/[redacted] issuer: dradispro name_attribute: Name name_identifier_format: urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
That should get you up and running with the SAML addon. If you're running into issues, please contact our support team and let us know!
Your email is kept private. We don't do the spam thing.