[arvados] sso ldap issues

Peter Amstutz peter.amstutz at curoverse.com
Thu May 14 06:32:40 EDT 2015


Try changing [:email_domain] to ["email_domain"]
On May 14, 2015 5:23 AM, "Emyr James" <ej4 at sanger.ac.uk> wrote:

> Hi,
> I used the instrumented branch of the sso server and the stack trace said
> the problem was in line 59 in
> /sso-devise-omniauth-provider/app/controllers/users/omniauth_callbacks_controller.rb
>
> I modified the code to this...
>
>   def ldap
>     begin
>       puts '******'
>       puts CfiOauthProvider::Application.config.use_ldap[:email_domain]
>       puts '******'
>       puts request.env['omniauth.auth']['info']['nickname']
>       puts '******'
>       @user = User.authenticate(:ldap,
> request.env['omniauth.auth']['info']['nickname'] + "@" +
> CfiOauthProvider::Application.config.use_ldap[:email_domain],
>                                 request.env['omniauth.auth']['uid'],
>                                 current_user)
>
> ...and I get this in the apache error log :
>
> App 14046 stdout: (ldap) Callback phase initiated.
> App 14046 stdout: ******
> App 14046 stdout:
> App 14046 stdout:
> App 14046 stdout: ******
> App 14046 stdout:
> App 14046 stdout: ej4
> App 14046 stdout:
> App 14046 stdout: ******
> App 14046 stdout:
>
>
> Which suggests that this is evaluating to null :
> CfiOauthProvider::Application.config.use_ldap[:email_domain]
>
> I have the following (sanitized) in my application.yml...
>
>   use_ldap:
>     title: Sanger LDAP
>     host: example.com
>     port: 636
>     method: ssl
>     base: "dc=sanger,dc=ac,dc=uk"
>     uid: uid
>     email_domain: "sanger.ac.uk"
>
> ...so email_domain seems to be set properly with the correct indentation.
> It seems that the issue must be in the code that picks up the config items
> to create the config dictionary.
>
> Cheers,
>
> Emyr
>
>
>
>
>
>
> --
> The Wellcome Trust Sanger Institute is operated by Genome Research
> Limited, a charity registered in England with number 1021457 and a company
> registered in England with number 2742969, whose registered office is 215
> Euston Road, London, NW1 2BE.
> _______________________________________________
> arvados mailing list
> arvados at arvados.org
> http://lists.arvados.org/mailman/listinfo/arvados
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.arvados.org/pipermail/arvados/attachments/20150514/e1688561/attachment.html>


More information about the arvados mailing list