Hi all,
I’m setting up an OOD instance with Dex + LDAP (AD). The attribute I’m using for user login uses capital and dot, i.e: Guilherme.BALZANA. I had to set a custom user_map script to lower case everything. I’m not in control of AD, so user attributes and schema are out of my reach.
There is one account which fails with the following after authenticating
Error -- invalid byte sequence in US-ASCII
Run 'nginx_stage --help' to see a full list of available command line options.
That means user’s PUN isn’t created. I’ve added set +x
and a few debug prints on nginx_stage script and got the command which I think is triggering error
/usr/bin/env ruby -I/opt/ood/nginx_stage/lib -rnginx_stage -e NginxStage::Application.start -- pun -u abdelali.elkouri -a https%3a%2f%2f10.43.102.30%3a443%2fnginx%2finit%3fredir%3d%24http_x_forwarded_escaped_uri
going deeper into /opt/ood/nginx_stage/lib/nginx_stage/application.rb
I found the error is triggered by
# generator == NginxStage::PunConfigGenerator
# options == {:user=>"abdelali.elkouri", :app_init_url=>"https://10.43.102.30:443/nginx/init?redir=$http_x_forwarded_escaped_uri"}
generator.new(options).invoke if generator
Worth to mention that if I spawn the nginx_stage
manually in the server then the user can login and use that session.
This only happens for this particular user
Any debug guidance or help is appreciated
thanks