On Sat, 17 Oct 2015 12:31:59 +0200 (CEST)
Adam Wysocki <[email protected]> wrote:

> Hi misc,
> 
> I'm migrating one of my servers from Linux to OpenBSD and I need a
> method to authenticate users based on passwords treated with Linux
> crypt() function. Passwords are encrypted with salted DES, without
> glibc2 extensions. For example:
> 
> $ htpasswd -nbd test test
> test:MbfD9Vq5SL5aE
> 
> Where "Mb" is a random salt and the rest is encrypted password.
> 
> As OpenBSD crypt() function differs from the one in Linux libc and
> returns NULL for setting "Mb", before I start porting it from libc,
> maybe you have an easier solution? Maybe there is a library I can use
> (different than whole bloated Linux libc)?
> 
> Kind regards.
> 

Don't know if it works out for you but you could generate ssh keys for
existing accounts and allow users to access the new system using that
provided ssh key & set the passwords themselves (or just keep using key
auth and disabling passwords :)).

Reply via email to