[OpenLdap] Fields made required
These fields are required to use OpenLdap Change-Id: Ic5f020f3620238804bf267bd4ddf9154c6da3591
This commit is contained in:
parent
b0d638c458
commit
d923d422a4
@ -16,11 +16,11 @@ Properties:
|
||||
name:
|
||||
Contract: $.string().notNull()
|
||||
domain:
|
||||
Contract: $.string()
|
||||
Contract: $.string().notNull()
|
||||
ldapUser:
|
||||
Contract: $.string()
|
||||
Contract: $.string().notNull()
|
||||
ldapPass:
|
||||
Contract: $.string()
|
||||
Contract: $.string().notNull()
|
||||
|
||||
Methods:
|
||||
initialize:
|
||||
@ -56,11 +56,8 @@ Methods:
|
||||
- $.instance.agent.call($template, $resources)
|
||||
- $._environment.reporter.report($this, format('OpenLDAP is available at {0}', $.instance.floatingIpAddress))
|
||||
|
||||
- If: $.domain != '' and $.domain != null
|
||||
Then:
|
||||
- If: $.ldapUser != '' and $.ldapUser != null
|
||||
Then:
|
||||
- $.configureOpenLDAPUser($.domain, $.ldapUser, $.ldapPass)
|
||||
- $.configureOpenLDAPUser($.domain, $.ldapUser, $.ldapPass)
|
||||
|
||||
- $.setAttr(deployed, true)
|
||||
- $._environment.reporter.report($this, 'OpenLDAP is deployed!')
|
||||
|
||||
|
@ -31,21 +31,18 @@ Forms:
|
||||
type: string
|
||||
label: Domain
|
||||
initial: domain.tld
|
||||
required: false
|
||||
descriptionTitle: Domain
|
||||
description: >-
|
||||
Please, provide domain for the OpenLDAP instance
|
||||
- name: ldapUser
|
||||
type: string
|
||||
label: Username
|
||||
required: false
|
||||
descriptionTitle: LDAP User
|
||||
description: >-
|
||||
Please, provide username
|
||||
- name: ldapPass
|
||||
type: password
|
||||
label: Password
|
||||
required: false
|
||||
descriptionTitle: LDAP Password
|
||||
description: >-
|
||||
Please, provide password
|
||||
|
Loading…
x
Reference in New Issue
Block a user