summaryrefslogtreecommitdiffstats
path: root/bin/draksambashare
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-11-12 16:33:59 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-11-12 16:33:59 +0000
commit4d3d0ede08ead55747b6a1d1404dda9798ba1539 (patch)
tree204e86eda98055286eb37ee87152fb12ff2bcd8a /bin/draksambashare
parent885b68d09c8700035525661014ea139d6871b6e9 (diff)
downloaddrakx-net-4d3d0ede08ead55747b6a1d1404dda9798ba1539.tar
drakx-net-4d3d0ede08ead55747b6a1d1404dda9798ba1539.tar.gz
drakx-net-4d3d0ede08ead55747b6a1d1404dda9798ba1539.tar.bz2
drakx-net-4d3d0ede08ead55747b6a1d1404dda9798ba1539.tar.xz
drakx-net-4d3d0ede08ead55747b6a1d1404dda9798ba1539.zip
Use pdbedit to get list of samba users (required for samba > 3.0.0)
(#55388).
Diffstat (limited to 'bin/draksambashare')
-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,