Unable to run on Ubuntu 18.04 LTS
Opened this issue · 0 comments
Hello,
I've followed the SHIPS installation guide to the best of my ability, but I am no Ruby expert. Can someone please explain why my current configuration is unable to launch a local instance of SHIPS?
@:/opt/ships$ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
@:/opt/ships$ gem list
*** LOCAL GEMS ***
bigdecimal (default: 1.3.4)
cmath (default: 1.0.0)
csv (default: 1.0.0)
date (default: 1.0.0)
did_you_mean (1.2.0)
etc (default: 1.0.0)
fcntl (default: 1.0.0)
fiddle (default: 1.0.0)
fileutils (default: 1.0.2)
gdbm (default: 2.0.0)
io-console (default: 0.4.6)
ipaddr (default: 1.2.0)
json (default: 2.1.0)
minitest (5.10.3)
net-ldap (0.16.1)
net-telnet (0.1.1)
openssl (default: 2.1.0)
power_assert (1.1.1)
psych (default: 3.0.2)
rake (12.3.0)
rdoc (default: 6.0.1)
scanf (default: 1.0.0)
sdbm (default: 1.0.0)
sqlite3 (1.3.13)
SQLiteORM (0.9.2)
stringio (default: 0.0.1)
strscan (default: 1.0.0)
test-unit (3.2.7)
usa (0.9.0)
webrick (default: 1.4.2)
xmlrpc (0.3.0)
zlib (default: 1.0.0)
@:/opt/ships$ cat etc/conf
web:
port: 10443
serverName: 127.0.0.1
maxclients: 1000
#daemonUser: ships-admin
#SSLCertificate: /path/to/cert/pem
#SSLPrivateKey: /path/to/key
data:
dataPath: /var/cache/SHIPS.sqlite
styleSheet: /path/to/style/sheet
app:
syslog: true
sessionTimeout: 300
foreground: true
superUserIdent: IdentSQLite
superUserToken: "1"
ACLAuthorsIdent: IdentSQLite
ACLAuthorsToken: "1"
defaultLoginIdent: IdentSQLite
allowedLoginIdents:
- IdentSQLite
devices:
length: 20
age: 7
identityOptions:
exampleOption: exampleValue
identLDAP_host: 10.10.10.10
identLDAP_port: 389
identLDAP_encryption: simple_tls
identLDAP_user_base: DC=example,DC=local
identLDAP_group_base: OU=Test,DC=example,DC=local
identLDAP_name_attribute: sAMAccountName
identLDAP_group_class: group
identLDAP_user_class: user
identLDAP_token_attribute: objectSid
identLDAP_group_attribute: memberOf
identLDAP_user_attribute: "member:1.2.840.113556.1.4.1941:"
identLDAP_group_required: CN=SHIPS users,OU=Test,DC=example,DC=local
identLDAP_username: CN=ships DS. reader,OU=Test,DC=example,DC=local
identLDAP_password: SomeReallHardPassword
identDevice_default_folder: 2
identDevice_validators:
- DeviceValidatorLDAP
validatorOptions:
exampleOption: exampleValue
DeviceValidatorLDAP_host: 10.10.10.10
DeviceValidatorLDAP_encryption: simple_tls
DeviceValidatorLDAP_port: 389
DeviceValidatorLDAP_base: DC=example,DC=local
DeviceValidatorLDAP_username: CN=ships DS. reader,OU=Test,DC=example,DC=local
DeviceValidatorLDAP_password: SomeReallHardPassword
DeviceValidatorLDAP_class: computer
DeviceValidatorLDAP_name_attribute: name
@:/opt/ships$ sudo ruby -r ./lib/identsqlite.rb SHIPS.rb
Traceback (most recent call last):
4: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in require' 3: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in
require'
2: from /opt/ships/lib/identsqlite.rb:1:in <top (required)>' 1: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in
require'
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- usa (LoadError)