Hello monks
I have an issue using DBD::Sybase and Repserver with the encryptPassword flag set
#!/usr/bin/perl -w
use strict;
use DBI;
my $server="MY_REPSERVER";
my $user="repserv_user";
my $pass="welcome";
my $dbh = DBI->connect("dbi:Sybase:server=$server", loginTimeout=20;ti
+meout=60;encryptPassword=1, $user, $pass,{
PrintError => 0, # Don't print
+ warning messages
RaiseError => 1 } );
my $sth = $dbh->prepare("Admin who_is_down");
$sth->execute;
This is the error it produces
DBI connect('server=MY_REPSERVER;loginTimeout=20;timeout=60;encryptPas
+sword=1','repserv_user',...) failed: Server message number=14021 seve
+rity=12 state=0 line=0 server=MY_REPSERVER text=Invalid login attempt
+ed by user 'repserv_user' OpenClient message: LAYER = (4) ORIGIN = (1
+) SEVERITY = (4) NUMBER = (44)
Server MY_REPSERVER, database
Message String: ct_connect(): protocol specific layer: external error:
+ The attempt to connect to the server failed.
The target Sybase repserver and corresponding RSSD server have network password enabled which is a security requirement we have to abide by
I raised a case with SAP about this but they say it's only an issue with Perl and were not able to assist. Using isql/sqsh I have no issues. But due to the huge amount of perl code we have I'd like to resolve this issue if possible without reverting to using an alternative
The code above works fine when the encryptPassword=1 is not set but it then invaildates the security requirement. The same code works fine against a Sybase ASE with encryptPassword=1 set
We are using the latest version of DBD::Sybase that was released (yes I am aware it is fairly old now)
Has anybody seen this issue before or can maybe shed some light on how I overcome this problem ?
Thanks in advance
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
|
|