SmarterMail Pro™ Administration Web Services

svcUserAdmin.AuthenticateUser Method 

Used for testing login credentials against a specified domain.

public GenericResult AuthenticateUser(
   string UserName,
   string DomainName,
   string Password
);

Parameters

UserName
Username to test
DomainName
Domain in which Username exists
Password
Password for Username

Return Value

A GenericResult instance containing the results of the AuthenticateUser action.

Remarks

This method returns a true GenericResultResultCode if the user name, domain name, and password match.

Example

using System;
using svcUserAdmin;

class svcUserAdminAuthenticateUser
{
 static void Main()
 {
   svcUserAdmin admin = new svcUserAdmin();
   GenericResult status = admin.AuthenticateUser("dlindt", "domain.net", "qpoiwu");

   if(status.Result)
     Console.WriteLine ("User credentials are valid for this domain.")   
   else
     Console.WriteLine ("User credentials are NOT valid for this domain.")   
}

See Also

svcUserAdmin Class | svcUserAdmin Namespace