By: Jay Kumar user 09 Mar 2018 at 8:19 a.m. CST

6 Responses
Jay Kumar gravatar
Hello, When we are trying to follow the Console configuration steps to test the demo app for Inbound SAML using passport.js as per this doc: https://gluu.org/docs/ce/3.1.2/authn-guide/inbound-saml-passport/#console-configuration-steps. Other steps till 9 worked fine but when we are running the command for npm install then it shows command not found. Is there node js missing on our Gluu container package, if yes then how can we install it inside container. Please help! Thank you

By Aliaksandr Samuseu staff 09 Mar 2018 at 9:58 a.m. CST

Aliaksandr Samuseu gravatar
Hi, Jay. Node.js can't be missing as the Passport is based on it. Did you choose to install Passport when running `setup.py`?

By Cristian Chiru user 09 Mar 2018 at 11:10 a.m. CST

Cristian Chiru gravatar
1. Check if you have installed passport: `grep installPassport /install/community-edition-setup/setup.properties` 2. Set the path for the node binaries location, after `su - node`: `export PATH=$PATH:/opt/node/bin` 3. Run npm install in your downloaded ~/Inbound-SAML-Demo/

By Aliaksandr Samuseu staff 09 Mar 2018 at 12:20 p.m. CST

Aliaksandr Samuseu gravatar
Thanks for the input, Christian. I can confirm that all steps work by the doc in CentOS6 package. Most likely will work for Ubuntu 14 as well. It doesn't work for CentOS7 package, and, I guess, for Xenial as well (unless Jay forgot to install Passport component when running `setup.py`) For CentOS7 node and npm are actually installed, but simply running "# npm" won't launch it, seems like environment misses some symbolic links and variables in this one. So this may actually help in such case: >Set the path for the node binaries location, after su - node: export PATH=$PATH:/opt/node/bin No need to install node again, though.

By Jay Kumar user 09 Mar 2018 at 4:44 p.m. CST

Jay Kumar gravatar
Hi all, Thank you all for your reply. First thing that I checked there is Passport service installed on our Gluu setup, for sure. Second, when I ran this command ``` su - node: export PATH=$PATH:/opt/node/bin ``` as suggested by you inside Gluu container then it shows: No passwd entry for user 'node'. Please suggest the solution as I am stuck on the npm install step of testing inbound saml using passport.js using demo application. Thank you!

By Jay Kumar user 11 Mar 2018 at 10:07 a.m. CDT

Jay Kumar gravatar
Never mind, I figured it out.

By Aliaksandr Samuseu staff 12 Mar 2018 at 2:16 p.m. CDT

Aliaksandr Samuseu gravatar
Try to do `# cat /etc/passwd | grep -i node`. It should be like this: ``` node:x:992:991::/home/node:/bin/bash ``` If it contains `nologin`, try to edit it. Setting actual password may help too.