Questions tagged [authentication]
The process of identifying the party logging into a system.
338
questions
0
votes
2
answers
31
views
PostgreSQL: Pgbouncer authentication
We are using authentication file mode in pgbouncer. The authentication part of Pgbouncer is so confusing. Would be helpful if anybody can throw some light on my below queries.
Are Pgbouncer ...
0
votes
0
answers
10
views
How to use AAD-MFA on SQL 2022 on an Azure VM?
So apparently SQL Server 2022 now supports the use of AAD-MFA (Azure Active Directory with Multi-Factor Authentication) as an auth method. (Source)
However, this requires Azure Arc, and according to ...
0
votes
1
answer
637
views
How do I change the Authentication Plugin for users mysql.sys, mysql.session, etc?
I use MySQL version 8.0.34 on a Debian server.
With the latest update I get the message that mysql_native_password is deprecated and I should rather use caching_sha2_password instead.
With my own ...
0
votes
0
answers
55
views
SSL-mode without CA-cert?
I am on DigitalOcean managed databases and they allow to download a CA cert for connecting securely. I am new to this.
In TablePlus I can set SSL-mode to required and still connect without any cert. ...
0
votes
1
answer
140
views
PostgreSQL client on Windows to access PostgreSQL server on Linux using Active Directoy Kerberos authentication
TEST 1 - PostgreSQL with Active Directory authentication
I have installed PotgreSQL Server v15.3 on Red Hat 8.8 and integrate PostgreSQL authentication using Active Directory.
In pg_hba.conf I have ...
0
votes
1
answer
77
views
Indexing of hash-value column vs INT IDs for session tokens
Let's say:
your application should use session IDs generated with a CSPRNG, which shall authenticate your user sessions
your system uses PHP 8.2 and MariaDB 10.6
Which of the approaches below ...
0
votes
1
answer
4k
views
How to correctly replace 'default_authentication_plugin' with 'authentication_policy'?
I have MySQL 8.0.33 on Ubuntu. In the error log, I see the following warning:
[Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. ...
5
votes
5
answers
2k
views
SQL Server with multiple databases (one per client) - what is the best security practice in terms of logins/users/permissions?
We have multiple SQL Servers with each holding dozens of databases - one per client (a client in this case means a customer organization). These databases are accessed via an application, but the ...
1
vote
0
answers
79
views
Windows authentication on remote client accessing SQL Server 2022 with SSMS [duplicate]
I have installed SQL Server 2022 on Windows Server 2019 Datacenter, and applied the March SQL Server 2022 Cumulative Updates. Also installed on the server is SSMS 18.12.1 and 19.0.2.
On a remote ...
0
votes
1
answer
73
views
Oracle RADIUS authentication requiring to re-authenticate for every query
My company has switched the Oracle authentication from a password to RADIUS authentication. The only change I needed to make in Oracle SQL Developer was oracle.net.authentication_services = RADIUS. I ...
1
vote
0
answers
42
views
PostgreSQL: data retrieval from a private (authentication-based) RESTful web API using a foreign data wrapper
In some cases, one want to feed or populate some PostgreSQL database tables using data fetched from the web, e.g. through a RESTful API (serving JSON features).
I've recently discovered foreign data ...
0
votes
2
answers
66
views
Microsoft SQL Server migration and users conflict resolution?
When moving a server from one machine to another, it is necessary to re-create the SQL Server users from the old machine.
But when moving databases, they are moved with those users already in.
Problem ...
0
votes
1
answer
147
views
Cannot run nodetool commands after enabling JMX authentication in DSE
I would like to use these two pages to enable DSE Unified Authentication and realize a secure environment.
I have tried to configure it but it does not work.
How is it as a symptom.
When I type ...
0
votes
1
answer
93
views
Passwordless access to psql from Administrator WITHOUT any password (Windows)
Yes, I know there are plenty of answers on how to access psql without password... while specifying password somewhere.
I do not have context this luxurious. I do not have any password. What I do have ...
0
votes
1
answer
2k
views
How to fix authentication through pgpool?
I have a cluster that consists of:
pgpool
master
slave
Using pgpool-II version 4.3.2 and
Postgres 14.4
Several users have been created, all are authenticated through pgpool.
There was a need to ...
-1
votes
1
answer
111
views
Creating a database with authentication enabled on mongodb
I can create a database using a specific role for my "user1".
I have tested and a user "test1" can not create a database in the mode authorization enabled.
How works the creation ...
7
votes
2
answers
15k
views
How to start MySQL after failure?
After I reboot my server, I can no longer start mysql.
I have followed several solutions posted here:
This
This
Or this
Did not help much... :(
I run the following commands to start the service:
...
0
votes
2
answers
162
views
User handling in MS-SQL database
I have an MS-SQL installation, controlling different databases. This can be accessed using Microsoft SQL Server Management Studio 18. For doing that, I use Windows authentication.
In there, I have ...
0
votes
2
answers
855
views
Store LDAP bind credentials in environment variables for pg_hba.conf
I am working on setting up LDAP authentication for a PostgreSQL database and have added the following in my pg_hba.conf file:
# TYPE DATABASE USER ADDRESS METHOD
host all all ...
0
votes
2
answers
1k
views
How to sync SQL Server Logins with database User after a restore from another server
I have a database server with several databases inside. This server is used as test server to store a set of test databases. The test databases do not come from the same production server thus I can ...
0
votes
0
answers
433
views
Enable username and password authentication on mongodb sharded cluster
I have a mongodb cluster(1 mongos, mongo config replica set with 2 members, 1 shard with 3 members) and I have enabled internal authentication in config replica set. Also my backend code connects to ...
2
votes
1
answer
7k
views
PostgreSQL: Using the .pgpass file
I have been reading up on the .pgpass file, but I can’t get it working for me.
My .pgpass file looks something like this:
127.0.0.1:5432:accounts:fred:p@55w0rd
I set the privilege to 0600 (this is on ...
2
votes
1
answer
2k
views
Authentication relying on mysql_native_password seems to also check for Linux user?
I have a mariaDB 10.3 install. The mysql.table states that 'root' login relies on mysql_native_password plugin, with no password set.
If my linux user is root, I am able to connect to mysql using;
...
0
votes
0
answers
91
views
Is it possible to use check_user_proxy on AWS RDS?
My top-level goal is to enable two-user (zero-downtime) secret rotation for RDS users. To recap/summarize the approach, you always have two accounts in your DB that have equivalent access. You switch ...
0
votes
2
answers
506
views
Designating no password for account in MySQL config file
This is a theoretical question because having a DB account with no password is a terrible idea.
Question: Is there a way to designate an account with no password in the MySQL config file?
1
vote
2
answers
412
views
DB2 Linux authentication fails
I have DB2 Express-C v10.5 instance configured to authenticate against LDAP. The LDAP sever is going to be shutdown and I should configure the same DB2 instance to use Linux authentication.
I copied ...
1
vote
1
answer
2k
views
Which authentication is better for MS-SQL Server 2019 : integrated security=SSPI vs uid=sa;pwd=xx | windows auth vs sa auth
In my different web applications I use both ways, however, I would like to learn which method is better:
1: server=localhost;database=x; integrated security=SSPI;persist security info=False; ...
0
votes
1
answer
4k
views
Does my PostgreSQL instance support kerberos/gssapi authentication?
I installed it following instructions from digital ocean how-to-install-postgresql-on-ubuntu-20-04-quickstart:
% sudo apt install postgresql postgresql-contrib
I also did a 'show all' in psql and ...
2
votes
1
answer
2k
views
Nested AD group access not working when nested more than 2 levels deep?
For the setup of the security of the databases we have created a number of nested Active Directory groups:
Group
Members
Group type
RGP-EA_PROD-RW
RGP-SparxEA-RW
Domain Local Security
RGP-SparxEA-...
2
votes
1
answer
1k
views
PostgreSQL keeps asking for user password with "trust" authentication enabled
I created a user john with createuser and didn't supply any passwords for it, i.e. no -P option specified. I then proceeded to add the following line above all other lines in the pg_hba.conf file:
...
1
vote
0
answers
97
views
Saving multiple authentication strategies to the same database
I need some advice with the logic behind this authentication method.
I'd like my app to have multiple ways to create accounts:
email/pass
twitter
google
I can handle the email and password login ...
1
vote
1
answer
585
views
Kerberos Issue - Anonymous Login
I have a linked server that connects one SQL Server to another SQL Server. For two weeks now there has been an error when testing the connection;
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. ...
1
vote
1
answer
466
views
Can SQL Server OpenQuery/OpenRowSet to an LDAP Linked Server be used for Authentication?
I can fetch data back from LDAPS (port 636/3269) by first creating a Linked Server using sp_addlinkedserver and sp_addlinkedsrvlogin.
However, what I really need to do is to authenticate a Username/...
0
votes
1
answer
2k
views
PostgreSQL Linux PAM Authentication Error
I'm using PSQL version 12.5 on Ubuntu 20.04.1. My pg_hba.conf file looks like this:
# DO NOT DISABLE!
# If you change this first entry you will need to make sure that the
# database superuser can ...
0
votes
1
answer
1k
views
Active Directory authentication with SQL Server on Linux containers
I have a problem and hope someone can help me. I have SQL Server as docker container. I want our developers able to login in SSMS (SQL Server Management Studio) using their Active Directory users. I ...
0
votes
1
answer
3k
views
Why do I have to set MySQL user password with mysql_native_password to connect with Workbench?
I've noticed if I set the mysql user's password like below, I cannot connect with MySQL Workbench.
ALTER USER 'root'@'localhost' IDENTIFIED BY 'myPassword'
If I use this below I can connect to it:
...
-1
votes
1
answer
89
views
How to prevent starting of MongoDb 3.0.3 instance without "--auth" parameter?
I have a local Mongo database for which I have created users and authenticating through my code. But the authentication is only valid if mongo instance is run with "--auth" parameter.
If ...
-1
votes
1
answer
653
views
Best practice for connecting to Postgres from Django [closed]
I recently installed Postgres 11 on my Raspberry Pi 4, and attempted to connect to a database from my Django app:
return psycopg2.connect(dbname="covid")
The connection failed like so:
...
0
votes
1
answer
223
views
Snowflake: how to allow only Key Pair Authentication connections?
Is there any way to configure Snowflake to allow only key pair authenticated users' connections?
At the moment you can add RSA_PUBLIC_KEY_FP to any user. But he can connect easily without specifying ...
0
votes
0
answers
40
views
Oracle DB Authentication Prioritization
If an Oracle authentication service has been configured, such as SecurID, does this mean that local users using Username/Password cannot use these credentials to login?
From this link it appears as ...
1
vote
1
answer
2k
views
Disable password policy for partially-contained database
I'm stuck in a situation where I need to create a new user for a partially-contained database (SQL Server 2016). The password is short, so I get an error:
Password validation failed. The password ...
0
votes
1
answer
4k
views
Connect DBeaver to PostgreSQL 13
I've been using PostgreSQL 10 and 12 on Windows successfully with DBeaver in the past. Now I've set up a new development machine and installed the current PostgreSQL 13.0.1 and the current DBeaver 7.2....
0
votes
1
answer
893
views
How can I add a user and specify a password for a in IBM Data Studio? [duplicate]
In Data Studio I can connect to a sever/database, go down to Users And Groups, right-click on Users and add a new one. But the program never asks me for a password. How can I specify it?
Also, no ...
0
votes
1
answer
40
views
How to know if mysql server is using sha_256 or caching_sha_256 authentication plugin?
Seems like I am using an older version on Mysql Server which uses sha_256 plugin for Authentication (which is now deprecated) .Because of this, I am unable to connect to my server with third party ...
0
votes
1
answer
123
views
Enabling TLS and TLS-MA simultaneously for different clients of a Oracle DB
We have a requirement where we want to enable TLS-MA for some of the clients connecting to a specific Oracle database while the other clients can continue to use TLS with server certificate.
We are ...
0
votes
0
answers
1k
views
Bash Script Can't Connect to Azure Postgres using ENV Vars - "The Username should be in <username@hostname> format"
I have a bash script that exports ENV vars to use in connecting to an Azure Postgres DB (mydb.postgres.database.azure.com). For the user portion of that specifically it looks like this:
export PGUSER=&...
0
votes
1
answer
1k
views
pgBouncer - multiple servers with same username but different password
I have an active pgBouncer setup with one PostgreSQL server.
We are planning to add one more PostgreSQL server to the same pgBouncer. But the problem is that both databases servers have the same ...
1
vote
0
answers
460
views
Why is the authentication_string different from the other one if the passwords are the same?
I've set the same passwords for the following accounts: 'root'@'%', 'root'@'127.0.0.1'.
When I type select user, host, authentication_string from mysql.user I get different values for the ...
0
votes
2
answers
4k
views
Power BI report server: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' when trying to view a report
We have SQL Server 2019 and Power BI Report Server installed on the same host. we're using a virtual service account for Power BI Report Server. We get the following error when trying to view a report:...
4
votes
1
answer
386
views
Active Directory Name Change
Our Active directory will change the accounts name for example John Doe [email protected] to [email protected].
My question is do I need to change all the SQL Logins individually or the person can login ...