> On Mar 13, 2024, at 5:39 AM, Veniamin Gvozdikov 
> <[email protected]> wrote:
> 
> Hello,
> 
> Is it possible to deploy multiple tenants over one huge xml file? I only
> found this section with changing context
> https://github.com/apache/directory-fortress-core/blob/5641b916d1083073a65e4b231db2f52d87d17629/ldap/setup/FortressDemoUsers.xml#L28-L32.
> 

Good question. You could setup their containers all in one file, as shown by 
this[1] example:

```
<addcontainer>
  <container name=“acme”
    description="ACME tenant context”/>
  <container name=“foo”
    description=“FOO tenant context”/>
  <container name=“bar”
    description=“BAR tenant context”/>

</addcontainer>
```

The problem, the xml data corresponding which each additional tenant would have 
to separate, because that is how the APIs work currently.

e.g.

```
mvn install -Dload.file=acme.xml -Dtenant=acme
mvn install -Dload.file=foo.xml -Dtenant=foo
mvn install -Dload.file=bar.xml -Dtenant=bar
```

I suppose the capability to scope tenant context inside the xml load utility 
could be provided in another way, e.g. adding an xml tag (for tenant). But, 
currently that cannot be done.  Of course you could also do it with an LDIF 
file, but that would require either understanding that format well in your 
processes, or manually loading the data and then exporting it.

—
Shawn

[1]https://github.com/apache/directory-fortress-core/blob/master/README-MULTITENANCY.md

> 
> -- 
> Regards,
> Veniamin


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to