Click here to Skip to main content
15,919,749 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionweb.config authorisation Pin
stickenlittle12-Nov-13 0:51
stickenlittle12-Nov-13 0:51 
Hi Everyone,
I'm trying to create a web.config file for security on an intranet.

I want it to have the following rules:

If someone browses to the site on a specific IP range, they get straight in.
If someone doesn't fall into that IP range, they are presented with a log in box that authenticates against an LDAP query.

I have gone down the route so far of the following method for IP access and it works fine.
XML
<security>
 <ipSecurity allowUnlisted="false">
  <add ipAddress="x.x.x.0" subnetMask="255.255.255.0" allowed="true"/>
 </ipSecurity>
</security>
<modules runAllManagedModulesForAllRequests="true"/>

How could I then combine this with LDAP authentication (if that's even possible)? Or should I take a different approach? My only concern so far is that the ipsecurity method is too specific and you are either allowed in or you're not with no room for another form of authentication.

Any tips would be much appreciated!

Thanks in advance,

Tom
SuggestionPlease help me or suggest in the my project description and feilds Pin
Maniteja.Vegi11-Nov-13 7:10
Maniteja.Vegi11-Nov-13 7:10 
SuggestionRe: Please help me or suggest in the my project description and feilds Pin
Richard Deeming11-Nov-13 7:20
mveRichard Deeming11-Nov-13 7:20 
GeneralRe: Please help me or suggest in the my project description and feilds Pin
Maniteja.Vegi11-Nov-13 7:28
Maniteja.Vegi11-Nov-13 7:28 
GeneralRe: Please help me or suggest in the my project description and feilds Pin
Richard Deeming11-Nov-13 7:29
mveRichard Deeming11-Nov-13 7:29 
GeneralMessage Closed Pin
11-Nov-13 7:33
Maniteja.Vegi11-Nov-13 7:33 
GeneralRe: Please help me or suggest in the my project description and feilds Pin
Richard Deeming11-Nov-13 7:38
mveRichard Deeming11-Nov-13 7:38 
GeneralMessage Closed Pin
11-Nov-13 7:49
Maniteja.Vegi11-Nov-13 7:49 
GeneralRe: Please help me or suggest in the my project description and feilds Pin
Richard Deeming11-Nov-13 7:51
mveRichard Deeming11-Nov-13 7:51 
GeneralRe: Please help me or suggest in the my project description and feilds Pin
Maniteja.Vegi11-Nov-13 7:38
Maniteja.Vegi11-Nov-13 7:38 
GeneralRe: Please help me or suggest in the my project description and feilds Pin
Chris Quinn11-Nov-13 23:54
Chris Quinn11-Nov-13 23:54 
GeneralRe: Please help me or suggest in the my project description and feilds Pin
Richard MacCutchan11-Nov-13 22:46
mveRichard MacCutchan11-Nov-13 22:46 
QuestionInsert controller return list into ListView over webpage Pin
gshhar11-Nov-13 3:19
gshhar11-Nov-13 3:19 
QuestionSize of the Div based on the Screen Resolution Pin
cybersavvy10-Nov-13 23:20
cybersavvy10-Nov-13 23:20 
AnswerRe: Size of the Div based on the Screen Resolution Pin
Gopi Kishan Mariyala11-Nov-13 16:43
Gopi Kishan Mariyala11-Nov-13 16:43 
Questionhow to convert crystal report (.rpt) to RDLC report Pin
mhd.sbt8-Nov-13 3:13
mhd.sbt8-Nov-13 3:13 
AnswerRe: how to convert crystal report (.rpt) to RDLC report Pin
thatraja8-Nov-13 4:06
professionalthatraja8-Nov-13 4:06 
QuestionC# code to fetch all attributes of an element Pin
AshwiniSH6-Nov-13 23:02
professionalAshwiniSH6-Nov-13 23:02 
AnswerRe: C# code to fetch all attributes of an element Pin
Richard MacCutchan6-Nov-13 23:08
mveRichard MacCutchan6-Nov-13 23:08 
AnswerRe: C# code to fetch all attributes of an element Pin
Kornfeld Eliyahu Peter7-Nov-13 5:22
professionalKornfeld Eliyahu Peter7-Nov-13 5:22 
QuestionMigrate Data Pin
cybersavvy6-Nov-13 19:22
cybersavvy6-Nov-13 19:22 
AnswerRe: Migrate Data Pin
Mycroft Holmes6-Nov-13 20:10
professionalMycroft Holmes6-Nov-13 20:10 
GeneralRe: Migrate Data Pin
cybersavvy6-Nov-13 20:29
cybersavvy6-Nov-13 20:29 
GeneralRe: Migrate Data Pin
Mycroft Holmes6-Nov-13 20:41
professionalMycroft Holmes6-Nov-13 20:41 
QuestionCan I connect to MS SQL using HTML & JavaScript? Pin
Michael-N6-Nov-13 8:12
Michael-N6-Nov-13 8:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.