Class: Tapjoy::LDAP::Key::Add

Inherits:
Object
  • Object
show all
Defined in:
lib/tapjoy/ldap/key/add.rb

Overview

Add user key to user profile

Instance Method Summary collapse

Instance Method Details

#addObject

Add key to LDAP



7
8
9
10
11
12
13
14
# File 'lib/tapjoy/ldap/key/add.rb', line 7

def add
  filter_users.each  do |result|
    confirm_ldap_schema(result)
    keys.each do |key|
      puts Tapjoy::LDAP.client.add_attribute(result.dn, :sshPublicKey, key)
    end
  end
end