.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

ASP.NET Windows Authetication under multiple domains

Posted By:      Posted Date: September 23, 2010    Points: 0   Category :ASP.Net
 

Hi, I hope I will get a solution for my problem here. My question is how users from ohter AD domains can access a web site using windows authentication (web site level) and Automatic logon only in Intranet zone (IE level) turned on?

I just repost my issue here.

Thanks

------------------------------

Hi,

I am struggling to set up a web site which sits in multiple domains.

I have two AD domains - Main and Secondary.

My site is configured as below.

.....

<authentication mode="Windows"/>
  <identity impersonate="false"/>
  <roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"/>
  <authorization>
   <allow users="*"/>
   <deny users="?"/>
  </authorization>

....

<location path="Default.aspx">
  <system.web>
   <authorization>
    <allow roles="Secondary\All Staff,Main\Site-Editor"/>
    <deny users="?"/>
    <deny users="*"/>
   </authorization><


View Complete Post


More Related Resource Links

Windows Forms: Give Your .NET-based Application a Fast and Responsive UI with Multiple Threads

  

If your application performs any non-UI processing on the thread that controls the user interface, it may make the app seem slow and sluggish, frustrating users. But writing multithreaded apps for Windows has long been restricted to C++ developers. Now with the .NET Framework, you can take advantage of multiple threads in C# to control the flow of instructions in your programs and isolate the UI thread for a fast and snappy user interface. This article shows you how. Also, it discusses the pitfalls of multiple threads and presents a framework for safe concurrent thread execution.

Ian Griffiths

MSDN Magazine February 2003


Multiple domains in single asp.net mvc application

  

Hi,

 

I want to use my asp.net mvc application with multiple domains (maybe of hundreds),

so I have created custom Route class that matches requests including domain.

Each domain could has different routes, so the number of routes in RouteTable can be huge

(eg 500 domains, each 20 routes = 10000 routes in RouteTable).

I am considering how it will be efficient?

 

I have an idea to replace RouteTable.Routes (of type RouteCollection)

with custom one (of type Dictionary<string, RouteCollection>).

But how I can override default route matching mechanism with my custom mechanism which will be two step:

1) retrieve RouteCollection from dictionary based on domain name

2) retrieve specyfic Route object (standard route matching mechanism)

How can I do this?

 

Maybe someone has better idea for solving this problem?

 

Thanks in advance

Janusz


Multiple Windows Authentication options on login after Web App restore

  
Hi I have a question regarding SharePoint Foundation 2010 and backup / restore jobs... I'm doing nightly farm backups using PowerShell: Add-PsSnapin Microsoft.SharePoint.PowerShell Set-location $home Backup-SPFarm -Directory \\same-server\***** -BackupMethod Differential This morning I decided to try and restore a single web application, just to make sure it works. In Central Administration I selected the latest farm backup and then selected the node for the Web Application and choose restore (using option: Same configuration) because it's the same server. Restore process went fine, no failure messages, and I can see that it has restored the content I deleted for testing. BUT when I enter the site. I'm presented with a Login page (that you would see if you have also configured Forms Authentication for the same zone, which I have not) and the drop down box show two options: "Windows Authentication" and "Windows Authentication". Both let me use windows credentials to login so basically the login page is pointless and it wasn't there before. I should note: The Web Application was and is configured to use Claims Based Authentication and for Windows Authentication: Kerberos. Nothing for forms. Default sign in page. And I was never presented with this redundant login page before the restore. Anyone knows why this could be happening and how to solve it?? Than

How to use single windows service to host multiple WCF Services instances (Each instance of WCF is i

  
How to use single windows service to host multiple WCF Services. I have a mutiple instance of same WCF service in different folder, each instance has unique service name and port. WCFService has reference to Reg-Free COM Reference, i have Native.WCFService.manifest in each folder. Ex: WCFService1 is in "C:\WCFService01\WCFService.dll, Native.OCWCFService.manifest, OCWCFService.dll.config WCFService2 is in "C:\WCFService02\WCFService.dll, Native.OCWCFService.manifest, OCWCFService.dll.config Now i need host above services from single Windows Service. I am trying to create AppDomain for each above WCFService Instance from Windows Service and then host. Its working if i register COM dll in the server using regsvr32, but when i un register COM dll, i am getting unable to load COM component .... This looks like AppDomain is not loading COM DLL and Manifest files. Its looks strange but we need it in this way because we have production and test environment in the same server. Everything works fine if create a seperate Windows Service for each WCFService Instance, but my manager wants single Windows Service :). Any help whould be really appreciated.  ravi kumar reddy

Sharepoint 2007 Upload Multiple Documents error on Windows Vista

  
Hi all, I am having an issue uploading multiple documents from a share using the "Upload Multiple Documents" on the toolbar in a document library. The user experiencing this problem has a Windows Vista machine that recently replaced XP. They have mapped shares that they use. The shares work fine in windows explorer, but when you click the + next to the share through the "Upload Multiple Documents" function on sharepoint, the machine thinks for a while, then removes the + and shows no documents. Anyone know why this is happening?

