summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-11-13 12:11:10 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-11-13 12:11:10 +0000
commitcb8cbe64f3d765a4fcf484122419884926133c1b (patch)
tree10d3b76b37dd1878d2af9599460f7271aae98978 /bin
parentd450048f9bcac36555ce60b4287333cd07603d88 (diff)
downloaddrakx-net-cb8cbe64f3d765a4fcf484122419884926133c1b.tar
drakx-net-cb8cbe64f3d765a4fcf484122419884926133c1b.tar.gz
drakx-net-cb8cbe64f3d765a4fcf484122419884926133c1b.tar.bz2
drakx-net-cb8cbe64f3d765a4fcf484122419884926133c1b.tar.xz
drakx-net-cb8cbe64f3d765a4fcf484122419884926133c1b.zip
Use pdbedit to get list of samba users (required for samba > 3.0.0)
(#55388).
Diffstat (limited to 'bin')
-rwxr-xr-xbin/draksambashare2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/draksambashare b/bin/draksambashare
index 4eaeede..c4f443f 100755
--- a/bin/draksambashare
+++ b/bin/draksambashare
@@ -293,7 +293,7 @@ sub get_samba_share() {
sub get_samba_user() {
undef @listusers;
- foreach (cat_("/etc/samba/smbpasswd")) {
+ foreach (split '\n', `pdbedit -L -w`) {
my ($user) = m!^([\w-]+):!;
$user and push @listusers, {
user_name => $user,