I am still not understanding something. I have a bunch of licenses, some used and some not currently being used. If using auto how will it know which license to use? How will it know which licenses are not currently being used? When installing on a new server what prevents it from disabling one of the used licenses instead of using one that is not used?
Each license now has a "License Key Hash" (LK Hash). A long set of characters to define your license.
If you've updated your DA/license.key even semi-recently, you can check:
to view the license info and license_key= value.
If it's showing the text, then you're all set.
If not, update your license.key and that will load something into our DB, and download the license.key with the LK hash in it, where you can ./directadmin l again to confirm it's loaded.
For any unused licenses, you can view the license in /clients, click a license. About the 5th or 6th (depending on license features/settings) will be a "License Key" row. If the value to the right is blank, click the (+) to show more text/info, and at the bottom of that new text is a "Reset" button. Using this will set a LK Hash if you don't currently have one.
------
For general use, installing DA would use:
(see the
Install Guide
The "setup.sh auto" will only work if your license has the IP set. If you have "auto" for the IP, then you muse use the LK Hash to install.
Once you have DA installed, the "./getLicense.sh auto" would grab the LK Hash from the "./directadmin l" output, but will not work for there is not currently a license.key yet with the LK Hash in it. However, with the new system (once we're out of hybrid mode), you'll never need to grab a new license.key as the hash never changes, and the license.key no longer stores any info other than the LK Hash.
For any license (assuming current DA version using the new license system), you can view the active session when viewing the license. You'll know it's being used as there will be a session.
You can also lock a given license to an IP/range, so no other server can use it (we recommend using the "Auto Lock" for the License IP restrictions, as the incoming IP we see on our end can vary, it's sometimes the IPv6. There is not IP binding done for this outbound call on your server to make life much easier on NAS systems within a local network.
The actual /clients/index.php currently still uses the older mechanism for "active", but once we're out of hybrid mode, it will be updated to use the active sessions, and I can probably add the host/IP there too for quick reference (where it makes sense).
The license sessions system enforces one active session per license. DA will throw errors if you try to run 2 at the same time with the same LK Hash. 1.63.5 will now give much more descriptive license errors right at 2222 if you accidentally do this. Else, use "journalctl -u directadmin" to check for the licenses session errors, combined with checking /clients to view the active sessions (which shows the hostname of the box using it).
floyd said:
I have a VM template with DirectAdmin preinstalled. When a customer signs up for a vps with DA it uses that template and then when the vps boots it runs /usr/local/directadmin/scripts/getLicense.sh auto and runs ipswap to change the ip in the DA files.
I assume this method will not work anymore?
It will not. You'd need to specify the LK Hash if there is no license.key there already.
However, please contact sales@ (or create a ticket to sales) as this system does have an option for multi-box licenses, where all your boxes use the same LK Hash. That would simplify things for multi-box providers. It pro-rates based on usage and sorts out the billing at the end of the month. Just be sure to setup your License/Client IP ranges/lists restrictions correctly.