Skip to content

Commit

Permalink
Place the newline on top
Browse files Browse the repository at this point in the history
  • Loading branch information
cdchapman committed Nov 10, 2019
1 parent f5f3c9d commit d294cb4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions commands/update-company-data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def run
# changes made to this file will be overwritten when this command is run.
version: 1
LDIF_PREAMBLE

#bind_dn = options.fetch_values(:user, :active_users, :base).join(',')
Expand All @@ -88,8 +87,8 @@ def run
scope: Net::LDAP::SearchScope_SingleLevel,
filter: ORGANIZATION_FILTER,
attributes: ORGANIZATION_ATTRS) do |entry|
ldif_out << entry.to_ldif
ldif_out << "\n"
ldif_out << entry.to_ldif
end

ldap.search(
Expand All @@ -98,8 +97,8 @@ def run
scope: Net::LDAP::SearchScope_SingleLevel,
filter: employee_filter,
attributes: EMPLOYEE_ATTRS) do |entry|
ldif_out << entry.to_ldif
ldif_out << "\n"
ldif_out << entry.to_ldif
end

ldap.search(
Expand All @@ -109,8 +108,8 @@ def run
filter: employee_filter,
attributes: EMPLOYEE_ATTRS) do |entry|
# TODO: differentiate these as deleted users
ldif_out << entry.to_ldif
ldif_out << "\n"
ldif_out << entry.to_ldif
end
end

Expand Down

0 comments on commit d294cb4

Please sign in to comment.