cloudstack/plugins
Will Stevens f434f50a86 Merge pull request #1485 from remibergsma/fix-ldap-default-domain
Set default networkDomain to empty instead of usernameThe 10th field of `createUserAccount` is `networkDomain` (See `AccountService.java`) and it is set to a var named `admin`, which is the user name.
So, the first user that is created in a domain that links to LDAP, creates the account within the domain, and sets the `networkDomain` field to the username. All next users are created in the same account.

Then we have the situation that in domain SBP we have a user `rbergsma` that logs in first, gets an account created and then (unless you override) all VMs started in the SBP domain will have network domain `rbergsma`. That is highly confusing and not what is should be.

The `linkDomainToLdap` api call has no `networkDomain` field, so I propose to make this field empty (set it to null). It's a sting and null / empty is allowed.

One can also specify the networkDomain when creating a VPC and also there it is allowed to be null.

When te networkDomain is needed (and is not set in the domain and not in the VPC) it is constructed by using `guest.domain.suffix` so there always is a networkDomain to be used.

It makes more sense to manually set it on a domain level, or specify it on the VPC and in the final case end up with something that is clearly generated (like cs342cloud.local) rather than the username of someone else.

* pr/1485:
  Set default networkDomain to empty instead of username

Signed-off-by: Will Stevens <williamstevens@gmail.com>
2016-05-04 10:19:58 -04:00
..
acl/static-role-based Updating pom.xml version numbers for release 4.7.2-SNAPSHOT 2016-01-26 09:33:56 +01:00
affinity-group-processors Updating pom.xml version numbers for release 4.7.2-SNAPSHOT 2016-01-26 09:33:56 +01:00
alert-handlers Updating pom.xml version numbers for release 4.7.2-SNAPSHOT 2016-01-26 09:33:56 +01:00
api Updating pom.xml version numbers for release 4.7.2-SNAPSHOT 2016-01-26 09:33:56 +01:00
database Updating pom.xml version numbers for release 4.7.2-SNAPSHOT 2016-01-26 09:33:56 +01:00
dedicated-resources Updating pom.xml version numbers for release 4.7.2-SNAPSHOT 2016-01-26 09:33:56 +01:00
deployment-planners Updating pom.xml version numbers for release 4.7.2-SNAPSHOT 2016-01-26 09:33:56 +01:00
event-bus Updating pom.xml version numbers for release 4.7.2-SNAPSHOT 2016-01-26 09:33:56 +01:00
file-systems/netapp Updating pom.xml version numbers for release 4.7.2-SNAPSHOT 2016-01-26 09:33:56 +01:00
ha-planners/skip-heurestics Updating pom.xml version numbers for release 4.7.2-SNAPSHOT 2016-01-26 09:33:56 +01:00
host-allocators/random Updating pom.xml version numbers for release 4.7.2-SNAPSHOT 2016-01-26 09:33:56 +01:00
hypervisors Merge pull request #1365 from shapeblue/4.7-vmware-diskchain 2016-05-02 16:58:41 -04:00
network-elements Updating pom.xml version numbers for release 4.7.2-SNAPSHOT 2016-01-26 09:33:56 +01:00
storage Merge pull request #1332 from syed/swift-download 2016-04-06 14:19:44 -04:00
storage-allocators/random Updating pom.xml version numbers for release 4.7.2-SNAPSHOT 2016-01-26 09:33:56 +01:00
user-authenticators Set default networkDomain to empty instead of username 2016-04-10 19:50:32 +02:00
pom.xml Updating pom.xml version numbers for release 4.7.2-SNAPSHOT 2016-01-26 09:33:56 +01:00