PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.db.ms-sqlserver > JDBC connections w/ AD login?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
JDBC connections w/ AD login?

Réponse
 
LinkBack Outils de la discussion
Vieux 06/09/2007, 14h42   #1
aj
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut JDBC connections w/ AD login?

I'm a newbie w/ SQL Server 2005.

We will be connecting to SQL Server 2005 via JDBC. We have made this
work by using an SQL Server account, rather than an Active Directory
(AD) account, even though SQL Server IS in mixed authentication mode.
Does mixed mode mean you can connect either way, but only using MS SQL
Server interfaces (like Mgmt Studio), and not something like JDBC?

Can we connect using JDBC w/ an AD login? If so, what form does the
login take? Is the login not in 'DOMAIN/LOGIN' form?

What is the best practice for this sort of thing? We would prefer to
use AD logins (that a sysadmin creates) rather than having a separate
(and probably equal) set of SQL Server logins.

Any appreciated.

thanks

aj
  Réponse avec citation
Vieux 06/09/2007, 22h29   #2
Erland Sommarskog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: JDBC connections w/ AD login?

aj (ronald@mcdonalds.com) writes:
> I'm a newbie w/ SQL Server 2005.
>
> We will be connecting to SQL Server 2005 via JDBC. We have made this
> work by using an SQL Server account, rather than an Active Directory
> (AD) account, even though SQL Server IS in mixed authentication mode.
> Does mixed mode mean you can connect either way, but only using MS SQL
> Server interfaces (like Mgmt Studio), and not something like JDBC?


I don't know JDBC, but I would be very surprised if JDBC would not
support SQL authentication

> Can we connect using JDBC w/ an AD login? If so, what form does the
> login take? Is the login not in 'DOMAIN/LOGIN' form?


No, it's not. When you use Windows authentication you don't specify
any login at all. All you do is to specify something like
"Trusted_connection=yes" or "Integrated Security=SSPI" in the connect
string. (Again, since I don't know JDBC, I cannot say how you do
there.) You will then log into to SQL Server with the Windows user
you are already logged in with in Windows. That is, you cannot
log in as DOMAIN\Knutte in Windows, and the log in as DOMAIN\Evapeva
in SQL Server.

> What is the best practice for this sort of thing? We would prefer to
> use AD logins (that a sysadmin creates) rather than having a separate
> (and probably equal) set of SQL Server logins.


Windows authentication is considered best practice, although there
are some improvements with SQL logins in SQL 2005.

Windows authentication is also better from a user perspective, as
SQL logins means users will need to know one more username and
password.

The situation when you need SQL login is when Windows authentication
will not work, for instance if there are users accessing SQL Server
from a non-trusted domain.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 16h08.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09523 seconds with 10 queries