Skip to content

Commit

Permalink
Login using admin/admin credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-Willem Gmelig Meyling committed Feb 23, 2016
1 parent 8592c27 commit 2555939
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ git clone https://github.com/devhub-tud/vagrant-devhub.git
vagrant plugin install vagrant-librarian-puppet
vagrant up
```

## Login
The default user is `admin` / `admin`, installed as `cn=admin,dc=devhub,dc=local` in openldap.
Through ldapadd additional users can be added.
For more information, see: https://help.ubuntu.com/lts/serverguide/openldap-server.html .

1 change: 1 addition & 0 deletions puppet/Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ mod 'maestrodev/maven'
mod 'puppetlabs/docker_platform'
mod 'nvpuppet/gitolite'
mod 'puppetlabs/postgresql'
mod 'datacentred/ldap'
12 changes: 6 additions & 6 deletions puppet/files/config/devhub-server.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ smtp-server.origin = [email protected]
# smtp-server.pass = <password>

# LDAP Settings
ldap-server.host = ldaps.tudelft.nl
ldap-server.port = 636
ldap-server.usessl = true
ldap.extension = @tudelft.net
ldap.primarydomain = OU=MDS,DC=tudelft,DC=net
ldap-server.host = localhost
ldap-server.port = 389
ldap-server.usessl = false
ldap.extension = @devhub.local
ldap.primarydomain = DC=devhub,DC=local

# When false, we use the username plus the primary domain as DN for the bind request (LDAP).
# When true, we use the username + extension as name for the bind request (Active Directory) .
ldap.active-directory = true
ldap.active-directory = false
2 changes: 2 additions & 0 deletions puppet/files/services/devhub-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ EOF

deploy() {
su devhub << 'EOF'
cp -f /etc/devhub-server/config/config.properties /etc/devhub-server/config/config_backup.properties
cp -f /etc/devhub-server/config/persistence.properties /etc/devhub-server/config/persistence_backup.properties
cp -rf /etc/devhub-server/tmp/devhub/target/devhub-server-distribution/devhub-server/. /etc/devhub-server/.
mv /etc/devhub-server/config/persistence_backup.properties /etc/devhub-server/config/persistence.properties
mv /etc/devhub-server/config/config_backup.properties /etc/devhub-server/config/config.properties
rm -rf /etc/devhub-server/tmp
EOF
}
Expand Down
7 changes: 7 additions & 0 deletions puppet/manifests/default.pp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
source => '/vagrant/files/services/devhub-server.sh'
}

class { 'ldap::server':
suffix => 'dc=devhub,dc=local',
rootdn => 'cn=admin,dc=devhub,dc=local',
rootpw => 'admin',
}

exec { 'deploy devhub-server':
command => '/usr/sbin/service devhub-server deploy',
user => 'root',
Expand All @@ -72,6 +78,7 @@
File['/etc/devhub-server/config/persistence.properties'],
Class['postgresql::server'],
Class['maven::maven'],
Class['ldap::server'],
Class['jdk_oracle']
]
}
Expand Down

0 comments on commit 2555939

Please sign in to comment.