Add email service and settings
This commit is contained in:
12
app/services/ldap_manager/update_email_maildrop.rb
Normal file
12
app/services/ldap_manager/update_email_maildrop.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
module LdapManager
|
||||
class UpdateEmailMaildrop < LdapManagerService
|
||||
def initialize(dn, address)
|
||||
@dn = dn
|
||||
@address = address
|
||||
end
|
||||
|
||||
def call
|
||||
replace_attribute @dn, :mailRoutingAddress, @address
|
||||
end
|
||||
end
|
||||
end
|
||||
12
app/services/ldap_manager/update_email_password.rb
Normal file
12
app/services/ldap_manager/update_email_password.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
module LdapManager
|
||||
class UpdateEmailPassword < LdapManagerService
|
||||
def initialize(dn, password_hash)
|
||||
@dn = dn
|
||||
@password_hash = password_hash
|
||||
end
|
||||
|
||||
def call
|
||||
replace_attribute @dn, :mailpassword, @password_hash
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user