Cannot upload multiple documents from DFS network drive with Windows 7

  
Hi,   We have a Moss2007 installation with SP2 and CU update October 2009. All our clients have a network drive to a DFS link. We use XP, Vista and Windows7 clients   Our DFS structure: DFS-Namespace\A LOT OF DFS-Links\   Problem: When a Windows 7 user want to upload multiple documents (Doc Library menu->Upload->Upload Multiple documents), he cannot expand the DFS network drive. This problems is only on Windows7 and not on XP or Vista.   I think that Windows 7 has another interpretation about the DFS links because when we try to upload multiple documents from a network drive that is linked directly to a DFS folder, you see all the folders and documents when expanded.     \\DFS-Namespace\DFS-Links   -> Not working \\DFS-Namespace\DFS-Link\folder   -> No problem     When you go directly to the network drive though Windows explorer, you see that Windows 7 show a folder with shortcut icon instead of a normal folder icon for a DFS LINK. Windows Vista show’s  an normal folder icon for a DFS Link. Maybe not relevant, it ‘s only a remark.     Someone any idée?   Regards,

1 aspnetdb for multiple domains

  
Background: My GoDaddy Hoste account currently hostes the website for the entire league, and multiple team websites (with hundreds more to come with growth).  Each team website is built from a template, has a unique URL and is hosted in a directory dedicated to that domain. aspnetdb: Each team's administrator logs into the team website to make changes.  I learned to make use of the Login controls and Microsoft's aspnetdb and was inspired to have one, single aspnetdb database to serve all team websites.  It works just fine, or so I thought.  The problem is that the administrator credentials work for all websites - so the adminstrator for team A can have lots of fun with team B's website. The Question: How do I reconfigure the aspnetdb database to allow for the following: Master Adminstrator (me) that can log into all websites Team Adminstrator that can only log into his/her own team website - not the others. Please help!  Thanks.

WPF Sample with multiple windows

  
Hi, Is there any WPF application aval for download which has some icons on the form and  onclicking on those icons it opens windows inside the app? I have seen Family.show, but its hard to customize for my needs.  Thanks

Windows authentication & Roles within multiple Active Directories

  

Hi,

I am struggling to set up a web site which sits in multiple domains.

I have two AD domains - Main and Secondary.

My site is configured as below.

.....

<authentication mode="Windows"/>
  <identity impersonate="false"/>
  <roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"/>
  <authorization>
   <allow users="*"/>
   <deny users="?"/>
  </authorization>

....

<location path="Default.aspx">
  <system.web>
   <authorization>
    <allow roles="Secondary\All Staff,Main\Site-Editor"/>
    <deny users="?"/>
    <deny users="*"/>
   </authorization>
  </system.web>
 </location> 

<location path="Edit.aspx">
  <system.web>
   <authorization>
    <allow roles="Main\Site-Editor"/>
    <deny users="?"/>
&n

Using multiple windows

  

Hi,

 

How can I use a private sub from one form in another? So I have a private sub called 'PasteFromClipboard' in my main form, and I want to activate that sub from another.

 

How do I do it in WPF?! Normally in Window2 I would just type Window1.PasteFromClipboard() but it doesn't work!

Thanks!


is session shared within multiple browser windows (not tab)

  

Hi guys,

Really confused on this... let me explain the scenario.

i have a application on .net 2.0 .

once user is logged in, various session variables are stored for that users profile information (normal stuff). when user open a browser window and after doing some operation, closes the browser window directly.

and then reopen new window and try to access homepage of same application... he is presented with profile of the user which was logged in before (and widnow was shut down)

is this behaviour normal and common across all IE versions?

this behaviour is not consistent.... sometimes, its showing homepage of old user and sometimes its  showing login page (as if session is invalidated)

is there any way to abandon all session if browser window is closed (apart from capturing browser window close event)

hope i get some replies on this...


Can I use MSMQ across multiple domains?

  

We had a scenario recently where a high volume of concurrent requests had to be handled. Instead of overloading the server, we thought of using a queued model. With WCF we went for MSMQ binding. My question is can we use MSMQ if we have our server in a different domain?

 

 


Windows authetication in sharepoint

  

Hi,

 I am new to the authentications in Moss 2007.I am using windows authetication NTML in moss2007.The  Website went to a scan for security.The scan reported that there are persistent cookies.How can i set time for persistent cookies in sharepoint.Please let me know if i am not clear.

Thanks,

Sreemouni


To create Multiple Instances in windows application?

  

we are running multiple instances of application.we want to have  connection string seperate for each instance as long as instance is running?

How to achieve?

application created in .net 3.5

Please Help.


How to Impersonate between 2 different domains in windows 2008 server

  

How to Impersonate between 2 different domains in windows 2008 server

I have a domianx/userA, my windows service is running in this domain, in that windows service Impersonate functionality is implemented by using

IntPtr tokenHandle = new IntPtr (0);

  Longonuser(Username,Domainname, password,           LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT,ref tokenHandle); )

 

I am passing Username =UserB and Domain name=DomainY to this method

This method returning false with 1326 from GetLastWin32Error ()

My service has to save some image files after impersonating that domain, but it is failing.

Any help will be appreciated


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend