473,698 Members | 2,339 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Authentication

Hi there...

I am trying to use the Windows user/password combination to grant or
deny access to my application. For this I want to display a login
dialog window requesting the userID and password and submit these two
to Windows (98 / 2000 / XP) and obtain back a confirmation or denial
of the access.

Any help will be appreciated. Code sample even more.

Thanks folks...
Nov 21 '05 #1
3 4616
Pepi,

Do you know there is a complete sample in the VB resourcekit about your
question.

Create a Login Dialog Box
VB.net Resource kit
http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

And if you have problems installing the resource kit
http://msdn.microsoft.com/vbasic/vbr...q/#installvdir

I hope this helps?

Cor
I am trying to use the Windows user/password combination to grant or
deny access to my application. For this I want to display a login
dialog window requesting the userID and password and submit these two
to Windows (98 / 2000 / XP) and obtain back a confirmation or denial
of the access.

Any help will be appreciated. Code sample even more.

Nov 21 '05 #2
Cor, just an FYI:

I finally got a chance to take a look at the Resource Kit you spoke of.

There is a "How-To Create a Login Dialog Box" that is pretty slick. But, it
does NOT prompt for a Windows username/password. It only works with a
custom username/password from a backend db or xml. (There is a checkbox to
slide by authentication if you are logged in as an administrative account
into windows, but it doesn't prompt for and check your windows password.)

I have made something that queries AD and does want I want, but I was hoping
for a MS perspective on how to do this.

(Even though the user is already logged onto the computer, we have a
requirement that they must log into the app to proceed. And we want to reuse
the username/password info already in AD.)

Thanks,
Greg

"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:OC******** ********@TK2MSF TNGP12.phx.gbl. ..
Pepi,

Do you know there is a complete sample in the VB resourcekit about your
question.

Create a Login Dialog Box
VB.net Resource kit
http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

And if you have problems installing the resource kit
http://msdn.microsoft.com/vbasic/vbr...q/#installvdir

I hope this helps?

Cor
I am trying to use the Windows user/password combination to grant or
deny access to my application. For this I want to display a login
dialog window requesting the userID and password and submit these two
to Windows (98 / 2000 / XP) and obtain back a confirmation or denial
of the access.

Any help will be appreciated. Code sample even more.


Nov 21 '05 #3
Greg,

You are right, I knew there was something with my message and always when I
look at that login I think "that is very basic and I miss the authority",
however some people want to do the authority using there SQL server maybe
that was the reason they did it that way.

But there is as well a sample in the resource kit about Role Based Security,
I think that combining those two would a good entree to the problem.

Thanks for pointing me on this.

Cor
"Greg Burns"
....
Cor, just an FYI:

I finally got a chance to take a look at the Resource Kit you spoke of.

There is a "How-To Create a Login Dialog Box" that is pretty slick. But, it does NOT prompt for a Windows username/password. It only works with a
custom username/password from a backend db or xml. (There is a checkbox to slide by authentication if you are logged in as an administrative account
into windows, but it doesn't prompt for and check your windows password.)

I have made something that queries AD and does want I want, but I was hoping for a MS perspective on how to do this.

(Even though the user is already logged onto the computer, we have a
requirement that they must log into the app to proceed. And we want to reuse the username/password info already in AD.)

Thanks,
Greg

"Cor Ligthert"

Nov 21 '05 #4

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

Similar topics

8
3704
by: Bob Everland | last post by:
I have an application that is ISAPI and the only way to secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to the ISAPI application no boxes come up. I want an ASP page to sit between the user and the ISAPI application. The rest of my application is using authentication that is database driven and wouldn't want the users to know the userid and password. Is this possible? If so...
1
2129
by: sherkozmo | last post by:
I have my SQL 7.0 server set for Mixed security. I see now (finally) the advantages of having windows authentication security for windows groups. I do most of my developing in Access Projects which require a login of some type. I have been using my SQL login to develop with SQL and then when I give it to the user, I set the project to use Windows authentication. I want to be able to have Windows authentication on my domain account but...
1
528
by: Mark | last post by:
When our staff are logged into a computer on our domain, they're still prompted for their domain login and password to get into our ASP.NET application in Internet Explorer when using Windows Authentication. Is it possible to leverage the windows authentication from a client pc that is already on the domain and authenticated?? Thanks in advance. Mark
4
6803
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok. :)
5
2689
by: pberna | last post by:
Dear all, I built a Web Form application to start and stop a Windows Service remotely. I successful tested the application on Windows 2000 server + IIS. I must include the ASPNET user to the Administration group (on server side) to have the necessary authorization to start a Windows Service (I don't understand why "Power User" rights are not enough to do the same thing) Although I'm able to start a service using windows 2000 server...
6
7548
by: Kevin Yu | last post by:
is it possible to for user to click a logout button to logout and when the user want to get into the system again, the user have to login again? Kevin
8
3427
by: Nils Magnus Englund | last post by:
Hello, I am having trouble using Integrated Windows Authentication between our intranet server and our database server, both of which are on our local domain. Windows authentication works for our intranet server - my domain user "DOM\nme" is correctly authenticated and authorized to view the ASP.NET page on our intranet. The ASP.NET application uses impersonation (<identity impersonate="true"> in Web.config).
10
4054
by: Hriday | last post by:
Hi there, Please help me..It is urgent This is Hriday, working on windows authentication with Active Directory... My requirment is when a user sends a request to my web Applicatoin I want to Pop up windows Authentication box so that user will give his userId, Password & domain name for authenticaion. After that I want to take these three info of user and make a search in Active Directory.
7
3027
by: Alice Wong | last post by:
I am setting up my Web ASP.net application to connect to Sql server using windows authentication. I set up IIS to have integrated windows authenication and sql to allow Windows authentication. And I trun annonymous login. I use this connection to connect. server={0};database={1};Integrated Security=SSPI where {0} servname and {1} database name
4
2349
by: Preben Zacho | last post by:
Hi there The scenario I got is this: I have created a Windows application in VS and I want to deploy it to another machine running Windows Vista. Since I have no control over this other machine, I've set it up to run SQL Authentication and I have added a new user called "MyUser" and applied a password. This user/password is used in my connection string whick looks like this: Server=.\SQLEXPRESS;Database=MyDB;User...
0
8603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8895
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7725
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.