Trouble with new install of OrientDB 2.1.9 on Amazon Linux - linux

I am installing OrientDB 2.1.9 on Amazon Linux I am trying to log in to their standard Grateful Dead database. I cannot using the guest, the root works but this is non-optimal.
I used the default guest/guest, right out of the package.
The server credentials in the $ORIENTDB_HOME/config/orientdb-server-config.xml file:

guest user is valid just to connect to server instance and list databases, to connect to the db you have to use db users or root
orientdb> connect remote:localhost guest guest
Connecting to remote Server instance [remote:localhost] with user 'guest'...OK
orientdb {server=remote:localhost/}> connect remote:localhost/GratefulDeadConcerts guest guest
Disconnecting from remote server [remote:localhost/]...
OK
Connecting to database [remote:localhost/GratefulDeadConcerts] with user 'guest'...
Error: com.orientechnologies.orient.core.exception.OSecurityAccessException: User or password not valid for database: 'GratefulDeadConcerts'
if you want to connect to the db with limited permissions you can use built-in users reader or writer or you can create your custom users from inside the database.
Please refer to this guide too http://orientdb.com/docs/2.1/Security.html

Related

Oracle SQL-Developer doesn't connect to SQL Server in Azure

I want to connect an SQL Server Database hosted in Azure configured with MFS from Oracle SQL-Developer.
Currently I am able to connect to this db server using SSMS just by putting the Server Name, user name & password, Default Network Protocol and choosing the Authentication type as 'Azure Active Directory - Universal with MFA.
But when using SQL-Developer it asks for Http/Https, Hostname, Port, Server Path & Service Name where I don't know what should be entered.
I tried by only entering the URL (the server Name I use is SSMS), but it failed to connect.
Do anyone know how I can make the connection successful?
To access the Azure SQL database in the Oracle SQL developer tool, you must download the JTDC driver which will be useful to connect to third party database.
I am able to make the successful connection from SQL developer tool to Azure SQL database by following below procedure:
Download the latest JTDC jar file from the URL below: https://sourceforge.net/projects/jtds/
Upload the jar file in the below path: Tools>>preferences>>Database>>Third Party JDBC driver
After that, trigger the new connection from the developer tool and then you can get option to select SQL server
Give the connection name, credentials and host name to access the database.
From SSMS:
From SQL Developer tool:

Public connection to AWS Linux server

I'm quite new to setting up the config for servers.
I want to have a user connect my Linux server, I'm using AWS to host the virtual machine. I cannot find anywhere to do this without using the public key. I want the user to just have to enter a username and password.
Any help would be appreciated!
Why the user will connect your server? Is for database operations or something? If it is for database operations, you can use an API for this. A direct user connection to server is not a good thing. If you want to connect your server for configurations, you can use ssh to connect to your server.

Call SQL Server from a Linux Container without Passwords in the Connection String

I am converting a service to run on a Linux Container. Currently, the service runs in IIS in a Windows VM.
It runs as a Lan User that has permissions to the database. Thus the connection string uses Integrated Security.
But Containers cannot join a domain. So, as I understand it, that option is out.
I researched this for Windows Containers and found that it supports running as a Group Managed Service Account (gMSA) on the container host, and that calls made as "Network Service" are swapped to the gMSA. (Allowing use of a domain user via the container host.)
But I cannot seem to find a similar feature for Linux containers.
Do all processes run in Linux containers just put usernames and passwords in to their database connection strings?
Or is there a better way to convey identity in a Linux Container?
To give a few more details on my particular setup:
Running a Linux container
Running .NET Core 2.2
Running in Kubernetes (eventually)
Database is Microsoft SQL Server Running on Windows
Would help to know a bit more of your setup, but with the information at hand there are 3 options as I could see.
Option 1:
Manage the credentials with for docker secrets as per
https://docs.docker.com/engine/swarm/secrets/
docker container exec <CONTAINER_ID> \
bash -c 'mysqladmin --user=wordpress --password="$(< /run/secrets/old_mysql_password)" password "$(< /run/secrets/mysql_password)"'
Option 2:
Depending on what kind of DB you're using you could add the password to the configuration, for example in my.conf for mysql.
[client]
password = 123
Option 3:
Depending on your network stack, you could set the permissions in the database instead. Allowing the IP access to the database. But I would however recommend one of the other options.
So since it is a linux environment and I believe you want to use windows authentication you can use similar Ad authentication.
Check here
his tutorial explains how to configure SQL Server on Linux to support Active Directory (AD) authentication, also known as integrated authentication. For an overview, see Active Directory authentication for SQL Server on Linux.
This tutorial consists of the following tasks:
Join SQL Server host to AD domain
Create AD user for SQL Server and set SPN
Configure SQL Server service keytab
Secure the keytab file
Configure SQL Server to use the keytab file for Kerberos authentication
Create AD-based logins in Transact-SQL
Connect to SQL Server using AD Authentication
update I don't think windows domain integrated authentication can be used.I don't think there can be any integrated authentication then. try dsn so that your code does not have username password. https://www.easysoft.com/products/data_access/odbc-sql-server-driver/getting-started.html

How to set the Identity that website runs under

I have a wordpress site that connects to Sql Server using the Sql Server PHP driver on IIS 7. I now want to set up Windows Authentication to connect with.
I know how to do this on the Sql Server side, but I don't know how to configure the account that the website will connect with.
Right now, when I try to connect to Sql Server, this is the message it gives: [SQL Server]Login failed for user 'NT AUTHORITY\IUSR' So it is obviously trying to connect using IUSR.
So how do I set the User Account that it will connect with?
Greg

Ingres connection on an IIS deployed site

I have a .net 2.0 app being hosted on IIS, that connects to a Ingres DB. The connection uses iBatis with an ODBC driver to connect to an ingres database being protected behind an installation password.
For some reason, when I'm debugging my code, everything runs fine. It establishes the connection without any problems. However, when I try to host the site on my local IIS, ingres comes back with this error
ERROR [5000H] [CA][Ingres ODBC Driver][Ingres]User authorization check failed.
Your user identifier was not known to this installation.
Contact your system manager for further assistance.
ERROR [08S01] [CA][Ingres ODBC Driver][Ingres]The connection to the server has been aborted.
I'm wondering why the installation password would work fine against my debug session, and refuse to connect behind IIS? Does IIS use a different 'name' that isn't my computer name to establish a connection with the installation password?
The connection is being rejected because the target server is not aware of the user trying to connect or that user has not been added. Check to see if the process owner of your local IIS instance is a valid ingres user. IIRC the account name is normally something like IUSR_MACHINENAME, where MACHINENAME is the hostname of your IIS box. Add the user account using the following SQL on the server:
echo "create user IUSR_MACHINENAME\g" | sql iidbdb

Resources