Add db/user seeds

This commit is contained in:
Râu Cao
2022-12-07 18:12:54 +01:00
parent 20382f7df7
commit 4cb7c0998f
5 changed files with 33 additions and 7 deletions

View File

@@ -10,6 +10,10 @@ class LdapService < ApplicationService
res
end
def add_attribute(dn, attr, value)
ldap_client.add_attribute dn, attr, value
end
def delete_entry(dn, interactive=false)
puts "Deleting entry: #{dn}" if interactive
res = ldap_client.delete dn: dn