ok. thanks.
that means I need to dymanically form that string for different user then?
-----Original Message-----
From: Mitch Denny [mailto:mitch.denny@w...]
Sent: Tuesday, November 27, 2001 5:34 AM
To: ASPX_Professional
Subject: [aspx_professional] RE: changing NT password from asp.net?
Yu,
Oh OK, didn't realise the potential confusing on
that string of text. The "yourdirectoryserver" bit
is the computer name of the PDC if you are in a domain
environment or the actual server that has the user
if you are modifying that individual server's SAM.
"aladdin" is the name of the actual user, and "User"
indicates the type of the object your are retrieving.
Hope that clears it up.
----------------------------------------
- Mitch Denny
- http://www.warbyte.com
- mitch.denny@w...
- +61 (414) 610-141
-
> -----Original Message-----
> From: Yu, Kevin [mailto:kyu@N...]
> Sent: Tuesday, 27 November 2001 2:12 AM
> To: ASPX_Professional
> Subject: [aspx_professional] RE: changing NT password from asp.net?
>
>
> one line I am not sure is the line,
>
>
> DirectoryEntry(@"WinNT://yourdirectoryserver/aladdin,User");
>
> what is "yourdirectoryserver/aladdin"
> aladdin is the computer name that hosting the web server, the
> directoryserver
> is the PDC on my domain, right. it is running NT 4 server. it should
> be ok. right?
>
>
>
>
>
> -----Original Message-----
> From: Mitch Denny [mailto:mitch.denny@w...]
> Sent: Sunday, November 25, 2001 1:52 AM
> To: ASPX_Professional
> Subject: [aspx_professional] RE: changing NT password from asp.net?
>
>
> Kevin,
>
> Yeah, I am pretty sure it will, I don't have a stand-alone
> server here with IIS and ASP.NET to test with at the moment,
> but I am fairly confident.
>
> ----------------------------------------
> - Mitch Denny
> - http://www.warbyte.com
> - mitch.denny@w...
> - +61 (414) 610-141
> -
>
> > -----Original Message-----
> > From: Yu, Kevin [mailto:kyu@N...]
> > Sent: Saturday, 24 November 2001 1:43 AM
> > To: ASPX_Professional
> > Subject: [aspx_professional] RE: changing NT password from asp.net?
> >
> >
> > from looking at your code, looking like I the server is a PBC
> > in order to
> > run the code. but I am hosting asp.net on a stand along win2k
> > server, would
> > it work still?
> >
> > thanks
> >
> >
> >
> > -----Original Message-----
> > From: Mitch Denny [mailto:mitch.denny@w...]
> > Sent: Friday, November 23, 2001 12:05 AM
> > To: ASPX_Professional
> > Subject: [aspx_professional] RE: changing NT password from asp.net?
> >
> >
> > Kevin,
> >
> > Not a problem, take a squizz at this post I made
> > at ASP Friends a while ago:
> >
> > http://www.aspfriends.com/search/msg.asp?msgid=315558
> >
> > It has some code that shows how to do it. For the
> > archives here however, basically you need to grab
> > a DirectoryEntry object which represents the user
> > and invoke the "setPassword" method on it.
> >
> > using System;
> > using System.DirectoryServices;
> >
> > public class PasswordChangeApp {
> >
> > public static void Main() {
> >
> > // Keep track of our locals.
> > DirectoryEntry user = null;
> >
> > // Create an instance of the DirectoryEntry object
> > // and point it straight at the user we want to change.
> > user = new
> > DirectoryEntry("WinNT://someserver/JoeBloggs,User");
> >
> > // Call the "setPassword" method passing it the password
> > // as the only parameter.
> > user.Invoke("setPassword", "open sesame");
> >
> > // Set it all in stone.
> > user.CommitChanges();
> >
> > }
> >
> > }
> >
> > Hope this helps.
> >
> > ----------------------------------------
> > - Mitch Denny
> > - http://www.warbyte.com
> > - mitch.denny@w...
> > - +61 (414) 610-141
> > -
> >
> > > -----Original Message-----
> > > From: Yu, Kevin [mailto:kyu@N...]
> > > Sent: Friday, 23 November 2001 2:57 AM
> > > To: ASPX_Professional
> > > Subject: [aspx_professional] changing NT password from asp.net?
> > >
> > >
> > > hi
> > > I wonder if anybody know how to change the NT user password
> > > through asp.net?
> > > thanks
> > >
> > >
> > >
> > > Kevin Yu
> > > system.data.oledb
> > > coop student
> > > Western Research Center - Natural Resource Canada
> > > email: kyu@n...
> > > phone:(780) 987-8611
> > >
> > >
> > > ---
> > > VBug Winter Conference 2001
> > >
> > > Make no mistake - there's a great learning curve
> > > for developers moving from COM to .NET. So why
> > > would you want to be a pioneer and cross the bridges
> > > first? Attend the .NET Developer's Conference
> > > (28th to 30th November 2001) In London and realise
> > > the benefits of adopting the technology early. By
> > > attending you'll understand the key challenges and
> > > be left with a thorough understanding of the major
> > > .NET fundamentals. If you're already working
> > > with .NET this is a must-attend event.
> > >
> > http://www.vbug.co.uk/redirect.asp?url=39&id=17
> >
> > ---
> > You are currently subscribed to
> > aspx_professional as: mitch.denny@w...
> > $subst('Email.Unsub')
> >
> >
> > ---
> > VBug Winter Conference 2001
> >
> > Make no mistake - there's a great learning curve
> > for developers moving from COM to .NET. So why
> > would you want to be a pioneer and cross the bridges
> > first? Attend the .NET Developer's Conference
> > (28th to 30th November 2001) In London and realise
> > the benefits of adopting the technology early. By
> > attending you'll understand the key challenges and
> > be left with a thorough understanding of the major
> > .NET fundamentals. If you're already working
> > with .NET this is a must-attend event.
> >
> http://www.vbug.co.uk/redirect.asp?url=39&id=17
>
> ---
> You are currently subscribed to
> aspx_professional as: kyu@n...
> $subst('Email.Unsub')
>
> ---
> VBug Winter Conference 2001
>
> Make no mistake - there's a great learning curve
> for developers moving from COM to .NET. So why
> would you want to be a pioneer and cross the bridges
> first? Attend the .NET Developer's Conference
> (28th to 30th November 2001) In London and realise
> the benefits of adopting the technology early. By
> attending you'll understand the key challenges and
> be left with a thorough understanding of the major
> .NET fundamentals. If you're already working
> with .NET this is a must-attend event.
>
> http://www.vbug.co.uk/redirect.asp?url=39&id=17
>
> ---
> You are currently subscribed to
> aspx_professional as: mitch.denny@w...
> $subst('Email.Unsub')
>
>
> ---
> VBug Winter Conference 2001
>
> Make no mistake - there's a great learning curve
> for developers moving from COM to .NET. So why
> would you want to be a pioneer and cross the bridges
> first? Attend the .NET Developer's Conference
> (28th to 30th November 2001) In London and realise
> the benefits of adopting the technology early. By
> attending you'll understand the key challenges and
> be left with a thorough understanding of the major
> .NET fundamentals. If you're already working
> with .NET this is a must-attend event.
>
http://www.vbug.co.uk/redirect.asp?url=39&id=17
---
You are currently subscribed to
aspx_professional as: kyu@n...
$subst('Email.Unsub')
---
VBug Winter Conference 2001
Make no mistake - there's a great learning curve
for developers moving from COM to .NET. So why
would you want to be a pioneer and cross the bridges
first? Attend the .NET Developer's Conference
(28th to 30th November 2001) In London and realise
the benefits of adopting the technology early. By
attending you'll understand the key challenges and
be left with a thorough understanding of the major
.NET fundamentals. If you're already working
with .NET this is a must-attend event.
http://www.vbug.co.uk/redirect.asp?url=39&id=17
---
You are currently subscribed to
aspx_professional as: mitch.denny@w...
$subst('Email.Unsub')
---
VBug Winter Conference 2001
Make no mistake - there's a great learning curve
for developers moving from COM to .NET. So why
would you want to be a pioneer and cross the bridges
first? Attend the .NET Developer's Conference
(28th to 30th November 2001) In London and realise
the benefits of adopting the technology early. By
attending you'll understand the key challenges and
be left with a thorough understanding of the major
.NET fundamentals. If you're already working
with .NET this is a must-attend event.
http://www.vbug.co.uk/redirect.asp?url=39&id=17
---
You are currently subscribed to
aspx_professional as: kyu@n...
$subst('Email.Unsub')