Change password using oAddressMap.EditLogin doesnt work

percy
Posts: 7
Joined: Sat Nov 18, 2006 2:04 pm

Change password using oAddressMap.EditLogin doesnt work

Postby percy » Fri Feb 13, 2009 8:37 pm

Hi:

I'm trying to change login passwords via ASP using oAddressMap.EditLogin . The function returns 1 (ok!) but the password never changes.
Could you please help me?
I already have applied permissions on the bin folder (IUSR_server, IME, etc.).

Thank you

Percy

congthanhgiong
Posts: 6
Joined: Tue Sep 16, 2008 6:57 am

Postby congthanhgiong » Sun Feb 15, 2009 10:25 am

Hi,

try something like this, see if it works for you.
public int edit_user(string pass, string mailbox)
{
int result = -1;
MailEnable.Administration.Login oAUTHLogin = new MailEnable.Administration.Login();
oAUTHLogin.UserName = mailbox + "@" + postoffice;
oAUTHLogin.Password = "";
oAUTHLogin.Account = "";
oAUTHLogin.Rights = "";
oAUTHLogin.Status = -1;

if (oAUTHLogin.GetLogin() == 1)
result = oAUTHLogin.EditLogin(oAUTHLogin.UserName, oAUTHLogin.Status, pass, oAUTHLogin.Account,
oAUTHLogin.Description, -1, -1,
-1, oAUTHLogin.Rights);
return result;
}

sangheraajit
Posts: 2
Joined: Mon Jul 27, 2009 11:24 am

Resolved

Postby sangheraajit » Wed Sep 02, 2009 2:23 pm

Hello,

I was Asking about this issue.

congthanhgiong wrote:Hi,

try something like this, see if it works for you.
public int edit_user(string pass, string mailbox)
{
int result = -1;
MailEnable.Administration.Login oAUTHLogin = new MailEnable.Administration.Login();
oAUTHLogin.UserName = mailbox + "@" + postoffice;
oAUTHLogin.Password = "";
oAUTHLogin.Account = "";
oAUTHLogin.Rights = "";
oAUTHLogin.Status = -1;

if (oAUTHLogin.GetLogin() == 1)
result = oAUTHLogin.EditLogin(oAUTHLogin.UserName, oAUTHLogin.Status, pass, oAUTHLogin.Account,
oAUTHLogin.Description, -1, -1,
-1, oAUTHLogin.Rights);
return result;
}

Who is online

Users browsing this forum: No registered users and 2 guests