Xaiv ib hom SQL Server Authentication hom

Microsoft SQL neeg rau zaub mov 2016 muaj cov neeg khiav dej num ob txoj kev rau kev siv li cas lub system yuav kuaj xyuas cov neeg siv: Qhov rais authentication hom los yog hom authentication.

Windows authentication txhais tau hais tias SQL neeg rau zaub mov validates tus neeg siv lub npe siv nws lub Windows username thiab password. Yog hais tias tus neeg siv twb tau authenticated los ntawm lub qhov rais, SQL neeg rau zaub mov tsis thov kom tau ib lo lus zais.

Mixed hom txhais tau hais tias SQL Server ua rau ob lub qhov rais authentication thiab SQL neeg authentication. SQL neeg rau zaub mov authentication tsim cov neeg siv logins ncaj rau Windows.

Cov Ntsiab Lus Tseeb

Kev tseeb tseeb yog tus txheej txheem ntawm kev lees paub ib tus siv lossis lub computer tus kheej. Txoj kev nquag muaj plaub ruam:

  1. Tus neeg siv ua tus thov ntawm tus kheej, feem ntau yog muab ib tus username.
  2. Cov txheej txheem siv tus neeg siv los ua pov thawj rau nws tus kheej. Qhov sib tw tshaj plaws yog kev thov rau ib lo lus zais.
  3. Tus neeg teb yuav teb rau cov lus sib tw los ntawm kev muab cov ntaub ntawv pov thawj, feem ntau yog tus password.
  4. Lub system qhia tseeb tias tus neeg siv tau muab cov ntaub ntawv pov thawj raws li, piv txwv, kos tus password los tiv thaiv ib qho chaw database password los yog siv ib qho chaw ua hauj lwm centralized authentication.

Rau peb cov kev sib tham ntawm SQL neeg rau zaub mov authentication hom, qhov taw tes tseem ceeb yog nyob rau theem plaub sab saum toj no: qhov taw tes ntawm lub tshuab qhov tseeb ntawm tus neeg siv cov pov thawj ntawm tus kheej. Qhov xaiv ntawm hom authentication txiav txim seb qhov twg SQL neeg rau zaub mov mus xyuas cov neeg siv tus password.

Hais txog SQL Cov Txheej Txheem Qhabnias

Cia peb tshawb txog ob hom no me ntsis ntxiv:

Qhov rais authentication hom yuav tsum tau siv cov neeg siv los tsim ib lub Windows username thiab password kom nkag mus rau lub database server. Yog hais tias hom no yog xaiv, SQL neeg rau zaub mov disables tus SQL neeg rau zaub mov tseeb kev ua haujlwm, thiab tus neeg siv yog leej twg paub tseeb ntawm nws tus account hauv Windows. Cov hom no yog qee zaus hu ua kev ruaj ntseg kev ruaj ntseg vim tias SQL neeg rau zaub mov kev vam khom ntawm lub qhov rais rau kev txheeb xyuas.

Mixed authentication hom pub rau kev siv cov ntawv pov thawj ntawm Windows tiam sis tshuaj nrog lawv cov neeg siv hauv zos SQL neeg siv nyiaj uas tus neeg khiav dej num tsim thiab tswj nyob rau hauv SQL neeg rau zaub mov. Tus neeg siv tus username thiab password yog ob qho tib si cia rau hauv SQL neeg rau zaub mov, thiab cov neeg siv yuav tsum rov kuaj dua txhua lub sij hawm lawv txuas.

Xaiv ib qho Authentication hom

Microsoft qhov kev pom zoo tshaj plaws kev pom zoo yog siv Windows qhov kev paub tseeb tseeb thaum twg los tau. Cov nyiaj pab tseem ceeb yog tias txoj kev siv hom no tso cai rau koj centralize tus thawj coj rau koj tus lag luam tag nrho hauv ib qho chaw: Active Directory. Qhov no ua rau nws txo qis qeeb lossis kev saib xyuas. Vim tias tus neeg siv yog leejtwg paub tseeb los ntawm Qhov Rais, tej qhov rai neeg siv thiab kev sib pab pawg tau teeb tsa los teev rau hauv SQL neeg rau zaub mov. Tsis tas li ntawd, Windows authentication siv encryption rau neeg soj ntsuam SQL neeg siv cov neeg siv.

SQL neeg rau zaub mov authentication, ntawm qhov tod tes, tso cai rau usernames thiab passwords kom dhau thoob plaws hauv lub network, ua rau lawv tsis muaj kev ruaj ntseg. Cov hom no tuaj yeem ua qhov zoo, tabsis, yog tias cov neeg siv sib txuas los ntawm kev tsis sib thooj uas tsis sib ntseeg los yog thaum muaj peev xwm siv Internet tsis ruaj ntseg dua, xws li ASP.NET.

Piv txwv, xav txog qhov scenario uas tso siab rau tus thawj xibfwb ntawm koj lub koomhaum tawm ntawm koj lub koomhaum rau cov lus sibtxiag. Yog tias koj siv hom kev qhia paub qhov Windows, tshem tawm tias tus neeg siv ntawv nkag tau qhov chaw cia thaum koj lov tes taw lossis tshem tawm DBA Lub Thaj Tsam Active Directory.

Yog hais tias koj siv hom tshuaj ID, koj tsuas tsis tau lov tes taw DBA qhov rais nyiaj, tiam sis koj yuav tsum tau sib txuas los ntawm cov neeg siv cov neeg teev npe ntawm txhua tus neeg rau zaub mov kom ntseeg tau tias tsis muaj nyiaj nyob hauv qhov chaw uas DBA yuav paub tus password. Qhov no yog qhov haujlwm ntau heev!

Hauv kev xaus, hom koj xaiv tau cuam tshuam ob theem kev ruaj ntseg thiab qhov yooj yim ntawm kev tu ntawm koj lub koom haum cov databases.