Is there a way to stop datajoint from asking for username and password when I import it - datajoint

In Datajoint, you are prompted for username and password. I am creating a readthedocs website with Sphinx and I need the system to not prompt for username and password. How can I turn it off?

Thanks for asking this question!
There are basically three ways to do this:
dj.config.save_local(): This will save the entire dj.config as json on your project level
dj.config.save_global(): This will save is on a system level
System Variables DJ_HOST, DJ_USER, and DJ_PASS: Can be set for once like export in terminal or permanently in ~/.bashrc or ~/.zsh_profile for linux/mac or in your system settings/environment variable settings for windows
Please check DataJoint Documentation for more details

DataJoint asks for database credentials only when they are not already provided in the settings dictionary dj.config. These values can be set programmatically, loaded from a configuration file, or loaded from environment variables. These settings are described in the documentation: https://docs.datajoint.org/python/setup/01-Install-and-Connect.html

Related

How to change Mobaxterm session password

Hi there so I basically forgot my MobaXterm master password and I managed to change it yay!
now I came down to another Problem my session relied on the old password so how can I change it as when I go manage credential I cant change it or show password as my software version is the free version.
I have tried changing it and all but no avail.
Please help me
you try to reset password of mobaXterm pleases follows this steps
step 1
find location of mobaXterm files like:
C:\Users\admin\Documents\MobaXterm
go to this location
step 2
find file like : MobaXterm is a configuration file just open it any text editor
step 3
change like: [Misc]
PasswordsInRegistry=0 if is 1 then set 0
and save file and restart mobaxterm your password will be reset.
enjoy
There is also a reset Master Password tool available :
https://mobaxterm.mobatek.net/resetmasterpassword.html
But PasswordsInRegistry=1 works
If you reset your master password, all your connection passwords previously saved in MobaXterm will be lost.

pgAdmin failed to save password for users

I have pgAdmin (dpage/pgadmin4:4.29) container running in Kubernetes. As a master user I have added Database connections and share the connection. I can disconnect/reconnect to database without password as a master user.
But for additional users I have created, those users password are not getting saved even they have selected Save Password option at the time of connection. pgAdmin keep asking for password when connecting to DB.
What I am missing in my setup.
NobleUplift's issue of the "Save Password" checkbox being disabled can be caused by certain config flags in the config.py file. Remembering passwords for SSH tunneling is disabled by default, for example.
You can re-enable the checkbox by writing
ALLOW_SAVE_TUNNEL_PASSWORD = True # SSH tunnel password saving, default False
ALLOW_SAVE_PASSWORD = True # database password saving, default True
to a new config_local.py file in the same directory where you find your main config.py file. Pg discourages writing the the main config.py file directly. See the docs for more details about the preferred config file and where to find them. (I found mine under "pgAdmin 4\v6\web\config.py", not where the docs said.)
This seems to be where the 'disable password saving' idea came from.
Apologies roy for not answering your question directly, but I didn't have the ability to respond directly to Noble. However, the config docs also mention that the ENHANCED_COOKIE_PROTECTION flag can interfere with Kubernetes (and other auth settings), which might be worth a look.

ActiveCollab - Forgot admin password - cannot reset through phpmyadmin

I am unable to reset the owner password for ActiveCollab v5.
Emails are not configured, so forgot password option is useless.
I have access to PHPMyAdmin, but am unable to reset the password.
Any help is appreciated.
Setting password directly in the database is not recommended. Instead, there's a command in ActiveCollab's command line utility that lets you set user's password. Navigate your terminal to a directory where ActiveCollab is installed and run:
php tasks/activecollab-cli.php user:set_password you#your-company.com
System will prompt you for a new password and set it.
If ActiveCollab's CLI tool complains that user:set_password command is not present, you are using an older version of ActiveCollab, and you should upgrade first. This can be done through command line as well. Here's the help article that goes into more details:
https://activecollab.com/help/books/self-hosted/upgrade

Load to redshift from s3 without redshift credentials

We are loading loading data from S3 to Redshift, but proving redshift username and password on the command line.
Can we do this too role based because this leads to hard coding user name password in code which is a security vulnerability.
psql -h $redshift_jdbc_url -U $redshift_db_username -d $redshift_dbname -p $port_number -c "copy $destinationTable$columnList from '$s3fileName' credentials 'aws_iam_role=arn:aws:iam::$account_number:role/$s3role;master_symmetric_key=$master_key' region '$s3region' format as json '$jsonPathFile' timeformat 'auto' GZIP TRUNCATECOLUMNS maxerror $maxError";
Though this question has nothing to do specifically with Redshift, there could be multiple options to avoid username/password, by mistake checked in to code repository like (cvs,git etc) or getting shared.
Not sure if we do(as stated below) is best practice or not, here is how we do and I think, its safe.
We use the environment variable in our case, and those environment variables are outside of source code repository and the shell script code reads usually there at particular instance environment only.
For e.g. if you have shell script that execute the above command, will load the environment file variable like below. example psql.sh
#!/bin/bash
echo "Loading environment variable"
. "$HOME/.env"
Your other commands
The env file could have variables like below,
#!/bin/bash
export REDSHIFT_USER="xxxxxxxxx"
export REDSHIFT_PASSWORD="xxxxxx"
There are other options too, but not sure if they work well with Redshift.
.pgpass file to store the password. refer below link.
http://www.postgresql.org/docs/current/static/libpq-pgpass.html
"trust authentication" for that specific user, refer below link.
http://www.postgresql.org/docs/current/static/auth-methods.html#AUTH-TRUST
Hope that answers your question.
Approach 1:
Generate temporary username / password which has a TTL as part of your script. Use that temporary username / password to connect to DB.
Reference From AWS documentation
https://docs.aws.amazon.com/cli/latest/reference/redshift/get-cluster-credentials.html
Approach 2:
Use AWS Secerets Manager Service

How to reset the ATG Dynamo Admin password?

How can I reset the ATG Dynamo Admin password?
I need steps to reset/change the password, from the default of admin/admin.
According to Oracle's documentation, you can add Admin.Reset to your ear file which when deployed, will reset the admin password to the admin account.
ATG Documentation
Delete entry for "admin" from DAS_ACCOUNT table and restart the server. Then open dyn admin with admin/admin. It will take you to passward reset page.
You can do this ACC. In ACC click on People and Organizations->Control center users and select the name whose password you want to change.
It is answered in This forum. Basically, there are different ways to reset password, you can do it either by firing some queries or by methods mentioned here.
I had similar issue. In WebLogic app server I was getting denied ATG Dyn Admin of admin/admin. I took a shot in the dark and tried my WebLogic admin console login, and this time it worked, but Dyn Admin tried to take me to a password reset page. At that time I got the error:
Make sure that you have the bin directory for your JDK in your PATH variable before starting Dynamo and that you have enough swap space.
I created below props file in ATG_HOME/localconfig, and added the one liner below:
/atg/dynamo/servlet/pagecompile/ExtendedJhtmlPageProcessor
javaCompilerClassName=atg.servlet.pagecompile.SunJavaSourceCompiler
This solved my problem. I was able to load password change JHTML fine. Not sure yet why ATG Dyn Admin was redirecting me to password change page, and why it accepted my WebLogic console credentials. I wonder if it's a WebLogic specific thing.
you can change your password through /dyn/admin console there is a link password management from where you can reset the default password from admin/admin
Open your SQL developer in Core schema there is table name DAS_ACCOUNT where account name and password has been set so for password there is a long key
i have a key with me
2b7b1f41d6ddb810d48096c266d3bd092d7e5da5
place it in there now your
username:admin
Password:admin123