I had the samme problem on my system (mac > linux).
Make sure that you, if you load the dburl, usr and password from a file,
removes ANY tailing spaces.
If you get the the same error try to hard-code the dburl,usr and password
into your program (during debuging).
Simu Soft
v/Anders Svensson
Frederikssundsvej 20, 2 th
DK-2400 København NV
e-mail : Anders(at)simusoft(dot)dk
tlf. : +45 3583 8126