473,385 Members | 1,848 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,385 software developers and data experts.

Verify User Credentials

I am writing an app that requires somebody to be a domain
user on our internal network.

As our users have a habit of leaving their desktops
logged in, I would like them to retype their domain
password to verify it is them.

How do I verify that a given username and password are
correct?

Cheers

Martin
Nov 15 '05 #1
3 4878
P/Invoke.
Call the LogonUser or LogonUserEx API function

-Rob Teixeira [MVP]

"Martin Hazell" <ma***********@toomuchspam.iomcreameres.com> wrote in
message news:01****************************@phx.gbl...
I am writing an app that requires somebody to be a domain
user on our internal network.

As our users have a habit of leaving their desktops
logged in, I would like them to retype their domain
password to verify it is them.

How do I verify that a given username and password are
correct?

Cheers

Martin

Nov 15 '05 #2
LogonUser API?

-vJ

"Martin Hazell" <ma***********@toomuchspam.iomcreameres.com> wrote in
message news:01****************************@phx.gbl...
I am writing an app that requires somebody to be a domain
user on our internal network.

As our users have a habit of leaving their desktops
logged in, I would like them to retype their domain
password to verify it is them.

How do I verify that a given username and password are
correct?

Cheers

Martin

Nov 15 '05 #3
Thanks - was wondering if there was a way of doing it
within the framework, but never mind.

Thanks

Martin

-----Original Message-----
P/Invoke.
Call the LogonUser or LogonUserEx API function

-Rob Teixeira [MVP]

"Martin Hazell" <ma***********@toomuchspam.iomcreameres.com> wrote inmessage news:01****************************@phx.gbl...
I am writing an app that requires somebody to be a domain user on our internal network.

As our users have a habit of leaving their desktops
logged in, I would like them to retype their domain
password to verify it is them.

How do I verify that a given username and password are
correct?

Cheers

Martin

.

Nov 15 '05 #4

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

Similar topics

2
by: Brian Madden | last post by:
Hello Everyone, This is sort of a followup to the protecting files question I asked earlier today. I would like to protect a file so that only certain users could download it from my website....
8
by: Pete Wittig | last post by:
Hello, I am wondering if it is possible to create a networked application with C# that is seen as a windows user. For example, if Bob logged onto windows and then started the application, any...
3
by: Jørn A. | last post by:
I'm working on a web based user interface for a job scheduling system (running scripts). The system is using a non-windows scheduler software, but it's installed and running as a windows...
0
by: fadi | last post by:
Hey guys, I've been working on this for few days with no luck. I need to create folders and files on a remote server using UNC Path. This works great as long as the user can authenticate first,...
3
by: Dmitry | last post by:
I am trying to figure out how to pass set of credentials to System.IO Challenge is: App is running under one set of credentials, but via GUI user have a chance to enter another set. I would like...
18
by: Arthur | last post by:
Hi All, I would like to get the name of the user given their networkID, is this something Active Directory would be useful for?(For intranet users) If so, can you please point me to some sample...
9
by: webrod | last post by:
Hi all, how can I check a user/password in a LDAP ? I don't want to connect with this user, I would like to connect to LDAP with a ADMIN_LOG/ADMIN_PWD, then do a query to find the user and...
30
by: diane | last post by:
I've got an application running with table-based security: i capture the user's windows login with fOsusername, then have them enter a password checked against their username/login in my own table....
9
by: Gordon | last post by:
I want to add a feature to a project I'm working on where i have multiple users set up on my Postgres database with varying levels of access. At the bare minimum there will be a login user who...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.