[Mono-list] Mono EncryptPassword Problem
willisterman
craig.willis at myknowledgemap.com
Sun Mar 29 13:33:48 EDT 2009
Gonzalo Paniagua Javier-5 wrote:
>
> On Sat, 2009-03-28 at 14:07 -0700, willisterman wrote:
>> I've been using mono with a project for a bit, and have had no problems
>> authenticating using the sqlmembershipprovider. I've now switched to
>> using
>> a custom xml membership provider, and I'm having trouble with
>> authentication.
>>
>> Using the following code:
>>
>> byte[] bytes = Encoding.Unicode.GetBytes(password);
>> byte[] src = Convert.FromBase64String(salt);
>> byte[] dst = new byte[src.Length + bytes.Length];
>> byte[] inArray = null;
>> Buffer.BlockCopy(src, 0, dst, 0, src.Length);
>> Buffer.BlockCopy(bytes, 0, dst, src.Length, bytes.Length);
>> inArray = this.EncryptPassword(dst);
>> ret = Convert.ToBase64String(inArray);
>>
> [...]
>> Everything is the same until "this.EncryptPassword" is called, where a
>> different response is returned.
>>
>> This is currently breaking authentication. Does anyone know a way to fix
>> this?
>
> Can you add a description of this problem and a small self-contained
> test case to http://bugzilla.novell.com?
>
> -Gonzalo
>
>
Thats been done, and the bug can be found at:
https://bugzilla.novell.com/show_bug.cgi?id=490042
https://bugzilla.novell.com/show_bug.cgi?id=490042 .
Is there enough infomation in that?
--
View this message in context: http://www.nabble.com/Mono-EncryptPassword-Problem-tp22761303p22770233.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list