user password management
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS and SMTP > user password management




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    user password management  
Dodo


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-28-04 01:55 PM

anyone have any ides for members of the pop3 users group being able to
change their own passwords?







[ Post a follow-up to this message ]



    Re: user password management  
Ralf Ziller


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-28-04 01:55 PM

"Dodo" <dodo@no.fly> schrieb im Newsbeitrag
news:eAj41gPXEHA.3168@TK2MSFTNGP10.phx.gbl...
> anyone have any ides for members of the pop3 users group being able to
> change their own passwords?

There is no mechanism implemented for this in the POP3 protocol. You could
create a Asp(x) page that can do this.
Here's some code in c# you could use inside an aspx:

// get the DirectoryEntry for the User
DirectoryEntry entry = new DirectoryEntry(@"WinNT://<domain>/"+UserName);

//Passwords are passed in an Array containing the old and new password

object[] oPassword = new object[2];

// fill Array with Passwords obtained from Textboxes.

oPassword[0] = oldPass.Text;

oPassword[1] = newPass1.Text;

try

{

// Invoke the ChangePassword function for the user

entry.Invoke("ChangePassword", oPassword);

}

catch (System.Reflection.TargetInvocationException TIE)

{

System.Runtime.InteropServices.COMException ce =

(System.Runtime.InteropServices.COMException) TIE.InnerException;

if(ce.ErrorCode==-2147024810)

{// old Password does not match; inform the user...}

else

{

// other error... throw it up the stack

throw(ce);

}

}

finally

{

// close the DirectoryEntry

entry.Close();

}







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:01 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register