[Tue Jun 25 20:32:34 2013] [debug]: Attempting to use external auth service:
Connect__MSSQL
(/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:186)
[Tue Jun 25 20:32:34 2013] [debug]: Calling UserExists with $username
(bbaker@copesan.com) and $service (Connect__MSSQL)
(/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:227)
[Tue Jun 25 20:32:34 2013] [debug]: Invalid service type for UserExists:
Connect__MSSQL
(/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:490)
Made change and now I get the following messages. LDAP works by the way.
[Tue Jun 25 20:58:13 2013] [debug]: Attempting to use external auth service: Connect_MSSQL (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:186)
[Tue Jun 25 20:58:13 2013] [debug]: SSO Failed and no user to test with. Nexting (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:214)
[Tue Jun 25 20:58:13 2013] [debug]: Attempting to use external auth service: Connect_LDAP (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:186)
[Tue Jun 25 20:58:13 2013] [debug]: SSO Failed and no user to test with. Nexting (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:214)
[Tue Jun 25 20:58:13 2013] [debug]: Autohandler called ExternalAuth. Response: (0, No User) (/usr/share/request-tracker/local/plugins/RT-Authen-ExternalAuth/html/Elements/DoAuth:11)
Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 • 262-783-6261 ext. 2296 bbaker@copesan.com
Made change and now I get the following messages. LDAP works by the way.
[Tue Jun 25 20:58:13 2013] [debug]: Attempting to use external auth service: Connect_MSSQL (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:186)
[Tue Jun 25 20:58:13 2013] [debug]: SSO Failed and no user to test with. Nexting (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:214)
[Tue Jun 25 20:58:13 2013] [debug]: Attempting to use external auth service: Connect_LDAP (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:186)
[Tue Jun 25 20:58:13 2013] [debug]: SSO Failed and no user to test with. Nexting (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:214)
[Tue Jun 25 20:58:13 2013] [debug]: Autohandler called ExternalAuth. Response: (0, No User) (/usr/share/request-tracker/local/plugins/RT-Authen-ExternalAuth/html/Elements/DoAuth:11)
This means that your MSSQL auth source didn’t find a user, so it moved
on to your LDAP source where it also didn’t find a user (presumably
because some users are in MSSQL and others are in LDAP).
I change the dbi_Driver option to ODBC. Now I get the following error
[Tue Jun 25 21:21:29 2013] [error]: DBI connect(‘database=RapidTrax6a;host=192.168.250.29;port=1433’,‘HelpDeskOTRS’,…) failed: [unixODBC][Driver Manager]Data source name not found, and no default driver specified (SQL-IM002) at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 446.
Odbc Information
linux-jrlt:~ # perl -MDBD::ODBC -e ‘print $DBD::ODBC::VERSION;’
1.33
Made change and now I get the following messages. LDAP works by the way.
[Tue Jun 25 20:58:13 2013] [debug]: Attempting to use external auth
service: Connect_MSSQL
(/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:186)
[Tue Jun 25 20:58:13 2013] [debug]: SSO Failed and no user to test
with. Nexting
(/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:214)
[Tue Jun 25 20:58:13 2013] [debug]: Attempting to use external auth
service: Connect_LDAP
(/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:186)
[Tue Jun 25 20:58:13 2013] [debug]: SSO Failed and no user to test
with. Nexting
(/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:214)
[Tue Jun 25 20:58:13 2013] [debug]: Autohandler called ExternalAuth.
Response: (0, No User)
(/usr/share/request-tracker/local/plugins/RT-Authen-ExternalAuth/html/
Elements/DoAuth:11)
This means that your MSSQL auth source didn’t find a user, so it moved on to your LDAP source where it also didn’t find a user (presumably because some users are in MSSQL and others are in LDAP).
I am pretty sure the issue is with the install for the unixodbc and Freetds see output below.
linux-jrlt:/usr/bin/gcc # odbcinst -q -d
[FreeTDS]
[SQLServer]
linux-jrlt:/usr/bin/gcc # odbcinst -q -s
[MSSQL]
[Default]
linux-jrlt:/usr/bin/gcc # odbcinst -j
unixODBC 2.2.12
DRIVERS…: /etc/unixODBC/odbcinst.ini
SYSTEM DATA SOURCES: /etc/unixODBC/odbc.ini
USER DATA SOURCES…: /root/.odbc.ini
linux-jrlt:/usr/bin/gcc # isql -v MSSQL
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect
ODBC.ini
[ODBC Data Sources]
MSSQL=TDS connection
[MSSQL]
Description = Microsoft SQL Server
Driver = FreeTDS
Server = 192.168.000.000
Database = DBName
Port = 1433
UsageCount = 1
FileUsage = 1
TDS_Version = 8.0
I change the dbi_Driver option to ODBC. Now I get the following error
[Tue Jun 25 21:21:29 2013] [error]: DBI connect(‘database=RapidTrax6a;host=192.168.250.29;port=1433’,‘HelpDeskOTRS’,…) failed: [unixODBC][Driver Manager]Data source name not found, and no default driver specified (SQL-IM002) at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 446.
Odbc Information
linux-jrlt:~ # perl -MDBD::ODBC -e ‘print $DBD::ODBC::VERSION;’
1.33
Update
I uninstall FreeTDS and UnixODBC, then install FreeTDS first and then UnixODBC and edited the ini files and now I have both isql and tsql working.
I am now moving back to try and get Request Tracker to work.
Progress I love it. Even when it is slow and painful.
Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 • 262-783-6261 ext. 2296 bbaker@copesan.com
I am pretty sure the issue is with the install for the unixodbc and Freetds see output below.
linux-jrlt:/usr/bin/gcc # odbcinst -q -d [FreeTDS] [SQLServer] linux-jrlt:/usr/bin/gcc # odbcinst -q -s [MSSQL] [Default] linux-jrlt:/usr/bin/gcc # odbcinst -j unixODBC 2.2.12
DRIVERS…: /etc/unixODBC/odbcinst.ini SYSTEM DATA SOURCES: /etc/unixODBC/odbc.ini USER DATA SOURCES…: /root/.odbc.ini linux-jrlt:/usr/bin/gcc # isql -v MSSQL [IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect
ODBC.ini
[ODBC Data Sources]
MSSQL=TDS connection
[MSSQL]
Description = Microsoft SQL Server
Driver = FreeTDS
Server = 192.168.000.000
Database = DBName
Port = 1433
UsageCount = 1
FileUsage = 1
TDS_Version = 8.0
I change the dbi_Driver option to ODBC. Now I get the following error
[Tue Jun 25 21:21:29 2013] [error]: DBI connect(‘database=RapidTrax6a;host=192.168.250.29;port=1433’,‘HelpDeskOTRS’,…) failed: [unixODBC][Driver Manager]Data source name not found, and no default driver specified (SQL-IM002) at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 446.
Odbc Information
linux-jrlt:~ # perl -MDBD::ODBC -e ‘print $DBD::ODBC::VERSION;’
1.33
When the DBI_Driver string = SQLServer I get the following error…
[Wed Jun 26 15:48:22 2013] [error]: install_driver(SQLServer) failed: Can’t locate DBD/SQLServer.pm in @INC (@INC contains: /srv/www/perl-lib /usr/share/request-tracker/local/lib /usr/lib/perl5/vendor_perl/5.16.2 /usr/lib/perl5/vendor_perl/5.16.2/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.16.2/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.16.2 /usr/lib/perl5/5.16.2/x86_64-linux-thread-multi /usr/lib/perl5/5.16.2 /usr/lib/perl5/site_perl . /srv/www) at (eval 1431) line 3.
When the DBI_Driver string = ODBC I get the following error…
[Wed Jun 26 15:51:06 2013] [error]: DBI connect(‘database=RapidTrax6a;host=192.168.250.29;port=1433’,‘HelpDeskOTRS’,…) failed: [unixODBC][Driver Manager]Data source name not found, and no default driver specified (SQL-IM002) at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 446.
I need to know what the proper DBI_driver string should be when using and ODBC connection to a MS-SQL database. I have test tslq and isql so I know that the ODBC configuration is correct. Just need to get the correct information in the RT_SiteConfig.pm
Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 • 262-783-6261 ext. 2296 bbaker@copesan.com
Update
I uninstall FreeTDS and UnixODBC, then install FreeTDS first and then UnixODBC and edited the ini files and now I have both isql and tsql working.
I am now moving back to try and get Request Tracker to work.
Progress I love it. Even when it is slow and painful.
Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 • 262-783-6261 ext. 2296 bbaker@copesan.com
I am pretty sure the issue is with the install for the unixodbc and Freetds see output below.
linux-jrlt:/usr/bin/gcc # odbcinst -q -d [FreeTDS] [SQLServer] linux-jrlt:/usr/bin/gcc # odbcinst -q -s [MSSQL] [Default] linux-jrlt:/usr/bin/gcc # odbcinst -j unixODBC 2.2.12
DRIVERS…: /etc/unixODBC/odbcinst.ini SYSTEM DATA SOURCES: /etc/unixODBC/odbc.ini USER DATA SOURCES…: /root/.odbc.ini linux-jrlt:/usr/bin/gcc # isql -v MSSQL [IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect
ODBC.ini
[ODBC Data Sources]
MSSQL=TDS connection
[MSSQL]
Description = Microsoft SQL Server
Driver = FreeTDS
Server = 192.168.000.000
Database = DBName
Port = 1433
UsageCount = 1
FileUsage = 1
TDS_Version = 8.0
I change the dbi_Driver option to ODBC. Now I get the following error
[Tue Jun 25 21:21:29 2013] [error]: DBI connect(‘database=RapidTrax6a;host=192.168.250.29;port=1433’,‘HelpDeskOTRS’,…) failed: [unixODBC][Driver Manager]Data source name not found, and no default driver specified (SQL-IM002) at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 446.
Odbc Information
linux-jrlt:~ # perl -MDBD::ODBC -e ‘print $DBD::ODBC::VERSION;’
1.33
Update
Working with the first error I created a SQLServer.pm with the correct connect string. (I tested using Perl).
Now I get this error.
DBD::SQLServer initialisation failed: Can’t locate object method “driver” via package “DBD::SQLServer” at /usr/lib/perl5/vendor_perl/5.16.2/x86_64-linux-thread-multi/DBI.pm line 820.
Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 • 262-783-6261 ext. 2296 bbaker@copesan.com
When the DBI_Driver string = SQLServer I get the following error…
[Wed Jun 26 15:48:22 2013] [error]: install_driver(SQLServer) failed: Can’t locate DBD/SQLServer.pm in @INC (@INC contains: /srv/www/perl-lib /usr/share/request-tracker/local/lib /usr/lib/perl5/vendor_perl/5.16.2 /usr/lib/perl5/vendor_perl/5.16.2/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.16.2/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.16.2 /usr/lib/perl5/5.16.2/x86_64-linux-thread-multi /usr/lib/perl5/5.16.2 /usr/lib/perl5/site_perl . /srv/www) at (eval 1431) line 3.
When the DBI_Driver string = ODBC I get the following error…
[Wed Jun 26 15:51:06 2013] [error]: DBI connect(‘database=RapidTrax6a;host=192.168.250.29;port=1433’,‘HelpDeskOTRS’,…) failed: [unixODBC][Driver Manager]Data source name not found, and no default driver specified (SQL-IM002) at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 446.
I need to know what the proper DBI_driver string should be when using and ODBC connection to a MS-SQL database. I have test tslq and isql so I know that the ODBC configuration is correct. Just need to get the correct information in the RT_SiteConfig.pm
Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 • 262-783-6261 ext. 2296 bbaker@copesan.com
Update
I uninstall FreeTDS and UnixODBC, then install FreeTDS first and then UnixODBC and edited the ini files and now I have both isql and tsql working.
I am now moving back to try and get Request Tracker to work.
Progress I love it. Even when it is slow and painful.
Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 • 262-783-6261 ext. 2296 bbaker@copesan.com
I am pretty sure the issue is with the install for the unixodbc and Freetds see output below.
linux-jrlt:/usr/bin/gcc # odbcinst -q -d [FreeTDS] [SQLServer] linux-jrlt:/usr/bin/gcc # odbcinst -q -s [MSSQL] [Default] linux-jrlt:/usr/bin/gcc # odbcinst -j unixODBC 2.2.12
DRIVERS…: /etc/unixODBC/odbcinst.ini SYSTEM DATA SOURCES: /etc/unixODBC/odbc.ini USER DATA SOURCES…: /root/.odbc.ini linux-jrlt:/usr/bin/gcc # isql -v MSSQL [IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect
ODBC.ini
[ODBC Data Sources]
MSSQL=TDS connection
[MSSQL]
Description = Microsoft SQL Server
Driver = FreeTDS
Server = 192.168.000.000
Database = DBName
Port = 1433
UsageCount = 1
FileUsage = 1
TDS_Version = 8.0
I change the dbi_Driver option to ODBC. Now I get the following error
[Tue Jun 25 21:21:29 2013] [error]: DBI connect(‘database=RapidTrax6a;host=192.168.250.29;port=1433’,‘HelpDeskOTRS’,…) failed: [unixODBC][Driver Manager]Data source name not found, and no default driver specified (SQL-IM002) at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 446.
Odbc Information
linux-jrlt:~ # perl -MDBD::ODBC -e ‘print $DBD::ODBC::VERSION;’
1.33
Update
Working with the first error I created a SQLServer.pm with the correct connect string. (I tested using Perl).
Now I get this error.
DBD::SQLServer initialisation failed: Can’t locate object method “driver” via package “DBD::SQLServer” at /usr/lib/perl5/vendor_perl/5.16.2/x86_64-linux-thread-multi/DBI.pm line 820.
You shouldn’t be trying to write a DBI driver class; that’s madness.
You probably to use ODBC with a connect (dsn) string that includes the
correct odbc (sub)driver to use.
As stated before I have the correct information and setup for the ODBC drivers I have tested this with isql and tsql and I wrote a quick perl scrip to test the connection string and that works.
What I can’s figure out is what information needs to be put in the " ‘dbi_driver’ => ‘DBI_DRIVER’," so that RT will use the DSN entry in the ODBC configs.
Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 • 262-783-6261 ext. 2296 bbaker@copesan.com
Update
Working with the first error I created a SQLServer.pm with the correct connect string. (I tested using Perl).
Now I get this error.
DBD::SQLServer initialisation failed: Can’t locate object method “driver” via package “DBD::SQLServer” at /usr/lib/perl5/vendor_perl/5.16.2/x86_64-linux-thread-multi/DBI.pm line 820.
You shouldn’t be trying to write a DBI driver class; that’s madness.
You probably to use ODBC with a connect (dsn) string that includes the correct odbc (sub)driver to use.
As stated before I have the correct information and setup for the
ODBC drivers I have tested this with isql and tsql and I wrote a
quick perl scrip to test the connection string and that works.
What I can’s figure out is what information needs to be put in the "
‘dbi_driver’ => ‘DBI_DRIVER’," so that RT will use
the DSN entry in the ODBC configs.
RT::Authen::ExternalAuth expects to build a DSN like so:
[Wed Jun 26 18:48:08 2013] [debug]: Calling UserExists with $username (bbaker) and $service (Connect_MSSQL) (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:227)
[Wed Jun 26 18:48:08 2013] [warning]: DBD::ODBC::db selectall_hashref failed: [unixODBC][FreeTDS][SQL Server]Incorrect syntax near the keyword ‘USER’. (SQL-42000) at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 219. (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm:219)
[Wed Jun 26 18:48:08 2013] [warning]: Issuing rollback() due to DESTROY without explicit disconnect() of DBD::ODBC::db handle database=RapidTrax6a;Driver=SQLServer;DSN=SQLServer;host=192.168.250.29;port=1433 at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 219. (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm:219)
[Wed Jun 26 18:48:08 2013] [error]: DBD::ODBC::db selectall_hashref failed: [unixODBC][FreeTDS][SQL Server]Incorrect syntax near the keyword ‘USER’. (SQL-42000) at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 219.
Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 • 262-783-6261 ext. 2296 bbaker@copesan.com
As stated before I have the correct information and setup for the ODBC
drivers I have tested this with isql and tsql and I wrote a quick perl
scrip to test the connection string and that works.
What I can’s figure out is what information needs to be put in the "
‘dbi_driver’ => ‘DBI_DRIVER’," so that RT will use
the DSN entry in the ODBC configs.
RT::Authen::ExternalAuth expects to build a DSN like so:
[Wed Jun 26 18:48:08 2013] [debug]: Calling UserExists with $username (bbaker) and $service (Connect_MSSQL) (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:227)
[Wed Jun 26 18:48:08 2013] [warning]: DBD::ODBC::db selectall_hashref failed: [unixODBC][FreeTDS][SQL Server]Incorrect syntax near the keyword ‘USER’. (SQL-42000) at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 219. (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm:219)
[Wed Jun 26 18:48:08 2013] [warning]: Issuing rollback() due to DESTROY without explicit disconnect() of DBD::ODBC::db handle database=RapidTrax6a;Driver=SQLServer;DSN=SQLServer;host=192.168.250.29;port=1433 at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 219. (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm:219)
[Wed Jun 26 18:48:08 2013] [error]: DBD::ODBC::db selectall_hashref failed: [unixODBC][FreeTDS][SQL Server]Incorrect syntax near the keyword ‘USER’. (SQL-42000) at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 219.
Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 • 262-783-6261 ext. 2296 bbaker@copesan.com
[Wed Jun 26 18:48:08 2013] [debug]: Calling UserExists with $username (bbaker) and $service (Connect_MSSQL) (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth.pm:227)
[Wed Jun 26 18:48:08 2013] [warning]: DBD::ODBC::db selectall_hashref failed: [unixODBC][FreeTDS][SQL Server]Incorrect syntax near the keyword ‘USER’. (SQL-42000) at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 219. (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm:219)
[Wed Jun 26 18:48:08 2013] [warning]: Issuing rollback() due to DESTROY without explicit disconnect() of DBD::ODBC::db handle database=RapidTrax6a;Driver=SQLServer;DSN=SQLServer;host=192.168.250.29;port=1433 at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 219. (/usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm:219)
[Wed Jun 26 18:48:08 2013] [error]: DBD::ODBC::db selectall_hashref failed: [unixODBC][FreeTDS][SQL Server]Incorrect syntax near the keyword ‘USER’. (SQL-42000) at /usr/lib/perl5/vendor_perl/5.16.2/RT/Authen/ExternalAuth/DBI.pm line 219.
Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 • 262-783-6261 ext. 2296 bbaker@copesan.com