IBCConnect.Connect succeeds with blank username & blank pwd
Posted: Fri 07 Nov 2008 18:45
Hello,
I have tried to find the reason for this but I am out of ideas. In my Delphi 2007 program (IBDAC 2.70.0.41) I have the code:
try
DataMod.MeBrConnection.Connect;
except
ShowMessage('Failed to connect to database.');
Application.Terminate;
end;
So the default connection dialog shows up. If I have a blank username and blank password and click on the Connect button the connection to the Firebird database succeeds.
I can access the tables I created. I created them as SYSDBA which has a password. I don't even know what user I am logged in as. I have 6 other users defined in the server, all of which have passwords.
I can find nowhere in the properties of any objects where a username and password could be hidden. Its not in the TIBCConnection object.
If I enter a username and no password or an incorrect password I get no message. The login dialog just stays there waiting for correct information or a cancel. This is ok, but I don't think it is how it should work.
Does anyone have any ideas? I really don't want to be able to connect without a username.
Thanks
Hardee Mahoney
Washington, DC
I have tried to find the reason for this but I am out of ideas. In my Delphi 2007 program (IBDAC 2.70.0.41) I have the code:
try
DataMod.MeBrConnection.Connect;
except
ShowMessage('Failed to connect to database.');
Application.Terminate;
end;
So the default connection dialog shows up. If I have a blank username and blank password and click on the Connect button the connection to the Firebird database succeeds.
I can access the tables I created. I created them as SYSDBA which has a password. I don't even know what user I am logged in as. I have 6 other users defined in the server, all of which have passwords.
I can find nowhere in the properties of any objects where a username and password could be hidden. Its not in the TIBCConnection object.
If I enter a username and no password or an incorrect password I get no message. The login dialog just stays there waiting for correct information or a cancel. This is ok, but I don't think it is how it should work.
Does anyone have any ideas? I really don't want to be able to connect without a username.
Thanks
Hardee Mahoney
Washington, DC