-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to do LDAP authentication in STF #47
Comments
Hi, There's a relevant reply in #46, but it's kind of unrelated otherwise so I'll just paste my reply here once more for search purposes: You can use OAuth 2.0 or LDAP. Some information is available in doc/DEPLOYMENT.md. Note that you're not supposed to run STF with As for authentication, what do you currently use? If you trust your developers enough that they're not going to claim to be someone else, you could just use the mock login while you're testing the system. Alternatively, we provide an implementation for LDAP and OAuth 2.0. Although the processes are meant to be started separately, you COULD use either with of those with
If that looks a bit weird, it's because it's not really meant to be super convenient - just possible. You may also need to export NODE_TLS_REJECT_UNAUTHORIZED=0 in case you're using a self-signed cert. Similarly, you could support LDAP (or possibly ActiveDirectory) with the auth-ldap provider (or We are planning on improving the documentation over time, however there are still a few bugs we want to fix first. Also, be sure to read the Troubleshooting section of the README, especially if you're planning on using Intel processors, as you might find out you're only able to support 8-12 devices per machine otherwise! Hope this gets you going for now. |
Thanks for you quick answer, I know this command but not so familiar with the options which stf auth-ldap provided. Hope you can paste a complete command sample for LDAP. |
See |
ok, thank for you answer and I will try. |
I want to authenticate users in stf against an existing LDAP server, I tried to use this command to lauch stf: stf local --auth-type ldap --auth-options '["--ldap-url","ldap://myldapserver"]'But it display below error after I click the login button in ldap login page. /auth-ldap 55816 [::ffff:127.0.0.1] Unexpected error AssertionError: options.attribute (string) is required |
The syntax is correct, but you don't have enough options. You should add at least |
I've been trying to enable LDAP authentication with the auth module service file. I am getting what is probably a mix of syntax and comprehension errors. I do have people I can go to for figuring out what parameters I need for LDAP, but I'll need to make sure I get the syntax right before I waste peoples time. Is this the right way to add the variables to the run command in a service file?
|
Hey I am using STF local when I run below command I am getting below error INF/util:procutil 2199 [] Forking "/usr/local/lib/node_modules/stf/lib/cli.js migrate" am I missing something? |
As you can see in the logs, it says |
Hi,
I know STF provides authentication units for OAuth 2.0, LDAP, mock. When we run stf with this command "stf local", it will use mock implementation which only asks for a name and an email address.
But I want to use true user authentication by LDAP, suppose that we have a LDAP server like xxxx.xxxx.xxx:222, but how I run STF and use which command? Please help give some guidance, thanks a lot.
The text was updated successfully, but these errors were encountered: