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

how to cange the my password through vb.net form of windows

seshu
156 100+
Hi Everybody

I need a small sujestion or any help regarding changing my windows password through vb.net code and one more thing is my system is in domain. so that i can even integrate these userid password with my applications also so that if they change there password at any time the it will effect the same chages even on my aplications

i got one solution that is by calling the perticular api of windows but iam not able to find that api so

Some one please help me

Regadrs
Seshu
Apr 30 '08 #1
1 1829
Frinavale
9,735 Expert Mod 8TB
Hi Everybody

I need a small sujestion or any help regarding changing my windows password through vb.net code and one more thing is my system is in domain. so that i can even integrate these userid password with my applications also so that if they change there password at any time the it will effect the same chages even on my aplications

i got one solution that is by calling the perticular api of windows but iam not able to find that api so

Some one please help me

Regadrs
Seshu
I'm not sure about an API that you can call...but to help you get going in the right direction I would suggest looking into Principals and Identity objects.

Principal and Identity objects are used to authenticate and authorize the end user.

Basically every Windows user is logged into their computer. When they log in a Principal object is created with an Identity object that represent the user and their security rights. Since the Principal/Identity object contains security context of the logged-in user, these objects can be used in your code in order to determine what application features should be made available to the user.

You can get the Windows Identity of the logged in user:
Expand|Select|Wrap|Line Numbers
  1. Imports System.Security.Principal
  2. Module SecurityModule
  3.     Sub Main()
  4.         Dim winIdent As WindowsIdentity = WindowsIdentity.GetCurrent()
  5.         Console.WriteLine(winIdent.Name())
  6.     End Sub
  7. End Module
But I'm not sure if your application will be able to change the security levels of the user....or change the user's password.

I'm not sure if I've been any help to you (I've mostly done ASP.NET security and haven't done any Desktop application security yet) but I hope I got you pointed in the right direction.


-Frinny
Apr 30 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Joeri KUMBRUCK | last post by:
Hello, I'm trying to create an ASP page where users can type in a username and password, and these credential should be checked with active directory. If username and password are correct, the...
1
by: william cline | last post by:
Hi, I am a beginner and below I have code for a long in form. My goal is for the form to read a file of a list of users and thier passwords ....compare the text box inputs to the file and either...
10
by: Fred | last post by:
Hi all ! Newbie in C programming needs help please ... I have a Windows console application written in C who ask a password on the command line . I want to change the original code to ask the...
5
by: Tony | last post by:
Please help, I've scoured the web but cannot find an answer to this! I want to use WebRequest to get the contents of a web page. The trouble is, the page require you to go to a login page (using...
6
by: Bevo | last post by:
We are developing a desktop application for a customer (VS 2003). The customer wants us to retrieve the Windows logon information from Active Directory, then ask the user to verify his password and...
11
by: cooltoriz | last post by:
Hello there, I just found that the compiled code won't hide the string variables so that I can see them by opening the execuable using Notepad. I have couple applications that have password...
1
by: roshina | last post by:
Hi Iam facing a problem in my project, developing a web site for online shopping in ASP on windows XP using IIS server. All the validations are ok but the new password is not upadated in the data...
1
by: Andrew Murray | last post by:
I'm a novice at coding and cannot get the script below to work I'm receiving an Error 500 in the web browser when trying to run this script. The site is www.murraywebs.com and the link is...
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....
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.