delphi - FireDAC TFDConnection.GetTableNames doesn't work on Firebird with trusted authentication -


i'm connecting firebird database firedac (migrating fibplus , using xe8 update 1). i'm using trusted authentication (osautenth=true). need read list of tables within database. i'm using tfdconnection.gettablenames , works standard autenthication (username+password) i'm not capable work using trusted authentication. maybe i'm doing wrong or i'm using wrong method to kind of info. i'm doing:

var   odef : ifdstanconnectiondef;   opars: tfdphysfbconnectiondefparams; begin   odef:=fdmanager.connectiondefs.addconnectiondef;   odef.name:='myfirebird';    opars:=tfdphysfbconnectiondefparams(odef.params);   opars.driverid:='fb';   opars.protocol:=iptcpip;   opars.server:=edserver.text;   opars.sqldialect:=3;   opars.database:=eddatabase.text;   opars.osauthent:=(edpassword.text='');   opars.username:='sysdba';   opars.password:=edpassword.text;   opars.rolename:=edrole.text;   opars.openmode:=omopen;    fdphysfbdriverlink1.embedded:=false;   fdphysfbdriverlink1.vendorlib:='c:\myprogram\fbclient.dll';    fdconnection1.connectiondefname:='myfirebird';   fdconnection1.connected:=true;    fdconnection1.gettablenames('','','',memo1.lines,[osmy],[tktable]);       '<--- doesn't works os authentication    fdquery1.sql.text:='select * mytable';   fdquery1.active:=true;                                              '<--- works fine in both kind of authentication 

the fibplus tpfibdatabase.gettablenames going substitute works fine both kind of authentications.

any idea?

change command follows:

fdconnection1.gettablenames('','','',memo1.lines,[osmy],[tktable],true); 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -