How to config the Ldap authentification in local network entreprise? - spring-security

I am trying to add authentication with Active Directory in my web application, so that the user can login with their username and password and start a session.
I need to know the necessary parameters to do the configuration.

Related

How can i force a username and password to be entered when browsing a Jenkins service?

To browse to Jenkins UI, I can bring up a web browser and go to URL http://:
This seems to be a bit insecure, is there a way I can force username and password to be passed in the url , something like
http://<myServer>:<port>?uname=<username>&pwd=<pwd>
So if the user ever tried
http://<myServer>:<port>
It would give an error that uname and pwd are required or it would just fail to browse ?
This would then verify against Jenkins user credential
Is this possible within Jenkins on Windows Server ?

Jitsi Docker server JWT authentication does not work. Why?

I am trying to enable jwt authentication for my self-hosted (Docker) Jitsi server. There is a guide on self hosting with Docker and on that guide, it tells how to enable authentication. This is the guide: https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-docker
Now I will copy and paste the autentication part from that guide so that you can see it more clearly.
Authentication can be controlled with the environment
variables below. If guest access is enabled, unauthenticated users
will need to wait until a user authenticates before they can join a
room. If guest access is not enabled, every user will need to
authenticate before they can join.
Authentication using JWT tokens You can use JWT tokens to authenticate
users. To enable it you have to enable authentication with ENABLE_AUTH
and set AUTH_TYPE to jwt...
After these instructions, I changed my .env file. I did the configurations told above. Then I did docker-compose down. Then I removed the ~/.jitsi-meet-cfg and then created again with mkdir. Then I ran the command docker-compose up -d.
Then to try it, I am entering the URL:
https://{ip_add}:8443/room?jwt=randomwords
I am connecting to the server remotely thus I am accessing it with an ip. And because I did not provide a token, I should not be able to create/join to a meeting but I am able to. Whatever I write to the url I still can join.
Can someone help?

Airflow Google OAuth login redirects to 127.0.0.1:8080 instead of domain name

I'm running Airflow 1.10.10 with latest Flask AppBuilder.
I've setup the webserver_config.py to use the AUTH_OAUTH as AUTH_TYPE and set up my provider appropriately. I've allowed my domain name as Authorized URI on the Google Console and that works as well. I've also set up registration on logging with role Admin.
When I click login, I get redirected to choose my G profile. So far, so good.
I click my profile and it redirects me to 127.0.0.1:8080. Obviously I don't have this address in Authorized URI's so it fails there. If I allow it, it's basically useless, because it redirects successfully ... to 127.0.0.1:8080 .. there's nothing there! Airflow is not hosted on my machine.
I've set base_url in airflow.cfg to the full domain name, web_server_host/port is 127.0.0.1/8080, but that shouldn't be the problem. What's the deal?
It turns out I was missing X-Forwarded-Host: <my.domain.com> in my nginx configuration. You should also add X-Forwarded-Proto: https if you want to be redirected to https.

Spring Cloud Config server authentication

Is it better to store the config server username and password as an environment variable (both in the client and server), or by using a keystore? The keystore password is anyway stored as an environment variable, so why actually use a keystore? Or is there a better way to implement authentication in the Spring Cloud Config server?
In our case, config server is ONLY for backend services, but not for clients. We have multiple clients, like iOS, Android and Web app. Each kind of client will manage their own configurations.
Furthermore, we simply use HTTP basic authentication on config server, and store the username and password as instance variables. So the username and password will be not be exposed in source code level. On the other hand, our config server is not exposed to public network.
Hope this will give you some hints.

What is the default admin password for DRONE_ADMIN users?

On first installation using a docker-compose file and following the installation instructions what is the default password for Closed Registration DRONE_ADMIN users?
The web frontend won't let you access it without a logon and it's not possible to create new users using the CLI without a login either.
The administrative user needs to login with the Gogs username and password
Drone will prompt you for a username and password to authenticate. You
should use your Gogs username and password. This is unfortunately
required due to Gogs lack of oauth2 support.
Let's use this example configuration for reference:
DRONE_ADMIN=johnsmith
You need to make sure that johnsmith is a valid Gogs username. When you are prompted to login you should enter johnsmith for the username, and use johnsmith's Gogs password.

Resources