Changes

Jump to: navigation, search
/* Load Balancer as a Service (LBaaS) - Account example */
=== Load Balancer as a Service (LBaaS) - Account example ===
The following example shows the OpenLDAP directory entry for the stoney wiki Load Balancer as a Service (LBaaS) account with the uid number 3730083:
<source lang="ldif">
gidNumber: 3730083
cn: 3730083
gecos: Michael Eichenberger Example Ltd. (www.example.com) # TBD: A human readable name would bei nice, as it This appears in the 'getent passwd' output. Company name and the main fully qualified domain name (FQDN).
homeDirectory: /home/3730083
loginShell: /bin/false
shadowWarning: 7
sstIsActive: TRUE
 sstLBaaSFrontendURI: https://www.example.com/ # Uniform Resource Identifier with optional label.sstLBaaSFrontendURI: https://www.example.com:8080/ # Uniform Resource Identifier with optional labelsstLBaaSFrontendURI: https://example.com/ # Uniform Resource Identifier with optional labelsstLBaaSFrontendURI: https://api.example.com/ # Uniform Resource Identifier with optional label.sstLBaaSBackendURI: https://sst-int-001.os.stoney-cloud.com/ # Uniform Resource Identifier with optional label.sstLBaaSBackendURI: https://sst-int-002.os.stoney-cloud.com/ # Uniform Resource Identifier with optional label.sstLBaaSHost: haproxy-001.os.stoney-cloud.com # Fully qualified domain name (FQDN).sstLBaaSHost: haproxy-002.os.stoney-cloud.com # Fully qualified domain name (FQDN).
sstProvisioningMode: add
sstProvisioningExecutionDate: 0
sstBelongsToResellerUID: 4000000
sstBelongsToCustomerUID: 4000001
sstBelongsToPersonUIDsstBelongsToServiceUID: 40000024000003 # The service belongs to the backend host defined in the variabe (sstLBaaSBackendURI: https://sst-int-001.os.stoney-cloud.com/).sstBelongsToServiceUID: 40000034000004 # The service belongs to the backend host defined in the variabe (sstLBaaSBackendURI: https://sst-int-002.os.stoney-cloud.com/).
</source>
This will result in The LDIF above can be queried via the following cli command <code>getent passwd</code> entry:<syntaxhighlight lang='bash'>getent passwd 3730083</syntaxhighlight> This will result in the following output:
<syntaxhighlight lang='text'>
# .----------------------------------------------------------------------------- login name# | .----------------------------------------------------------------------- encrypted password indicator# | | .--------------------------------------------------------------------- numerical user ID# | | | .------------------------------------------------------------- numerical group ID# | | | | .----------------------------------------------------- gecos field (the typical format is a comma-delimited list)# | | | | | .---------------------- user home directory# | | | | | | .-------- user command interpreter# | | | | | | |# | | | | | | |3730083:x:3730083:3730083:Michael EichenbergerExample Ltd. (www.example.com):/home/3730083:/bin/false
</syntaxhighlight>
<code>iconv("UTF-8", "ASCII//TRANSLIT", "Tüpfelhyänenöhrchen")</code><br />
Please be aware, that some characters don't get converted properly ... For example: Ø and £. The characters $ and € work.
 
