let users choose blowfish password option.
XXX msg.mi.fr is out of sync
This commit is contained in:
parent
5fb3536fb3
commit
382ff1f23c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: menus.mi.en,v 1.51 2002/04/16 02:20:17 mycroft Exp $ */
|
||||
/* $NetBSD: menus.mi.en,v 1.52 2002/05/24 08:07:48 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Piermont Information Systems Inc.
|
||||
@ -327,6 +327,7 @@ menu fdok, title "Hit enter to continue";
|
||||
menu crypttype, title "Password cipher";
|
||||
option "MD5", exit, action { yesno = 0; };
|
||||
option "DES", exit, action { yesno = 1; };
|
||||
option "Blowfish 2^7 round", exit, action { yesno = 2; };
|
||||
|
||||
menu cdromsource, title "Change";
|
||||
display action
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: menus.mi.pl,v 1.3 2002/04/16 02:20:17 mycroft Exp $ */
|
||||
/* $NetBSD: menus.mi.pl,v 1.4 2002/05/24 08:07:48 itojun Exp $ */
|
||||
/* Based on english version: */
|
||||
/* NetBSD: menus.mi.en,v 1.49 2002/04/04 14:26:44 ad Exp */
|
||||
|
||||
@ -329,6 +329,7 @@ menu fdok, title "Nacisnij enter aby kontynuowac";
|
||||
menu crypttype, title "Kodowanie hasel";
|
||||
option "MD5", exit, action { yesno = 0; };
|
||||
option "DES", exit, action { yesno = 1; };
|
||||
option "Blowfish 2^7 round", exit, action { yesno = 2; };
|
||||
|
||||
menu cdromsource, title "Zmien";
|
||||
display action
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: msg.mi.en,v 1.86 2002/04/04 14:26:44 ad Exp $ */
|
||||
/* $NetBSD: msg.mi.en,v 1.87 2002/05/24 08:07:49 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Piermont Information Systems Inc.
|
||||
@ -815,12 +815,12 @@ the timezone selection.
|
||||
|
||||
message choose_crypt
|
||||
{Please choose the password cipher to use. NetBSD can be configured to use
|
||||
either the DES or MD5 schemes.
|
||||
either the DES, MD5 or Blowfish schemes.
|
||||
|
||||
The traditional DES scheme is compatible with most other Unix-like operating
|
||||
systems, but only the first 8 characters of any password will be recognised.
|
||||
The MD5 scheme allows for longer passwords, and some would argue that it's
|
||||
more secure.
|
||||
The MD5 and Blowfish scheme allows for longer passwords, and some would
|
||||
argue that it's more secure.
|
||||
|
||||
If you have a network and intend to use NIS, please bear in mind the
|
||||
capabilities of other machines on your network.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: msg.mi.pl,v 1.1 2002/04/09 19:47:58 hubertf Exp $ */
|
||||
/* $NetBSD: msg.mi.pl,v 1.2 2002/05/24 08:07:49 itojun Exp $ */
|
||||
/* Based on english version: */
|
||||
/* NetBSD: msg.mi.en,v 1.86 2002/04/04 14:26:44 ad Exp */
|
||||
|
||||
@ -815,12 +815,12 @@ Nacisnij ENTER aby wybrac. Nacisnij 'x' a potem ENTER aby wyjsc.
|
||||
|
||||
message choose_crypt
|
||||
{Wybierz sposob szyfrowania hasel, ktorego chcesz uzywac. NetBSD moze korzystac
|
||||
albo z DES albo MD5.
|
||||
albo z DES, MD5 albo Blowfish.
|
||||
|
||||
Tradycyjna metoda DES, jest kompatybilna z wiekszoscia unixowych systemow
|
||||
operacyjnych, ale wtedy tylko 8 pierwszych znakow w hasle jest rozpoznawanych.
|
||||
Metoda MD5 pozwala na dluzsze hasla, niektorzy twierdza ze jest bardziej
|
||||
bezpieczna.
|
||||
Metoda MD5 i Blowfish pozwala na dluzsze hasla, niektorzy twierdza ze jest
|
||||
bardziej bezpieczna.
|
||||
|
||||
Jesli posiadasz siec oraz zamierasz korzystac z NIS, pamietaj o mozliwosciach
|
||||
innych maszyn w twojej sieci.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: util.c,v 1.67 2002/04/05 00:12:14 ad Exp $ */
|
||||
/* $NetBSD: util.c,v 1.68 2002/05/24 08:07:50 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Piermont Information Systems Inc.
|
||||
@ -1070,15 +1070,25 @@ set_crypt_type(void)
|
||||
fn = strdup(target_expand("/etc/passwd.conf"));
|
||||
rename(fn, target_expand("/etc/passwd.conf.pre-sysinst"));
|
||||
|
||||
if (!yesno) {
|
||||
switch (yesno) {
|
||||
case 0: /* MD5 */
|
||||
pwc = fopen(fn, "w");
|
||||
|
||||
fprintf(pwc,
|
||||
"default:\n"
|
||||
" localcipher = md5\n"
|
||||
" ypcipher = md5\n");
|
||||
|
||||
fclose(pwc);
|
||||
break;
|
||||
case 1: /* DES */
|
||||
break;
|
||||
case 2: /* blowfish 2^7 */
|
||||
pwc = fopen(fn, "w");
|
||||
fprintf(pwc,
|
||||
"default:\n"
|
||||
" localcipher = blowfish,7\n"
|
||||
" ypcipher = blowfish,7\n");
|
||||
fclose(pwc);
|
||||
break;
|
||||
}
|
||||
|
||||
free(fn);
|
||||
|
Loading…
Reference in New Issue
Block a user