Configure Server Settings With Rake Tasks

Rake tasks can be used to configure and manage IBM Aspera Shares on Demand users, groups, shares, and nodes from the command line. To run a rake task, first do the following:
  1. Go to the shares folder: cd /opt/aspera/shares/u/shares/bin
  2. Test that your rake tasks are working correctly.
    ./run rake -T

The following rake tasks cover how to add or configure an LDAP, configure web server settings, and configure smtp server settings.

Add or Configure LDAP

Command Usage
Syntax
rake data:ldap_config -- --directory_type <directory_type> --name <name> [--description <description>] 
  --host <host> --port <port> [--base_dn <base_dn>] --authentication_method <authentication_method> 
  [--username <username> --password <password> --encryption <encryption>]
Example
./run rake data:ldap_config -- --directory_type ActiveDirectory --name test_dir
  --host ldap.aspera.us --port 1234 --base_dn OU=AsperaDirectory,DC=aspera,DC=asperasoft,DC=com
  --authentication_method simple --username user1 --password 3x@mp13_p@zzw0rd --encryption simple_tls
Where acceptable directory types are:
  • ActiveDirectory
  • OpenDirectory
  • FedoraDirectoryServer
  • OpenLdap
Where acceptable authentication methods are:
  • anonymous
  • simple (Simple bind requires a username and a password.)
Where acceptable encryption types are:
  • unencrypted
  • simple_tls
Note: Encryption is, by default, set to unencrypted.

Configure web server settings

Command Usage
Syntax
rake data:web_server -- --host <host> --port <port> --tls <tls>
Example
./run rake data:web_server -- --host this.is.an.example --port 1234 --tls true

Configure smtp server settings

Command Usage
Syntax
rake data:smtp_server -- --server <server> --port <port> --domain <domain> --tls <tls> --username 
  <username> --password <password> --from <from>
Example
./run rake data:smtp_server -- --server example_server --port 1234 
  --domain example.domain --tls true --username <username> user1 --password 3x@mp13_p@zzw0rd 
  --from user@asperasoft.com
Note: The first time this task is run, it will create a new entry, and require an entry for all of the fields. Afterward, rsunning the task again will only modify specified fields, leaving non-specified fields the same.