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 Load Balancer as a Service (LBaaS) account with the uid number 37300833742005:
<source lang="ldif">
dn: uid=37300833742005,ou=accounts,ou=lbaas,ou=services,dc=stoney-cloud,dc=org
objectclass: top
objectclass: account
objectclass: posixAccount
objectclass: shadowAccount
objectclass: sstLBaaS
objectclass: sstProvisioning
objectclass: sstRelationship
uid: 37300833742005userPassworddescription: {SSHA}E/KLUgeAtApAPQ7mG2GMddCxTE9m9QOSuidNumber: 3730083gidNumber: 3730083cn: 3730083gecos: Example Ltd. (www.example.com(sst-int-001, sst-int-002) # This appears in the 'getent passwd' output. Company name and the main fully qualified domain name Human readable description: fqdn (FQDNbackend host 1, backend host 1).homeDirectory: /home/3730083loginShell: /bin/falseshadowFlag: 134539460shadowLastChange: 11108shadowMax: 99999shadowWarning: 7
sstIsActive: TRUE
sstLBaaSFrontendURI: https://www.example.com/ # Uniform Resource Identifier with optional label.
sstLBaaSFrontendURI: https://example.com/ # Uniform Resource Identifier with optional label.
sstLBaaSFrontendURI: https://api.example.com/ # Uniform Resource Identifier with optional label.
sstLBaaSBackendURI: https://sst-int-001.os.stoney-cloud.com/ # Uniform Resource Identifier with optional labelof the first backend host.sstLBaaSBackendURI: https://sst-int-002.os.stoney-cloud.com/ # Uniform Resource Identifier with optional labelof the second backend host.sstLBaaSHost: haproxy-001.os.stoney-cloud.com # Fully qualified domain name (FQDN)of the first HAProxy server.sstLBaaSHost: haproxy-002.os.stoney-cloud.com # Fully qualified domain name (FQDN)of the second HAProxy server.sstProvisioningMode: addsstProvisioningExecutionDate: 0sstProvisioningState: 0
sstBelongsToResellerUID: 4000000
sstBelongsToCustomerUID: 4000001
sstBelongsToServiceUID: 4000003 # The service belongs to the first backend host defined in the variabe (sstLBaaSBackendURI: https://sst-int-001.os.stoney-cloud.com/).sstBelongsToServiceUID: 4000004 # The service belongs to the second backend host defined in the variabe (sstLBaaSBackendURI: https://sst-int-002.os.stoney-cloud.com/).
</source>
 
The LDIF above can be queried via the cli command <code>getent passwd</code>:
<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:Example Ltd. (www.example.com):/home/3730083:/bin/false
</syntaxhighlight>
The following table describes the different attributes:
3,368
edits