Revision 1f9bfec2
Added by Marc Dequènes about 15 years ago
- ID 1f9bfec2d26868fa820cc1637af26718a0381c8f
bin/shadowwalker | ||
---|---|---|
|
||
require 'ldap_shadows'
|
||
require 'ldap_shadows/display_utils'
|
||
require 'yaml'
|
||
require 'cmdparse2'
|
||
|
||
include LdapShadows
|
||
... | ... | |
end
|
||
|
||
def execute(args)
|
||
$ldapctl = Controller.new
|
||
config = LdapShadows::Config.instance
|
||
begin
|
||
$ldapctl.load_shadow($program_options[:shadow_name])
|
||
$ldapctl = config.load_shadow($program_options[:shadow_name])
|
||
rescue ActiveLdap::Error => e
|
||
STDERR.puts _("LDAP connection error: %s") % e.to_s
|
||
exit 2
|
Also available in: Unified diff
[evol] improve config #13 (reorganized config/schema loading/validating, transform Controler into Shadow, and began reworking things to get a real Shadow view)