def build_pwpolicy_command(attribs, dir_info)
      ans  = %Q[#{dir_info[:pwpol]}]
      ans += %Q[ -a #{dir_info[:username]}]    unless dir_info[:username].nil? or
                                                      dir_info[:username].empty?
      ans += %Q[ -p "#{dir_info[:password]}"]  unless dir_info[:password].nil? or
                                                      dir_info[:password].empty?
      ans += %Q[ -n #{dir_info[:data_path]}]
      ans += %Q[ -u #{attribs[:record_name]}]
      ans += %Q[ -#{attribs[:attribute]}]
      ans += %Q[ "#{attribs[:value]}"]         unless attribs[:value].nil? or
                                                      attribs[:value].empty?
      attribs[:value] = nil
      return ans
    end
def build_pwpolicy_command(attribs, dir_info)
      ans  = %Q[#{dir_info[:pwpol]}]
      ans += %Q[ -a #{dir_info[:username]}]    unless dir_info[:username].nil? or
                                                      dir_info[:username].empty?
      ans += %Q[ -p "#{dir_info[:password]}"]  unless dir_info[:password].nil? or
                                                      dir_info[:password].empty?
      ans += %Q[ -n #{dir_info[:data_path]}]
      ans += %Q[ -u #{attribs[:record_name]}]
      ans += %Q[ -#{attribs[:attribute]}]
      ans += %Q[ "#{attribs[:value]}"]         unless attribs[:value].nil? or
                                                      attribs[:value].empty?
      attribs[:value] = nil
      return ans
    end
/usr/bin/pwpolicy -a diradmin -p "BigSecret" -u username -setpolicy "isDisabled=0"