mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-11-03 16:00:50 +00:00
better error message for useradd
This commit is contained in:
parent
e2993b66c3
commit
2de144076b
2
Makefile
2
Makefile
@ -2,7 +2,7 @@ RELEASE=2.0
|
||||
|
||||
VERSION=1.0
|
||||
PACKAGE=libpve-access-control
|
||||
PKGREL=16
|
||||
PKGREL=17
|
||||
|
||||
DESTDIR=
|
||||
PREFIX=/usr
|
||||
|
||||
@ -463,14 +463,14 @@ sub encrypt_pw {
|
||||
sub store_pam_password {
|
||||
my ($userid, $password) = @_;
|
||||
|
||||
my $cmd = ['/usr/sbin/usermod'];
|
||||
my $cmd = ['usermod'];
|
||||
|
||||
my $epw = encrypt_pw($password);
|
||||
push @$cmd, '-p', $epw;
|
||||
|
||||
push @$cmd, $userid;
|
||||
|
||||
run_command($cmd);
|
||||
run_command($cmd, errmsg => 'change password failed');
|
||||
}
|
||||
|
||||
sub domain_set_password {
|
||||
|
||||
@ -1,3 +1,9 @@
|
||||
libpve-access-control (1.0-17) unstable; urgency=low
|
||||
|
||||
* set propagate flag by default
|
||||
|
||||
-- Proxmox Support Team <support@proxmox.com> Thu, 01 Mar 2012 12:40:19 +0100
|
||||
|
||||
libpve-access-control (1.0-16) unstable; urgency=low
|
||||
|
||||
* add 'pveum passwd' method
|
||||
|
||||
Loading…
Reference in New Issue
Block a user