trabajo-afectivo/lib/sequencer/unit/import/ldap/user/mapping.rb

26 lines
620 B
Ruby
Raw Normal View History

class Sequencer
class Unit
module Import
module Ldap
module User
class Mapping < Sequencer::Unit::Import::Common::Mapping::FlatKeys
uses :ldap_config
private
def mapping
ldap_config[:user_attributes].dup.tap do |config|
# fallback to samaccountname as login
# if no login is given via mapping
if !config.values.include?('login')
config['samaccountname'] = 'login'
end
end
end
end
end
end
end
end
end