On Feb 1, 11:50 am, "Rupert Woodman" <rupert.wood...@microfocus.com>
wrote:
> I can connect to a SQL Server 2005 database using the Microsoft JDBC driver,
> using either a SQL Server user, or using the credentials of the user
[quoted text clipped - 10 lines]
>
> Many thanks
You're not going to make that work. You have two choices:
1 - set an explicit user and password string in the properties for the
driver to send to the DBMS. That will work anywhere for any OS user
as long as the DBMS user/password are valid.
2 - Use the driver's integrated security, which automatically absorbs
the *current OS user's* identity to verify with the DBMS at runtime.
There is no way to tell the driver/JVM/Windows to automatically act
as if some other person is running your Java program.
Joe Weinstein at BEA Systems
Rupert Woodman - 02 Feb 2007 13:17 GMT
Thanks Joe.
You're saying that validating against a domain user is impossible (even when
the username and password are known) - it either has to be a non-domain user
(i.e. SQL Server authentication), or you use integratedSecutory=true, and it
then uses the credentials of the user currently logged in?
It seems a little odd behaviour to me. We have a domain account which is
used for our build process, so has limited permissions. The application I'm
writing can be run by anyone on their machines, to do a particular task, and
then exit the app. I really don't want to have to create SQL Server
accounts on each SQL Server instance just for this app. Seems crazy to me.
Thanks for your input
rgds
Rupert
> On Feb 1, 11:50 am, "Rupert Woodman" <rupert.wood...@microfocus.com>
> wrote:
[quoted text clipped - 29 lines]
>
> Joe Weinstein at BEA Systems
joeNOSPAM@BEA.com - 02 Feb 2007 17:18 GMT
Hi. That's as I understand it, but you should definitely follow up
with a post to the microsoft.public.sqlserver.jdbcdriver newsgroup
at msnews.microsoft.com. They will be the authorities, and may
have different/better news.
Joe Weinstein at BEA Systems
Rupert Woodman - 02 Feb 2007 18:39 GMT
Thanks for your input, and thanks for the info on the newsgroup - I'll do
that. When I've found out a definitive answer, I'll post it back here for
reference.
Thanks Joe.
rgds
> Hi. That's as I understand it, but you should definitely follow up
> with a post to the microsoft.public.sqlserver.jdbcdriver newsgroup
> at msnews.microsoft.com. They will be the authorities, and may
> have different/better news.
>
> Joe Weinstein at BEA Systems
Rupert Woodman - 05 Feb 2007 20:42 GMT
Well, no response from the Microsoft forum.
However, I have found that the jTDS driver (http://jtds.sourceforge.net/)
does allow for the domain, with just the addition of a property, so that's
what I'm using. Works like a good 'un!
thanks chaps (Joe esp)
> Thanks for your input, and thanks for the info on the newsgroup - I'll do
> that. When I've found out a definitive answer, I'll post it back here for
[quoted text clipped - 10 lines]
>>
>> Joe Weinstein at BEA Systems
Rupert Woodman - 07 Feb 2007 15:21 GMT
This is the reply I got from Microsoft about it (bottom line: I can't do
what I want with the Microsoft driver):
> Hello Rupert,
>
[quoted text clipped - 10 lines]
> is
> what you would need to use to implement this.
rgds
Rupert
> Well, no response from the Microsoft forum.
> However, I have found that the jTDS driver (http://jtds.sourceforge.net/)
[quoted text clipped - 17 lines]
>>>
>>> Joe Weinstein at BEA Systems