mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Add SHA512 to ldap-useradmin
This commit is contained in:
@@ -36,7 +36,7 @@ home_style=Automatic home directory style,4,0-home/username,1-home/u/username,2-
|
||||
line6=New user options,11
|
||||
base_uid=Lowest UID for new users,3,From Users and Groups module
|
||||
base_gid=Lowest GID for new groups,3,From Users and Groups module
|
||||
md5=Encryption method for passwords,1,3-LDAP MD5,1-Unix MD5,0-crypt,2-Plain text,4-LDAP SSHA,5-Unix SHA
|
||||
md5=Encryption method for passwords,1,3-LDAP MD5,1-Unix MD5,0-crypt,2-Plain text,4-LDAP SSHA,5-Unix SHA,6-SHA512
|
||||
shells=Build list of shells from,2,fixed-Builtin list,passwd-System users,shells-/etc/shells
|
||||
|
||||
line7=New user defaults,11
|
||||
|
||||
@@ -36,7 +36,7 @@ home_style=Estil autom
|
||||
line6=Opcions d'usuari nou,11
|
||||
base_uid=UID més baix per a usuaris nous,3,Del mòdul d'Usuaris i Grups
|
||||
base_gid=GID més baix per a grups nous,3,Del mòdul d'Usuaris i Grups
|
||||
md5=Mètode de xifratge de les contrasenyes,1,3-MD5 LDAP,1-MD5 de Unix,0-crypt,2-Text planer,4-SSHA LDAP,5-Unix SHA
|
||||
md5=Mètode de xifratge de les contrasenyes,1,3-MD5 LDAP,1-MD5 de Unix,0-crypt,2-Text planer,4-SSHA LDAP,5-Unix SHA,6-SHA512
|
||||
shells=Construeix la llista de shells de,2,fixed-Llista integrada,passwd-Usuaris del sistema,shells-/etc/shells
|
||||
|
||||
line7=Valors per defecte dels usuaris nous,11
|
||||
|
||||
@@ -33,7 +33,7 @@ home_style=Automatische Heimatverzeichnisart,4,0-home/username,1-home/u/username
|
||||
line6=Optionen für neue Benutzer,11
|
||||
base_uid=Niedrigste UID für neue Benutzer,3,Aus dem Benutzer- und Gruppenmodul
|
||||
base_gid=Niedrigste GID für neue Gruppen,3,Aus dem Benutzer- und Gruppenmodul
|
||||
md5=Verschlüsselungsmethodik für Passworte,1,3-LDAP MD5,1-Unix MD5,0-cryp,2-Einfacher Text,4-LDAP SSHA,5-Unix SHA
|
||||
md5=Verschlüsselungsmethodik für Passworte,1,3-LDAP MD5,1-Unix MD5,0-crypt,2-Einfacher Text,4-LDAP SSHA,5-Unix SHA,6-SHA512
|
||||
shells=Baue eine Liste der Shells aus,2,fixed-Eingebaute Liste,passwd-Systembenutzer,shells-/etc/shells
|
||||
line7=Standards für neue Benutzer,11
|
||||
default_group=Standardmäßige Primäre Gruppe für neue Benutzer,3,Aus dem Benutzer- und Gruppenmodul
|
||||
|
||||
@@ -27,7 +27,7 @@ home_style=Estilo del directorio home automático,4,0-home/username,1-home/u
|
||||
line6=Opciones de usuario nuevo,11
|
||||
base_uid=UID menor para nuevos usuarios,3,Del módulo de Usuarios y Grupos
|
||||
base_gid=GID menor para nuevos grupos,3,Del módulo de Usuarios y Grupos
|
||||
md5=Método de encriptación de contraseñas,1,3-LDAP MD5,1-Unix MD5,0-crypt,2-Texto plano
|
||||
md5=Método de encriptación de contraseñas,1,3-LDAP MD5,1-Unix MD5,0-crypt,2-Texto plano,6-SHA512
|
||||
shells=Construir lista de shells desde,2,fijada-Lista original,passwd-Usuarios de sistema,shells-/etc/shells
|
||||
secmode=¿Mostrar grupos secundarios en el formulario de usuario?,1,0-Sí,1-No
|
||||
line7=Conf. por defecto de nuevo usuario,11
|
||||
|
||||
@@ -32,7 +32,7 @@ home_style=Automatische home directory stijl,4,0,home/username,1,home/u/username
|
||||
line6=Nieuwe gebruiker opties,11
|
||||
base_uid=Laagste UID voor nieuwe gebruikers,3,Van Gebruikers en Groepen module
|
||||
base_gid=Laagste GID voor nieuwe groepen,3,Van Gebruikers en Groepen module
|
||||
md5=Encryptie methoden voor wachtwoorden,1,3-LDAP MD5,1-Unix MD5,0-crypt,2-Platte tekst,4-LDAP SSHA,5-Unix SHA
|
||||
md5=Encryptie methoden voor wachtwoorden,1,3-LDAP MD5,1-Unix MD5,0-crypt,2-Platte tekst,4-LDAP SSHA,5-Unix SHA,6-SHA512
|
||||
|
||||
shells=Bouw een lijst van shells van,2,vaste ingebouwde lijst,paswd-Systeem gebruikers,shells-/etc/shells
|
||||
line7=Nieuwe gebruiker standaarden,11
|
||||
|
||||
@@ -33,7 +33,7 @@ home_style=Automatisk stil for hjemmekataloger,4,0-home/username,1-home/u/userna
|
||||
line6=Innstillinger for ny bruker,11
|
||||
base_uid=Laveste UID for nye brukere,3,Fra modulen Brukere og grupper
|
||||
base_gid=Laveste GID for nye grupper,3,Fra modulen Brukere og grupper
|
||||
md5=Krypteringsmetode for passord,1,3-LDAP MD5,1-Unix MD5,0-crypt,2-Plain text,4-LDAP SSHA,5-Unix SHA
|
||||
md5=Krypteringsmetode for passord,1,3-LDAP MD5,1-Unix MD5,0-crypt,2-Plain text,4-LDAP SSHA,5-Unix SHA,6-SHA512
|
||||
shells=Bygg liste med skall fra,2,fixed-Innebygd liste,passwd-System brukere,shells-/etc/shells
|
||||
line7=Standardverdier for ny bruker,11
|
||||
default_group=Standard primær gruppe for nye brukere,3,Fra modulen Brukere og grupper
|
||||
|
||||
@@ -30,7 +30,7 @@ home_style=Estilo automático de diretório home,4,0-home/username,1-hom
|
||||
line6=Opções de novos usuários,11
|
||||
base_uid=UID mínimo para novos usuários,3,Do módulo Usuários e Grupos
|
||||
base_gid=GID mínimo para novos grupos,3,Do módulo Usuários e Grupos
|
||||
md5=Método de criptografia para senhas,1,3-LDAP MD5,1-Unix MD5,0-crypt,2-Texto puro,4-LDAP SSHA
|
||||
md5=Método de criptografia para senhas,1,3-LDAP MD5,1-Unix MD5,0-crypt,2-Texto puro,4-LDAP SSHA,6-SHA512
|
||||
shells=Construir lista de shells a partir de,2,fixed-Lista pré definida,passwd-Usuários do sistema,shells-/etc/shells
|
||||
line7=Padrões para novos usuários,11
|
||||
default_group=Grupo inicial padrão para novos usuários,3,Do módulo Usuários e Grupos
|
||||
|
||||
@@ -166,6 +166,15 @@ if ($config{'md5'} == 3) {
|
||||
$out =~ s/^\{md5\}//i;
|
||||
return $out;
|
||||
}
|
||||
if ($config{'md5'} == 6) {
|
||||
# SHA512 encryption
|
||||
local $err = &useradmin::check_sha512();
|
||||
if ($err) {
|
||||
&error($text{'usave_edigestsha512'});
|
||||
}
|
||||
local $out = &useradmin::encrypt_sha512($pass, $salt);
|
||||
return "{CRYPT}" . $out;
|
||||
}
|
||||
if ($config{'md5'} == 1) {
|
||||
# Unix MD5 encryption
|
||||
&foreign_require("useradmin", "user-lib.pl");
|
||||
|
||||
Reference in New Issue
Block a user