Closed Samarthasnani97 closed 7 months ago
Can you give some context to how you are building the image and how you are running it (potentially example commands you are running)? I just built and ran the master
branch and could successfully log in with the username and password guacadmin
.
Actually rather than pulling the image I am trying to use the raw docker file for which you have provided the source code, I am simply making a new dockerfile and also copying the whole root folder in the same directory as the dockerfile and building the dockerfile, after running the file the default user name and password it is showing me as incorrect.
Sorry I don't see how can help further unless you provide steps to reproduce this problem. Like I said I tested building and running the main branch after you opened the issue and found no problem with the image. To test this I cloned this repository and inside ran docker build
against the Dockerfile.amd64
file and then ran the image that was built and could login just fine.
If you want to build this repository there is no need to create your own Dockerfile or copy files around. Just clone the repository and run the docker build
against the right Dockerfile with the -f
flag.
I am sorry for not describing my question clearly.. I am able to build the docker image..I want to actually change the default username and password that is "guacadmin" during the start-up. I know that I can change it after logging in but I want to change it during the startup so that the user can directly put the user defined user name and password in place of default username and password. Please provide me some solution.
Thankyou in advance.
You would need to modify the contents of /app/guacamole/schema/002-create-admin-user.sql
. That schema folder is part of the postgresql extension (relevant part of the Dockerfile) which sets up the database on first boot and setting up the default admin account is part of that.
Perfect, Thankyou so much, Can you also help me on to how to generate the salt and hash password which similar to which apache guacamole is using, is there any tool to generate the password.
I don't know what hashing algorithm they are using or how they are combining the salt. Should be able to find that with some googling. A quick and dirty approach would be to just set a password via the UI and then pull the password_hash and password_salt columns out of that table.
Perfect it working now, I was able to change the default user name and password, Thankyou so much for the solution. Now, If I want to do some changes on the client UI like removing some extra columns in settings, where should I look for ? Can you please suggest me.
I downloaded the latest version of dockerfile, and trying build the dockerfile rather than building the image and when my dockerfile is built and running, and try to access the apache guacamole with default ID and password "guacadmin" , it gives an incorrect password. Althought the init.sql file is already present inside the guacamole folder. I am very new to apache guacamole