Microsoft Content Management Server - GetByGUID login?

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > June 2007 > GetByGUID login?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author GetByGUID login?
HokieRTP

2007-06-19, 1:21 pm

I have a hidden channel "Admin" that contains placeholders for our client to
enter content that is then displayed consistently throughout the website. We
store the Admin posting GUID's in the web.config file and then have user
controls that retrieve the placeholder content in the appropriate posting and
display as needed.

All works great, but we need to lock down the Admin channel so that it
exists on the public server but can't be accessed by the public if they were
to put in the direct path to the Admin channel. If I lock it down, how do I
still retrieve the Admin channel postings and content to display througout
the website?

I assume there must be a way to pass login credentials when doing a
getbyguid or some sort?

TIA
Stefan Goßner [MSFT]

2007-06-19, 1:21 pm

Hi,

you would need to use a CmsApplicationContext and authenticate with fixed
credentials.
Then use this application context do do the getbyguid.
Be sure to dispose the CmsApplicationContext afterwards to avoid memory
leaks.

Cheers,
Stefan


"HokieRTP" <HokieRTP@discussions.microsoft.com> wrote in message
news:7887EA2C-25F9-4EB3-89A0-B66EA405AAC8@microsoft.com...
>I have a hidden channel "Admin" that contains placeholders for our client
>to
> enter content that is then displayed consistently throughout the website.
> We
> store the Admin posting GUID's in the web.config file and then have user
> controls that retrieve the placeholder content in the appropriate posting
> and
> display as needed.
>
> All works great, but we need to lock down the Admin channel so that it
> exists on the public server but can't be accessed by the public if they
> were
> to put in the direct path to the Admin channel. If I lock it down, how do
> I
> still retrieve the Admin channel postings and content to display througout
> the website?
>
> I assume there must be a way to pass login credentials when doing a
> getbyguid or some sort?
>
> TIA



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com