This appears in the 'getent passwd' output. Company name and the main fully qualified domain name (FQDN). For example: <code>Example Ltd. (www.example.com)</code>.
|-
| <center>MAY</center>
| <center>x</center>
| The path to the login shell. The default is '''<code>/bin/false''' </code> and can no must not be changed.
|-
| <center>MAY</center>
| <center>x</center>
| Related to the <code>/etc/shadow </code> file, this attribute is currently not used and is reserved for future use. The default is set to '''<code>134539460''' and is taken from the "ou=settings,uid=<UID/code>,ou=reseller,ou=configuration,ou=lbaas,ou=services,dc=stoney-cloud,dc=org" entry.
|-
| <center>MAY</center>
| <center>x</center>
| Related to the <code>/etc/shadow </code> file, this attribute specifies number of days between January 1, 1970, and the date that the password was last modified. Must be set to the day, that the password was set (must be updated, when the password is changed). This attribute is created by the Self To create this value, you can use: <code>echo $(($(date -Service interface.-utc --date "$1" +%s)/86400))</code>
|-
| <center>MAY</center>
| <center>x</center>
| Related to the <code>/etc/shadow </code> file, this attribute specifies the maximum number of days the password is valid. The default is '''<code>99999'''</code>, which corresponds to about 273 years. In reality, this means, that the user does not need to change the password. This attribute is created by the Self-Service interface. The value is taken from the "ou=settings,uid=<UID>,ou=reseller,ou=configuration,ou=lbaas,ou=services,dc=stoney-cloud,dc=org" entry.
|-
| <center>MAY</center>
| <center>x</center>
| Related to the <code>/etc/shadow </code> file, this attribute specifies the number of days before the password expires that the user is warned. The default is '''<code>7''' and is taken from the "ou=settings,uid=<UID/code>,ou=reseller,ou=configuration,ou=lbaas,ou=services,dc=stoney-cloud,dc=org" entry.
|-
| sstIsActive
| sstWikisstRelationship| <center>MUSTMAY</center>
| <center>x</center>
| Is the wiki Load Balancer as a Service (LBaaS) account active? Either <code>TRUE</code> (yes) or <code>FALSE</code> (no). Default is <code>TRUE</code> (yes) and is taken from the "ou=defaults,uid=<UID>,ou=reseller,ou=configuration,ou=lbaas,ou=services,dc=stoney-cloud,dc=org" entry.
|-
| sstNotificationWarningOnsstLBaaSFrontendURI| sstWikisstLBaaS
| <center>MUST</center>
| <center>x</center>
| Are the users notification warnings turned on This multi-valued attribute stores one or not? Either more Load Balancer as a Service (LBaaS) frontend servers in the form of a Uniform Resource Identifier with optional label. Some examples:* <code>TRUEhttps://www.example.com/</code> (yes) or * <code>FALSEhttps://example.com/</code> (no). Default is TRUE (yes) and is taken from the "ou=settings,uid=* <UIDcode>,ou=reseller,ou=configuration,ou=lbaas,ou=services,dc=stoney-cloud,dc=org" entryhttps://api.example.com/</code>
|-
| sstNotificationWarningsstLBaaSBackendURI| sstWiki| <center>MAY</center>| <center></center>| This multi-valued attribute will be used to turn single notifications on or off. The attribute <code>sstWikiWarningOn</code> must be set to <code>TRUE</code>.  Currently, the Load Balancer as a Service (LBaaS) only supports <code>quota</code> (the names correspond with the template dn). |-| sstNotificationWarningMedium| sstWikisstLBaaS
| <center>MUST</center>
| <center>x</center>
| The notification medium, either sms (points to the This multi-valued attribute stores one or more Load Balancer as a Service (LBaaS) backend servers in the form of a Uniform Resource Identifier with optional label. Some examples:* <code>mobileTelephoneNumber<https:/code>) or mail (points to the multi/sst-valued attribute int-001.os.stoney-cloud.com/</code>mail* </code>)https://sst-int-002. Currently, only mail is supportedos. This is the default is taken from the "ou=defaults,uid=<UID>,ou=reseller,ou=configuration,ou=lbaas,ou=services,dc=stoney-cloud,dc=org" entry.com/</code>
|-
| sstSoftwareVersionsstLBaaSHost| sstWikisstLBaaS| <center>MAYMUST</center>
| <center>x</center>
| TBD |This multi-valued attribute stores one or more Load Balancer as a Service (LBaaS) servers in the form of a fully qualified domain name. Some examples:| sstFileUploadSize| sstWiki| * <centercode>MAYhaproxy-001.os.stoney-cloud.com</centercode>| * <centercode>x</center>| TBD  |haproxy-| host| sstWiki| <center>MAY002.os.stoney-cloud.com</centercode>| <center>x</center>| TBD
|-
|-
| sstBelongsToResellerUID
| sstRelationship
| <center>MUST</center>
| <center>x</center>
|-
| sstBelongsToCustomerUID
| TBDsstRelationship
| <center>MUST</center>
| <center>x</center>
|-
| sstBelongsToPersonUIDsstBelongsToServiceUID
| sstRelationship
| <center>MAY</center>
| <center>x<sup>3</sup></center>| Stores the person service UID the leaf (s) this entry belongs to. The service belongs to the backend host(s) defined in the variable(s) (sstLBaaSBackendURI). This multi-valued attribute can point to multiple services (one or more LBaaS backends).
|}
Legend:
* '''x''': Mandatory in all cases.
* '''x<sup>1</sup>''': Only show, if the number is larger than zero.
* '''x<sup>2</sup>''': Only show, if <code>sstWikiWarningOn</code> is set to <code>TRUE</code>.
* '''x<sup>3</sup>''': Either <code>sstBelongsToPersonUID</code> or <code>sstBelongsToServiceUID</code> must bei set.
== Load Balancer as a Service (LBaaS) - Groups ==
description: The sub tree for the groups of the Load Balancer as a Service (LBaaS).
</source>
 
