Basically this is a feature request, but might be something worth considering. When you want to have a hot standby machine that interacts via LDAP (two ldap instances, synchronised with eachother), it is impossible to restore a virtualmin backup because the 'user' already exists.virtualmin restore-domain --source ~remko/jrhosting.tbz/testjrhosting.nl.tar.gz --all-domains --all-features --continue-on-error --skip-warnings
Checking for missing features .. .. all features in backup are supported
Starting restore.. Extracting backup archive file .. .. done
Re-creating virtual server testjrhosting.nl .. .. a clash was detected : A unix user named testjrhosting already exists - try selecting a different administration username
What am I trying to achieve? I want to split services and want to use my master Virtualmin install to create the appropriate directory structure on different virtualmin nodes (so that I can say: mail goes to box1, www goes to box2 etc.). I do realise that when I replicate this over lets say 10 machines, I get the same directory structure on 2, 4, 5, etc. different machines, but with proper administration and automation that doesn't matter that much at this stage.
I want to use the remote.cgi API but I run into the fact that the virtualmin user does not exist on the remote server(s). When trying to create the user via the API I run into the problem that the user already exists and it does not seem possible to skip the unixuser creation and just create the directory structure and services.
Can such a feature be added to Virtualmin to ignore the unixcreation itself and use existing credentials which is already available via LDAP?