473,383 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Autentication dialog

How can I make an autentication dialog, to get a user name and a password???

[]s...
Nov 18 '05 #1
14 1151
Turn off Anonymous authentication, turn on Basic.

You'll get a dialog.

Otherwise, just make a standard form with 2 text fields?

Jeff
"Ricardo" <r_******@hotmail.com> wrote in message
news:#7**************@TK2MSFTNGP15.phx.gbl...
How can I make an autentication dialog, to get a user name and a password???
[]s...

Nov 18 '05 #2
but i a user type a complete url with the page(some other page in the
site, not the one with dialog) how can i make the page call the dialog
again???
So there I can protect all the site...
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:OB**************@TK2MSFTNGP14.phx.gbl...
Turn off Anonymous authentication, turn on Basic.

You'll get a dialog.

Otherwise, just make a standard form with 2 text fields?

Jeff
"Ricardo" <r_******@hotmail.com> wrote in message
news:#7**************@TK2MSFTNGP15.phx.gbl...
How can I make an autentication dialog, to get a user name and a

password???

[]s...


Nov 18 '05 #3
Did you try it? Any page will get the dialog (but only the first one)

Set NTFS permssions on the pages.

Jeff
"Ricardo" <r_******@hotmail.com> wrote in message
news:#W**************@TK2MSFTNGP11.phx.gbl...
but i a user type a complete url with the page(some other page in the
site, not the one with dialog) how can i make the page call the dialog
again???
So there I can protect all the site...
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:OB**************@TK2MSFTNGP14.phx.gbl...
Turn off Anonymous authentication, turn on Basic.

You'll get a dialog.

Otherwise, just make a standard form with 2 text fields?

Jeff
"Ricardo" <r_******@hotmail.com> wrote in message
news:#7**************@TK2MSFTNGP15.phx.gbl...
How can I make an autentication dialog, to get a user name and a

password???

[]s...



Nov 18 '05 #4
Hi Ricardo,
Follow what Jeff says that should work if u uncheck Anonymous
Access in ur IIS.
And what sort of Authentication are u looking for?

"Ricardo" wrote:
How can I make an autentication dialog, to get a user name and a password???

[]s...

Nov 18 '05 #5


I'm thinking of use the domain account, the web site will be in the
enterprise intranet... But I'll have to look out how to do this...
The problem with setting the site to permissions is that there's others
sites in the intranet... If I set IIS to ask for password, it will ask
for a password for every site, even the publics ones... right???
[]s....

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #6
Would you please try these things before asking?? The answer is NO, you set
authentication for each site, not the whole of IIS.

If this is on an intranet, then you can use Windows Integrated
authentication. You won't even need to use a login/password dialog. May I
suggest you get a book on IIS and how it authenticates. I wrote one on IIS4
a few years back, I'm sure there are more recent books out there.

But get busy a try a few things first yourself. Install IIS on your own box,
and try to get to it from other machines, for example.

Jeff
"Ricardo Luceac" <r_******@hotmail.com> wrote in message
news:Ok**************@TK2MSFTNGP09.phx.gbl...


I'm thinking of use the domain account, the web site will be in the
enterprise intranet... But I'll have to look out how to do this...
The problem with setting the site to permissions is that there's others
sites in the intranet... If I set IIS to ask for password, it will ask
for a password for every site, even the publics ones... right???
[]s....

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #7

thx... I'll try that...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #8
Ricardo,
The best thing to do is to try and implement an example urself!!!
I'm not sure what you are trying to do is to implement security on an
intranet.
If that is right then u need Windows Authentication(Which if u have an
Active Directory u could validate against
it as a data store since all user credentials are there)
And u could also have NTFS permission (but the user would be prompted with
logon dialog everytime they
visit the site)
If what u want is Windows Auth i can guide to that..
"Ricardo" <r_******@hotmail.coadom> wrote in message
news:#W**************@TK2MSFTNGP11.phx.gbl...
but i a user type a complete url with the page(some other page in the
site, not the one with dialog) how can i make the page call the dialog
again???
So there I can protect all the site...
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:OB**************@TK2MSFTNGP14.phx.gbl...
Turn off Anonymous authentication, turn on Basic.

You'll get a dialog.

Otherwise, just make a standard form with 2 text fields?

Jeff
"Ricardo" <r_******@hotmail.com> wrote in message
news:#7**************@TK2MSFTNGP15.phx.gbl...
How can I make an autentication dialog, to get a user name and a

password???

[]s...



Nov 18 '05 #9
I would write an include that is part of evey aspx. I would store a
value in the session collection or the cookie collection that states
if the user is logged in. If not redirect to the login page. That is a
pretty standard way for web.
if(Session["LoggedIn"] == null){
Response.Redirect("www.hampsterdance.com");
}
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message news:<#m**************@TK2MSFTNGP15.phx.gbl>...
Would you please try these things before asking?? The answer is NO, you set
authentication for each site, not the whole of IIS.

