[SOLVED] Connect to PSQL in OTRS 4 Appliance
Moderator: crythias
-
- Znuny expert
- Posts: 172
- Joined: 16 Nov 2011, 23:35
- Znuny Version: 6.0.16
- Real Name: Jesse
- Company: Mercer Valve Company
- Location: Oklahoma USA
- Contact:
[SOLVED] Connect to PSQL in OTRS 4 Appliance
Hello,
I have an OTRS 4 Appliance VM.
I have a need to connect a FileMaker database via ODBC to the Postgresql database on the appliance.
I cat /SOURCE/SHARE/var/otrs/Kernel/Config.pm and grab the database password.
I use the following:
psql -d otrs -U otrs -W
I give it the password found in Config.pm and I get the following:
psql: FATAL: Ident-Authentifizierung f?r Benutzer >>otrs<< fehlgeschlagen
So, not sure why it wont recognize the username and password found in Config.pm.
Any ideas?
Thank you.
I have an OTRS 4 Appliance VM.
I have a need to connect a FileMaker database via ODBC to the Postgresql database on the appliance.
I cat /SOURCE/SHARE/var/otrs/Kernel/Config.pm and grab the database password.
I use the following:
psql -d otrs -U otrs -W
I give it the password found in Config.pm and I get the following:
psql: FATAL: Ident-Authentifizierung f?r Benutzer >>otrs<< fehlgeschlagen
So, not sure why it wont recognize the username and password found in Config.pm.
Any ideas?
Thank you.
Last edited by netjess on 21 May 2015, 17:25, edited 1 time in total.
Powered by OTRS 6
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
-
- Znuny expert
- Posts: 172
- Joined: 16 Nov 2011, 23:35
- Znuny Version: 6.0.16
- Real Name: Jesse
- Company: Mercer Valve Company
- Location: Oklahoma USA
- Contact:
Re: Connect to PSQL in OTRS 4 Appliance
Bump.
Anybody?
Anybody?
Powered by OTRS 6
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Connect to PSQL in OTRS 4 Appliance
On the surface, I don't understand why this is an OTRS issue.
As well, the pgsql connection to a non-pg database should certainly fail.
As well, the pgsql connection to a non-pg database should certainly fail.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Connect to PSQL in OTRS 4 Appliance
or ... Maybe I'm missing that you're having problems getting the *correct* pg password and why it's not in /opt/otrs/Kernel/Config.pm
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny expert
- Posts: 172
- Joined: 16 Nov 2011, 23:35
- Znuny Version: 6.0.16
- Real Name: Jesse
- Company: Mercer Valve Company
- Location: Oklahoma USA
- Contact:
Re: Connect to PSQL in OTRS 4 Appliance
It would be an OTRS issue because I am using a SSH shell on the OTRS appliance and trying the command using the information contained in the OTRS Config.pm file and it isn't working.crythias wrote:On the surface, I don't understand why this is an OTRS issue.
As well, the pgsql connection to a non-pg database should certainly fail.
I want to create a new psql user to access the database to do some datamaping to another database via ODBC.
Powered by OTRS 6
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
-
- Znuny expert
- Posts: 172
- Joined: 16 Nov 2011, 23:35
- Znuny Version: 6.0.16
- Real Name: Jesse
- Company: Mercer Valve Company
- Location: Oklahoma USA
- Contact:
Re: Connect to PSQL in OTRS 4 Appliance
if the correct user name and password are not in the Config.pm then how would the OTRS scripts know how to connect to the database?crythias wrote:or ... Maybe I'm missing that you're having problems getting the *correct* pg password and why it's not in /opt/otrs/Kernel/Config.pm
Powered by OTRS 6
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Connect to PSQL in OTRS 4 Appliance
/SOURCE/SHARE/var/otrs/Kernel/Config.pm
/opt/otrs/Kernel/Config.pm
is production otrs running from /SOURCE/SHARE?
/opt/otrs/Kernel/Config.pm
is production otrs running from /SOURCE/SHARE?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny expert
- Posts: 172
- Joined: 16 Nov 2011, 23:35
- Znuny Version: 6.0.16
- Real Name: Jesse
- Company: Mercer Valve Company
- Location: Oklahoma USA
- Contact:
Re: Connect to PSQL in OTRS 4 Appliance
I have compared the two files and they both have the same information, at least as far as database connection.
If it is encrypted will the CryptPassword.pl decrypt it or is it one way?
Thank you.
Code: Select all
# ---------------------------------------------------- #
# database settings #
# ---------------------------------------------------- #
# The database host
$Self->{DatabaseHost} = '127.0.0.1';
# The database name
$Self->{Database} = 'otrs';
# The database user
$Self->{DatabaseUser} = 'otrs';
# The password of database user. You also can use bin/otrs.CryptPassword.pl
# for crypted passwords
$Self->{DatabasePw} = 'jD93Odmj7IjSM@n';
$Self->{SecureMode}=1;
$Self->{"Package::Timeout"}=120;
$Self->{'SystemID'}=96;
$Self->{'SessionName'}='OTRSAgentInterface';
### MARKER ###
Thank you.
Powered by OTRS 6
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Connect to PSQL in OTRS 4 Appliance
I think it's one way, but crypted passwords will be enclosed in {}.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Connect to PSQL in OTRS 4 Appliance
viewtopic.php?t=28487 unfortunately I can't verify the rest of this.
http://www.cyberciti.biz/faq/psql-fatal ... -for-user/
search results
http://www.cyberciti.biz/faq/psql-fatal ... -for-user/
search results
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny expert
- Posts: 172
- Joined: 16 Nov 2011, 23:35
- Znuny Version: 6.0.16
- Real Name: Jesse
- Company: Mercer Valve Company
- Location: Oklahoma USA
- Contact:
[SOLVED] Connect to PSQL in OTRS 4 Appliance
OK, so it appears that you have to specify the host.
psql -h 127.0.0.1 -d otrs -U otrs
I now have a psql prompt.
Thank you for your time.
psql -h 127.0.0.1 -d otrs -U otrs
I now have a psql prompt.
Thank you for your time.
Powered by OTRS 6
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
-
- Znuny expert
- Posts: 172
- Joined: 16 Nov 2011, 23:35
- Znuny Version: 6.0.16
- Real Name: Jesse
- Company: Mercer Valve Company
- Location: Oklahoma USA
- Contact:
Re: [SOLVED] Connect to PSQL in OTRS 4 Appliance
Bummer,
Now when I enter the command:
CREATE USER fmuser WITH PASSWORD 'superSecret1';
I get the error:
FEHLER: keine Berechtigung, um Rolle zu erzeugen (ERROR : No authorization to create role).
Ugh. I guess I will have to give the otrs username to the other application admin, or move my OTRS to an installed application rather than using the appliance.
Thanks.
Now when I enter the command:
CREATE USER fmuser WITH PASSWORD 'superSecret1';
I get the error:
FEHLER: keine Berechtigung, um Rolle zu erzeugen (ERROR : No authorization to create role).
Ugh. I guess I will have to give the otrs username to the other application admin, or move my OTRS to an installed application rather than using the appliance.
Thanks.
Powered by OTRS 6
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.
Active Directory LDAP Integration.
Ubuntu 18 LTS, Apache2, PostgreSQL.