Re: Authentication problem

From: Gary A. Bushey (bushey_at_mindspring.com.REMOVETOSEND)
Date: 06/16/04


Date: Wed, 16 Jun 2004 08:38:58 -0400

It appears that you are accessing the Object Model with having permissions
to do so. There are a few things you could do, all of which are found in
the SPS SDK under "Code Access Security". The easiest and quickest to try
is to install your web part's DLL into the GAC and see if that resolves it.
Other options include changing the default security level for all web parts,
changing it for just this web part, and using impersonation within the web
part itself.

-- 
Gary A. Bushey
SPS MVP
bushey@mindspring.com
"Ken Crosson" <kpc_ng@twinengines.com> wrote in message
news:1ce2301c45325$e3c9b900$a101280a@phx.gbl...
> I've posted this problem twice elsewhere, but as I am
> better able to explain exactly what isn't working, I hope
> someone will be able to solve this one:
>
> I have a web part which, when added to a page, makes it
> impossible for some users to log in to the site.  This web
> part simply presents links to the child sites directly
> below the site on which the web part is located.
>
> It generates the links in a loop like so:
>
> For Each oWeb In oParent.GetSubwebsForCurrentUser
>   [Create hyperlinks, table rows, etc.]
> Next
>
> When this part is on the page, users are required to log
> in three times, then sent to an error page (as a bonus,
> sometimes their accounts are locked out in Active
> Directory!).
>
> Any idea what I'm doing wrong, or how I can correct this?
>
> Thanks in advance.
>
> Ken
>
>


Relevant Pages

  • Re: Permissions granted based on assembly and user
    ... setting the Policy for specific assemblies through the ... > You can set impersonation ON and use NTFS permissions on the files. ... > should also use Code Access Security to specify what folders the plugin ...
    (microsoft.public.dotnet.security)
  • Re: project security issue
    ... This is because of .NET's Code Access Security which is configured to ... share and assign appropiate permissions. ... > The project location is not fully trusted by the .NET runtime. ... This is> usually because it is either a network share or mapped to a network> share not on the local machine. ...
    (microsoft.public.dotnet.framework)
  • Re: Safely Running a Web Application that works with WSS Objects
    ... This sounds as though it could be a Code Access Security problem. ... The application makes one query into the SQL database. ... > information is pulled from Sharepoint objects. ... > query which was fixed by giving authenticated users select permissions on ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: FxCop App Security
    ... yes, the FxCop is surely applying to all .net code, not specify to ASP.NET, ... And if you're focus on ASP.NET specific .NET CODE Access security, ... | Subject: Re: FxCop App Security ... |> permissions while refusing all other permissions the runtime otherwise ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Terminal services-give a program admin rights
    ... not the .Net framework's code access security model. ... Access to the Access app is controlled by the permissions of the ... >Terminal Server sessions which require administrative rights. ... >give Access admin rights without giving each user local admin priviledges? ...
    (microsoft.public.windows.server.security)