ooto.info

Finally up on CS2007 - getting ready for 2008 - it is AMAZING!

Trusted Connections: There's more to it than that

Yesterday I resolved some jobs issues on a couple of my sites by switching trusted connection off (see Don't use trusted connection...).  When talking to some of the guys here at the office, it became obvious that there is more to this issue than just trusted connections.  As a matter of fact, some people hold that the prefered method is to use trusted connections (your username and password aren't sitting in your web.config for the world to see should some malevolent soul gain access to your box). 

So, here's the thought process: your website runs under the authority of the identity selected in the app pool of the web site (go to IIS, look at the Home Directory tab of your website to identify your app pool then go to the identity tab on the properties for the application pool you're using).

That user is the account that must connect to the database.  When I checked for the account in my database, it wasn't explicitly included.  I added the user, gave the permissions I desired for running Community Server, updated my web.config to remove username and password, added back trusted connection and tested...

Well, what do you know; all jobs are running!

Now, why did my site work at all if that user wasn't in my database for the site?  I can only make a few guesses - maybe I'll update this post when I have a definative answer but I'm leaning heavily towards miracle right now...  Ok, not really - there are logins at the server level in SQL and I'm assuming that my user had some access through that but for some reason the user could not run all of the jobs.  By adding the user to my database and giving it explicit permissions I've fixed my issue.  If I learn more, I'll let you know.

Short version of the story: trusted connections are ok! 

Comments

Daily News Faq List said:

Telligent's Adonis Bitar blogs on using Trusted Connections with Community Server .

# November 22, 2006 10:52 AM

Community Server Bits said:

Telligent's Adonis Bitar blogs on using Trusted Connections with Community Server .

# March 12, 2007 11:04 AM

Sasha said:

<a href= � ></a>

# October 7, 2008 12:04 PM

Alina_m said:

<a href= http://monfobu.com ></a>

# October 29, 2008 6:21 PM

Alina_m said:

<a href= http://monfobu.com ></a>

# October 29, 2008 6:21 PM

Alina_m said:

<a href= http://monfobu.com ></a>

# October 29, 2008 6:21 PM

Alina_m said:

<a href= http://avoidcar.com ></a>

# October 31, 2008 1:47 PM

Future_dim said:

<a href= http://avoidcar.com ></a>

# October 31, 2008 9:07 PM

Future_dim said:

<a href= http://tipon4.com ></a>

# November 4, 2008 2:34 PM

Alina_m said:

<a href= http://tipon4.com ></a>

# November 4, 2008 6:39 PM

balabo3_hv said:

<a href= http://chufut.angelfire.com >bbr brakepedal</a>

# November 9, 2008 1:17 AM

balabo3_ef said:

<a href= http://vetrin.angelfire.com >physicians in beverly hills michigan</a>

# November 9, 2008 5:48 AM

balabo3_hx said:

<a href= lizard-masterm.angelfire.com >goldsmiths golf</a>

# November 9, 2008 10:37 AM

balabo3_hx said:

<a href= lizard-masterm.angelfire.com >goldsmiths golf</a>

# November 9, 2008 10:37 AM

Gina_M said:

<a href= http://index1.riddark.com >real female crucifiction</a>

# November 12, 2008 3:30 AM

Dmitr said:

<a href= http://index1.riddark.com >andy roddick pics</a>

# November 12, 2008 6:20 AM

balabo3_wn said:

<a href= aseeds.one.angelfire.com >transvestite rockstar</a>

# November 15, 2008 5:37 PM

balabo3_bn said:

<a href= http://chufut.angelfire.com >bbr brakepedal</a>

# November 15, 2008 10:00 PM

balabo3_pi said:

<a href= http://vetrin.angelfire.com >physicians in beverly hills michigan</a>

# November 16, 2008 2:36 AM

balabo3_pi said:

<a href= http://vetrin.angelfire.com >physicians in beverly hills michigan</a>

# November 16, 2008 2:38 AM

Rici said:

<a href= http://index1.geribag.com >mature thumb posts</a>

# November 16, 2008 3:10 PM

Polina said:

<a href= http://index1.geribag.com >stream videos with psp</a>

# November 16, 2008 6:02 PM

Vani said:

<a href= http://index1.bows4.com >fredericks hollywood lingerie</a>

# November 19, 2008 4:28 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)