The following table describes the different attributes:
{| border="1" style="border-collapse: collapse; font-size:80%;" width="100%" class="wikitable sortable"
! style="text-align:left; width: 180px" | Attribute
! style="text-align:left; width: 220px" | Objectclass
! style="width: 80px" | Existance
! style="width: 80px" | Mandatory
! style="text-align:left;" | Description
 
|-
| ou
| organizationalUnit
| <center>MUST</center>
| <center>x</center>
| The name of the leaf.
 
In this case: <code>groups</code>.
 
|-
| description
| organizationalUnit
| <center>MAY</center>
| <center>x</center>
| The description of the leaf.
 
In this case: <code>The sub tree for the groups of the Load Balancer as a Service (LBaaS).</code>
 
|}
 
Legend:
* '''x''': Mandatory in all cases.
=== Load Balancer as a Service (LBaaS) - Group example ===
The following example shows the OpenLDAP directory entry for the Load Balancer as a Service (LBaaS) group with the uid number 3730083:
 
<source lang="ldif">
dn: cn=3730083,ou=groups,ou=lbaas,ou=services,dc=stoney-cloud,dc=org
cn: 3730083
gidNumber: 3730083
sstIsActive: TRUE
sstBelongsToResellerUID: 4000000
sstBelongsToCustomerUID: 4000001
sstBelongsToPersonUIDsstBelongsToServiceUID: 40000024000003 # The service belongs to the backend host defined in the variabe (sstLBaaSBackendURI: https://sst-int-001.os.stoney-cloud.com/).sstBelongsToServiceUID: 4000004 # The service belongs to the backend host defined in the variabe (sstLBaaSBackendURI: https://sst-int-002.os.stoney-cloud.com/).
</source>
 
The following table describes the different attributes:
{| border="1" style="border-collapse: collapse; font-size:80%;" width="100%" class="wikitable sortable"
! style="text-align:left; width: 180px" | Attribute
! style="text-align:left; width: 220px" | Objectclass
! style="width: 80px" | Existance
! style="width: 80px" | Mandatory
! style="text-align:left;" | Description
 
|-
| cn
| posixGroup
| <center>MUST</center>
| <center>x</center>
| As we don't use this attribute (but the attribute is mandatory and is part of the dn), we set this to <code>uid</code> value. For example: <code>3730083</code>.
 
|-
| gidNumber
| posixGroup
| <center>MUST</center>
| <center>x</center>
| The numerical group ID of the Load Balancer as a Service (LBaaS) group.
 
|-
| sstBelongsToResellerUID
| sstRelationship
| <center>MUST</center>
| <center>x</center>
| Stores the reseller UID the leaf belongs to.
 
|-
| sstBelongsToCustomerUID
| sstRelationship
| <center>MUST</center>
| <center>x</center>
| Stores the customer UID the leaf belongs to.
 
|-
| sstBelongsToServiceUID
| sstRelationship
| <center>MAY</center>
| <center>x</center>
| Stores the service UID(s) this entry belongs to. The service belongs to the backend host(s) defined in the variable(s) (sstLBaaSBackendURI). This multi-valued attribute can point to multiple services (one or more LBaaS backends).
 
|}
 
Legend:
* '''x''': Mandatory in all cases.
= Links =
3,368
edits