summaryrefslogtreecommitdiff
path: root/bin/uid-map
diff options
context:
space:
mode:
Diffstat (limited to 'bin/uid-map')
-rwxr-xr-xbin/uid-map4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/uid-map b/bin/uid-map
index 26765fa..10c3fac 100755
--- a/bin/uid-map
+++ b/bin/uid-map
@@ -3,8 +3,6 @@
load "#{File.dirname(__FILE__)}/common.rb"
-users = Dir.glob("#{cfg["yamldir"]}/*.yml").each do |filename|
- uid = File.basename(filename).sub(/^([0-9]*)\.yml$/, "\\1").to_i
- user = load_user_yaml(filename)
+load_all_users.each do |uid,user|
puts "#{uid}:#{user["username"]}"
end