Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

change password on domain

Posted on 1998-09-29
17
402 Views
Last Modified: 2010-04-06
there's a function called "NetUserChangePassword" described in win32.hlp. only problem is: i can't find the interface in the runtime lib of delphi3. is there an interface for this func? if so, which? if not, has anybody written an interface? (the help states no dll as import library for this func, just imaccess.h as appropriate header-file).

as soon as i've got some more points i'll increase the value for this one.

if url's, please only with full source code.

(: i wanna call this func as well on win95 machines as on winnt machines; some of them have nt_domains as main login target; some of them novell servers. the goal is the synchronization in both networks. so i'm gonna write an interactive frontend to provide the user with an interface he enters is password. then i check the registry for MSNP32-services and NWNP32-services. dependant of the result, all primary login targets get the new password set for this user.)

any help aprreciated. tia,

Black Death.
0
Comment
Question by:BlackDeath
  • 9
  • 4
  • 2
  • +2
17 Comments
 
LVL 1

Author Comment

by:BlackDeath
ID: 1341131
ach, one more thing:

would be nice (if somebody has an interface), if there would be a declaration for NetGetDCName, too...

Black Death.
0
 
LVL 1

Expert Comment

by:Greedy
ID: 1341132
While your waiting for someone who might acctually know how to do this :) you might take a look at some or the programs at
http://www.wilsonc.demon.co.uk/delphi.htm

0
 
LVL 1

Author Comment

by:BlackDeath
ID: 1341133
uh-oh:
greedy: sorry for not replying.

i knew this one already but it doesn't help - the funcs of this page i need only run on nt...

nevertheless: thanx & bye

Black Death.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 7

Expert Comment

by:BlackMan
ID: 1341134
NetUserChangePassword is only available on NT, not on Win95, so you'll have to find another way to do it from Win95..
0
 
LVL 1

Author Comment

by:BlackDeath
ID: 1341135
ach, was.

did you read my comment?

;-)

Black Death.
0
 
LVL 7

Expert Comment

by:BlackMan
ID: 1341136
Hmm, yes I did, but I don't quite get what you are refering to?!?
0
 
LVL 1

Author Comment

by:BlackDeath
ID: 1341137
BlackMan:
>> i knew this one already but it doesn't help - the funcs of this page i need only run on nt.. <<

so. i'll increase this one. maybe somebody takes pity.

Black Death..


0
 
LVL 1

Author Comment

by:BlackDeath
ID: 1341138
Adjusted points to 75
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1341139
Does this component help?

http://sunsite.icm.edu.pl/delphi/ftp/d30share/ntuser.zip

Cheers,

Raymond.
0
 
LVL 1

Author Comment

by:BlackDeath
ID: 1341140
no, sorry.
see above: these run only on nt.
i think there ain't any solution for my prob.
i'm gonna delete this q in a couple of days.

thanx nonetheless, guyz.

bye,

Black Death.
0
 
LVL 3

Expert Comment

by:williams2
ID: 1341141
The interface for the mentioned function is:

Interface

   ...

   Function NetUserChangePassword(
        pDomainName,
        pUsername,
        pOldPassword,
        pNewPassword: PAnsiChar
   ): UINT; stdcall;
  external 'netapi32.dll' name 'NetUserChangePassword';

implementation

 ...

The problem is just, that I cannot find the info on the NET_API_STATUS describing the resulting constant. :-((

So! If this is any help, I can get you more.

Regards,
Williams
0
 
LVL 3

Expert Comment

by:williams2
ID: 1341142
..Please note: The function is (against your question) only supported on WinNT machines.

Regards,
Williams
0
 
LVL 1

Author Comment

by:BlackDeath
ID: 1341143
hi, williams!

thanx for answer. this one's the closest to my question.
i'm afraid there ain't no possibility to change the user's password on a winnt domain if logged on on a win95-client -

so, willimas: post an answer; you'll get the points.

my best wishes to the tribe of danish dynamite!


Black Death.
0
 
LVL 3

Accepted Solution

by:
williams2 earned 70 total points
ID: 1341144
Thank you Black Death!

Thank you for the nice words. I know a lot of 1. class danish dynamite Delphi-developers here, but most of them shows no interest to this site. :-(

I'm sorry this will only going to work with Win95. Else it would demand a whole lot more code, (which I'm not capable to do).

BUT if you need anything else that might bring you closer, I'm ready to help you at anytime.

regards,
Williams
0
 
LVL 1

Author Comment

by:BlackDeath
ID: 1341145
if you gave me your email address we could possibly stay in contact if one or the other question occurs on either side (maybe i can help you one day, too).

mine is

andreas.naguschewski@vt.siemens.de

c u later, alligator.

Black Death.

0
 
LVL 1

Author Comment

by:BlackDeath
ID: 1341146
if you gave me your email address we could possibly stay in contact if one or the other question occurs on either side (maybe i can help you one day, too).

mine is

andreas.naguschewski@vt.siemens.de

c u later, alligator.

Black Death.

0
 
LVL 3

Expert Comment

by:williams2
ID: 1341147
Dear Black Death, you are absolutely welcome!

and thank you for the invitation, I do think it's
important to support each other and to discuss the
different projects we each are doing. My email is
Spacebrain@get2net.dk

I think I'm going to send you an email..

See you too,
Williams
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi Form ownership 4 106
Convert GUI app into console app for Win32 Env 5 109
Tvertscrollbox like a whatsapp layout 5 34
enhance the following code 3 37
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question