System.Exception: Invalid username and/or password for adminThe password and username are off course correct. The IDataReader (in public Guid LoginUser(ref string sUSER_NAME, string sPASSWORD, bool bLogEvent)never returns result, while when i run the SQL manually it does. How is this possible?Tnx,Dirk
The service is at the root of the site, in soap.asmx. Your best bet is to use the SugarCRM SOAP documentation as the interface is identical. At some point, you will need to hash the password, so I've included the code here.
public static string HashPassword(string sPASSWORD) { UTF8Encoding utf8 = new UTF8Encoding(); byte[] aby = utf8.GetBytes(sPASSWORD); MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider(); byte[] binMD5 = md5.ComputeHash(aby); // 02/09/2006 Paul. Password is stored in upper case. // This will only be an issue on Oracle & DB2 where the data is case significant. return Sql.HexEncode(binMD5).ToUpper(); }