At 08:53 AM 21/01/2009, you wrote:
>> > The DPB for embedded on Windows doesn't expect a username and password,
>Jiri.
>>
>> AFAIK, embedded server will simply ignore it. You're able to login
>> with any username/password.
>>
>> The empty login and password as signal to try trusted auth is taken
>> from standard FB tools. For now the trusted auth isn't done on
>> embedded (I haven't tested whether it works), but I think that (if it
>> works) it must be handled. Because you can have permissions on
>> database objects applied to domain logins. Thus if you don't wanna to
>> fall into trusted auth, you have to specify some username (I think
>> sysdba will be ok ;)).
>>
>> That's the reason why it works like it works right now.
>
>That seems backwards to me, though. Shouldn't you have to do "something" to
>get it to try trusted auth? I mean, my code for embedded looks basically the
>same as Paul's, and I would assume that even were trusted auth to be
>implemented, I wouldn't be using it.
>
>I would suggest a new property in FbConnectionStringBuilder to explicitly
>turn trusted auth on would be the way to go, otherwise it would just use
>whatever it used before? You don't want to change the behaviour of
>currently-working code for no good reason, I think.
>
>So you'd have to set fbcs.TrustedAuth = true; in order to get trusted auth -
>whether in embedded or server...

Doesn't seem a likely solution, since clients don't get to choose the 
Authentication method.  Use (or not) of Trusted Auth is configured at *server* 
level (in firebird.conf), meaning if you want it available you keep the default 
setting ('mixed') for the Authentication parameter.  If you don't want it 
available, set the parameter to 'native'. 

The point I was trying to make is that, for embedded, *no* form of 
authentication is valid, since the connection does not pass through 
authentication.  I gather Jiri's response indicates that, in order to be 
neutral about whether your app is an embedded one or a remote client, this 
provider requires you to submit something that looks like login credentials.  

Well...hmmm...ok, if you must...however, I wonder why the sysdba credentials 
would ever be recommended for a dummy username and password that you hard-code 
into your application or a startup script!!

Helen


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to