What is the default admin password for DRONE_ADMIN users? - docker

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.

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 ?

Docker login: access denied you must use a personal access token

Trying to login from docker to gitlab using the command:
sudo docker login registry.gitlab.com?private_token=XXX
But I still have the following error message:
Error response from daemon: Get https://registry.gitlab.com/v2/: unauthorized: HTTP Basic: Access denied\nYou must use a personal access token with 'api' scope for Git over HTTP.\nYou can generate one at https://gitlab.com/-/profile/personal_access_tokens
The token has the right access I doubled checked... I am rather new to docker, any hint/help? thanks!
The correct command line (that works in my case at least) was:
docker login registry.example.com -u <your_username> -p <your_personal_access_token>
If you are using 2 factor authentication, then personal access tokens are required.
More information on the following webpage,
https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html
According to https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html, your username actually gets ignored:
Though required, GitLab usernames are ignored when authenticating with a personal access token. There is an issue for tracking to make GitLab use the username.
So, if you're not able to connect, it might not be because of the username.

How to config the Ldap authentification in local network entreprise?

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.

Credentials do not work for "docker login"

Copy/pasting my username and password into the Docker Hub website works fine.
The password is long, but does not contain shell-breaking symbols.
Copy/pasting those same credentials into command-line docker login results in an incorrect username or password error. I have tried passing the credentials interactively (both copy/pasting and typing) and through command line args, same result:
# INTERACTIVE
$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: my#email.com
Password: <REDACTED>
Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password
# COMMAND LINE
$ docker login -u my#email.com -p <REDACTED>
Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password
#mustaccio was correct.
The Docker Hub website allows you to login with either your username OR your email, and the website does not require a case-correct username.
docker login DOES require a case-correct username, and DOES NOT work with your email address.
When I signed up I chose a camel-cased username e.g.:
MyUsername
Docker forces this username to all lower case in practice. When you log in, you'll see your correct username in the upper right-hand corner of the website. In this example:
myusername
The website allows you to login with MyUsername or myusername.
docker login only allows myusername.
Same issue happens if you didn't logout and if you have put EMAIL address for login.
docker logout
docker login
DONOT PUT EMAIL ADDRESS, instead ENTER USERNAME
I used a password generator that put special characters in my password, I was able to login in my browser but not through the cli. I changed it to just letters and numbers and it worked.
Try this:
sudo chmod 666 /var/run/docker.sock
sudo docker login
I solved the problem by this way.
Go to https://hub.docker.com/settings/security and create a new token in my account.
To login use
docker login command
And type:
myusername in lowercase and
token (instead of password)
If You are using git bash on Windows then use following command:
winpty docker login --username <yourusername>
It will prompt for password. Enter your password. Message "Login Succeeded" displayed.
"yourusername" you can get on right top corner when logged in docker official site.
With your email it is not working.
If anyone is still experiencing this after ensuring your user and pass is correct, generate a token at account settings>security>new access token , I was struggling for an hour but using a token worked. Don't know why
On Windows:
Right click docker on the system tray and sign out. Then sign in but use your docker hub username not email address.
For logging into hub.docker.com, what worked for me was make sure you DO NOT specify 'hub.docker.com'!!! Different versions of API-DNS? All of this after I spent a good hour changing my password, changing my token, etc.
Just simply:
docker login --username=myusername <enter>
theToken <enter>
Adding special characters like # in password may mess-up login to docker from terminal , even if we use correct case and everything else correct . But it will work from website if we use a special char in password.
So basically use letters and number only in password , don't use special char for docker login
docker login
Do not use email id. Use your username in smallcase and then give password.
You should be successfully login.
please login with your DOCKER ID and password
this would work instantly

What is "the DataStax Enterprise user name"?

I am trying to use the Beeline terminal client. Reading the Datastax Beeline documentation, it states
Enter the DataStax Enterprise user name.
and later
Enter the password.
What username/password is this? Is it a username related to internal authentication? What if a cluster does not have internal authentication enabled? It doesn't seem to be stored in configuration files:
$ grep -r user /etc/dse/hive
/etc/dse/hive/hive-log4j.properties:hive.log.dir=/tmp/${user.name}
/etc/dse/hive/hive-site.xml: <value>cfs:///user/hive/warehouse</value>
/etc/dse/hive/hive-exec-log4j.properties:hive.log.dir=/tmp/${user.name}
/etc/dse/hive/hive-env.sh.template:# the Hive installation (so that users do not have to set environment variables
If you have DSE, you should have received an email from DataStax Enterprise Registration that would include your username and password

Resources