I'm sending again because I had some problem with the attachments, that
didn't get sent.

Vincenzo

> -----Original Message-----
> From: Vincenzo Gianferrari Pini
> [mailto:[EMAIL PROTECTED]
> Sent: gioved� 27 febbraio 2003 15.34
> To: James Users List
> Subject: RE: Password encryption algorithm.
>
>
> "Snippet.java" contains a java code snippet invoking the "encodeBytes"
> method in the "Base64" class, contained in the "Base64.java" file. I found
> the latter somewhere on the web, thanks to it's author.
>
> I had to put in the code snippet some "magic" to deal with non significant
> zeroes and truncate to 20 characters (to be consistent with
> james), but that
> may be a need of my implementation.
>
> I did not use the base-64 code used in james (it probably would have been
> more straightforward), as my code runs completely outside of James.
>
> Bye,
>
> Vincenzo
>
> > -----Original Message-----
> > From: Javier Storni [mailto:[EMAIL PROTECTED]
> > Sent: gioved� 27 febbraio 2003 14.52
> > To: James Users List
> > Subject: Re: Password encryption algorithm.
> >
> >
> > Yes, I have MD5 linux original passwords.
> > So, I need convert then to base64.
> >
> > Can you send me the code ?
> >
> > Thanks a lot.
> >
> > Javier Storni
> >
> >
> > ----- Original Message -----
> > From: "Vincenzo Gianferrari Pini" <[EMAIL PROTECTED]>
> > To: "James Users List" <[EMAIL PROTECTED]>
> > Sent: Thursday, February 27, 2003 10:34 AM
> > Subject: RE: Password encryption algorithm.
> >
> >
> > > It's impossible "by definition" to migrate an md5 digested
> > password to an
> > > SHA digested password, as it would imply that you could break the md5
> > > algorithm.
> > >
> > > What you can do is keeping the md5 password (md5 is supported
> by James),
> > > doing the following for each user:
> > >
> > > 1) set the "pwdAlgorithm" field of the "users" table to "MD5";
> > >
> > > 2) set the "pwdHash" field to the md5 string, converted to base-64.
> > >
> > > Now, I don't know what is the base format used by linux md5, but james
> > uses
> > > base-64 (with some "magic"?). If your original md5 string is in hex
> > > (base-16) as it was my case, I can send you the java code I use, that
> > works.
> > > Let me know.
> > >
> > > Bye,
> > >
> > > Vincenzo
> > >
> > > > Hi,
> > > >
> > > > Anyone know how to migrate linux md5 passwords to SHA passwords, or
> > other
> > > > algorithm supported by james ?
> > > >
> > > > I'm using jdbc users.
> > > >
> > > > Thanks in advance.
> > > >
> > > > Javier Storni
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to