Revision f43a4cb1
Added by Marc Dequènes about 15 years ago
- ID f43a4cb1f55d9e168f0e458c1af4229e96675767
bin/shadowwalker | ||
---|---|---|
raise SyntaxError, _("no %s given") % name if args.empty?
|
||
|
||
full_handle = args.shift
|
||
raise SyntaxError, _("bad %s") % name unless full_handle =~ /^([a-zA-Z]+)\/(.+)$/
|
||
obj_hdl = $1.downcase
|
||
item_hdl = $2
|
||
m = LdapShadows::Elements::LdapObject.looks_like_full_handle?(full_handle)
|
||
raise SyntaxError, _("bad %s") % name unless m
|
||
obj_hdl = m[1].downcase
|
||
item_hdl = m[2]
|
||
|
||
split_args = [obj_hdl, item_hdl]
|
||
obj_klass = params_shift_object_handle(split_args)
|
||
... | ... | |
|
||
unless result_is_binary or $program_options[:debug]
|
||
result = LdapShadows::Manipulation.interpret_field_value($shadow, attr_info.syntax.to_param, result)
|
||
if result.nil?
|
||
raise PreProcessingError, _("Field '%s' in object '%s' has a weird value") % [field_name, obj_klass.handle]
|
||
end
|
||
end
|
||
end
|
||
|
Also available in: Unified diff
[evol] recognize 'root' and understand it as value (but not yet as argument), clarify the full handle format, and recognize the MP root