If this is on an intranet, then you can use Windows Integrated
authentication. You won't even need to use a login/password dialog. May I
suggest you get a book on IIS and how it authenticates. I wrote one on IIS4
a few years back, I'm sure there are more recent books out there.

But get busy a try a few things first yourself. Install IIS on your own box,
and try to get to it from other machines, for example.

Jeff
"Ricardo Luceac" <r_******@hotmail.com> wrote in message
news:Ok**************@TK2MSFTNGP09.phx.gbl...


I'm thinking of use the domain account, the web site will be in the
enterprise intranet... But I'll have to look out how to do this...
The problem with setting the site to permissions is that there's others
sites in the intranet... If I set IIS to ask for password, it will ask
for a password for every site, even the publics ones... right???
[]s....

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #10
Not for an intranet

"Bliss" <bg***********@landolakes.com> wrote in message
news:61**************************@posting.google.c om...
I would write an include that is part of evey aspx. I would store a
value in the session collection or the cookie collection that states
if the user is logged in. If not redirect to the login page. That is a
pretty standard way for web.
if(Session["LoggedIn"] == null){
Response.Redirect("www.hampsterdance.com");
}
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message

news:<#m**************@TK2MSFTNGP15.phx.gbl>...
Would you please try these things before asking?? The answer is NO, you set authentication for each site, not the whole of IIS.

If this is on an intranet, then you can use Windows Integrated
authentication. You won't even need to use a login/password dialog. May I suggest you get a book on IIS and how it authenticates. I wrote one on IIS4 a few years back, I'm sure there are more recent books out there.

But get busy a try a few things first yourself. Install IIS on your own box, and try to get to it from other machines, for example.

Jeff
"Ricardo Luceac" <r_******@hotmail.com> wrote in message
news:Ok**************@TK2MSFTNGP09.phx.gbl...


I'm thinking of use the domain account, the web site will be in the
enterprise intranet... But I'll have to look out how to do this...
The problem with setting the site to permissions is that there's others sites in the intranet... If I set IIS to ask for password, it will ask
for a password for every site, even the publics ones... right???
[]s....

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #11
Yes, what I'm trying to do is implement security in the intranet, I need
that the users of my intranet be auth. to use the site. The problem is
that my domain is nt 4 and I don't want that every user on the domain
have access to that site... If I turn windows auth. in the IIS and give
permission to the directorys of the site only to the people I want to
use it, will work???

The user may logon but will have an access denied???

[]s...

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #12

Yeah, I think of that, but if the user go direct to a page that have
this instructions, doesn't it will generate an error that the variable
isn't declared???

[]s...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #13
You need to add the users you want access into a local group on the IIS box.
Add domain users or global groups into a local group on the IIS box, then
use NTFS to set permissions. Users that are set up correctly won't get a
dialog at all, but users that are denied access will get Access Denied.

Again, please TRY IT before continuing to ask questions.

Jeff

"Ricardo Luceac" <r_******@hotmail.com> wrote in message
news:OW**************@tk2msftngp13.phx.gbl...
Yes, what I'm trying to do is implement security in the intranet, I need
that the users of my intranet be auth. to use the site. The problem is
that my domain is nt 4 and I don't want that every user on the domain
have access to that site... If I turn windows auth. in the IIS and give
permission to the directorys of the site only to the people I want to
use it, will work???

The user may logon but will have an access denied???

[]s...

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #14
You could set up an ISAPI filter on your root web to forward all
requests to a page that creates this session or you could create in an
application var on start up. Lots of ways to do this.
Ricardo Luceac <r_******@hotmail.com> wrote in message news:<O6**************@TK2MSFTNGP09.phx.gbl>...
Yeah, I think of that, but if the user go direct to a page that have
this instructions, doesn't it will generate an error that the variable
isn't declared???

[]s...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MAX | last post by:
hello, i have to reach a web service which need a client autentication with certificate. the certificate they gave me is in pkcs#12 format .p12 file. i have istalled this cert both on...
23
by: George | last post by:
Is there a way to customize the open file common dialog? I am trying to modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common...
1
by: Carmine | last post by:
I'm currently writing a small program that churns on a repetitive task while displaying a progress & cancel modeless dialog. I've been having problems due to threadlocking, and I was wondering if...
4
by: Alexander | last post by:
Hi, I have written a program that takes on some operations much more time than I expected. As I have seen users clicking wildly on the screen to make something happen, I want to follow the...
10
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a...
11
by: Zytan | last post by:
I have created a new form from the main form. When I close the main form with the 'x' close button, its Form.FormClosed event is run, but not the dialog's. Is this normal? It is ok /...
0
by: atrofiado | last post by:
hello You have a sample code with autentication in Active Directory in vbscript ???? thank's
0
by: Moezzie | last post by:
So ive got a bit of a problem here. Ive been searching the net about this for quite some time now but i just cant seem to figure out how to open a dialog that ive made in QtDesigner. Of corse i...
11
by: VK | last post by:
In the continuation of the discussion at "Making Site Opaque -- This Strategy Feasible?" and my comment at http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2 I have...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.