Jump to content
Froxlor Forum

d00p

Administrators
  • Posts

    10302
  • Joined

  • Last visited

  • Days Won

    43

Everything posted by d00p

  1. Parameter: store_defaultindex (bool) Parameter: sendpassword (bool) You pass the plaintext password as froxlor hashes it according to the settings (and it's needed in plaintext to add the default ftp-user etc. internally or to send the password to the customer if the parameter 'sendpassword' is set to true) See: https://docs.froxlor.org/latest/api-guide/commands/customers.html#customers-add
  2. ich wollte dir helfen aber offenbar war es dir nicht genug weil du was dafür tun musst. Ich gehe nicht erneut auf deine Kommentare ein, das dreht sich im Kreis.
  3. Na bei der Art und Weise wie du hier schreibst und mit Hilfe und Antworten umgehst, hat keiner Lust dir zu antworten
  4. du DARFST natürlich im quellcode rummachen und genauso habe ich gesagt, dass du deine Verbesserungen auch gerne beisteuern kannst sodass alle was davon haben, denn so funktioniert open-source. Und sorry das unser privates und in Freizeit entwickeltes Projekt deinen Ansprüchen noch nicht genügt und wir nicht 24/7 daran arbeiten und alles vollumfänglich und 100% korrekt implementieren können. Tut mir leid, dass es dir offenbar nicht zusagt. Wie gesagt, dieses Projekt wird privat und in unserer Freizeit entwickelt - natürlich fokussieren wir uns hier auf die "breite Masse" Ich habe nichts gegen Feedback - du hast allerdings eine konkrete Anforderung wie du deine DNS Zonen importieren kannst und ich habe versucht dir aufzuzeigen wie es aktuell möglich ist. Wenn meine Infos für dich nicht hilfreich sind, tut es mir leid.
  5. ??? Du sollst ja nicht im code von froxlor rummachen sondern die API in deinen eigenen scripts verwenden... Einen eigenen DNS betreiben vllt eine handvoll Leute mit froxlor - dieses Feature bekommt einfach nicht so viel Liebe wie andere Elemente da es nicht sonderlich gefragt und genutzt wird. Dann beteilige dich doch gern am Projekt und erweitere die DNS integration Dafür ist es open-source hab ich dir genannt...siehe API command dafür: https://docs.froxlor.org/latest/api-guide/commands/domainzones.html#domainzones-add Welche Datengrundlage ein import hat ist doch völlig egal.
  6. via API oder direkt in die entsprechende Tabelle der froxlor-Datenbank. Die SOA Serial ist in der domains-tabelle pro domain hinterlegt (bindserial). Eine automatische Erhöhung ist nicht in froxlor integriert, aber auch hierfür kannst du die API nutzen um Felder automatisiert anzupassen Sofern du die 2fa Absicherung gewisser Einstellungen meinst, dann https://docs.froxlor.org/latest/admin-guide/settings/#_3-settings-in-config-inc-php Es gibt ja auch in dem Sinn keinen DNS-import in froxlor...
  7. Yes it should, might be a bug, please create an issue on github using https://github.com/Froxlor/Froxlor/issues/new
  8. Froxlor uses acme.sh, you can use certificates managed there if you want or issue your own
  9. Standardsubdomains do not have the nameserver flag enabled by default. You will have to edit the domain and set it.
  10. Yes, Settings -> System settings -> Customer standard subdomain, set it to "lab.mydomain.com" for the desired effect
  11. you can always add/edit ip addresses, see https://docs.froxlor.org/latest/admin-guide/resources/ips-and-ports/
  12. froxlor hat gar nix mit memcached zu tun ... das kommt jetzt ganz drauf an WIE wordpress das prüft. Eventuell funkt dir hier eine der `disabled_functions` in der php.ini dazwischen
  13. nein, Konto anlegen ist ein zweiter Schritt - man kann ja auch Adressen haben, ohne das diese ein Konto sind. Müsstest du einen zweiten API call machen: <?php // include FroxlorAPI helper class require __DIR__ . '/FroxlorAPI.php'; // create object of FroxlorAPI with URL, apikey and apisecret $fapi = new FroxlorAPI('http://127.0.0.1/api.php', 'your-api-key', 'your-api-secret'); // source data (loginname only required if called as admin/reseller) $email_addresses = [ ['email_part' => 'one', 'domain' => 'domain.tld', 'loginname' => 'web1', 'email_password' => 's3cret'], ['email_part' => 'two', 'domain' => 'domain.tld', 'loginname' => 'web1'], ['email_part' => 'three', 'domain' => 'domain.tld', 'loginname' => 'web2'], ['email_part' => 'four', 'domain' => 'domain.tld', 'loginname' => 'web2'], // ... ]; // loop through data foreach ($email_addresses as $email_addr) { // check for account-password $accnt_pwd = $email_addr['email_password'] ?? null; unset($email_addr['email_password']); // send request $fapi->request('Emails.add', $email_addr); // check for error if ($fapi->getLastStatusCode() != 200) { echo "HTTP-STATUS: " . $fapi->getLastStatusCode() . PHP_EOL; echo "Description: " . $response['message'] . PHP_EOL; continue; } // create account if password is set if (!empty($accnt_pwd)) { // send request $fapi->request('EmailAccounts.add', [ 'emailaddr' => $email_addr['email_part'] . '@' . $email_addr['domain'], 'loginname' => $email_addr['loginname'], 'email_password' => $accnt_pwd ]); // check for error if ($fapi->getLastStatusCode() != 200) { echo "HTTP-STATUS: " . $fapi->getLastStatusCode() . PHP_EOL; echo "Description: " . $response['message'] . PHP_EOL; } } }
  14. Das Ganze funktioniert auch via CLI (siehe https://docs.froxlor.org/latest/admin-guide/cli-scripts/#api-call) bin/froxlor-cli froxlor:api-call admin Emails.add '{"email_part": "one", "domain": "domain.tld", "loginname": "web1"}'
  15. da es keinen email-adressen importer via UI gibt bietet sich die API an ja Ein beispiel wäre: <?php // include FroxlorAPI helper class require __DIR__ . '/FroxlorAPI.php'; // create object of FroxlorAPI with URL, apikey and apisecret $fapi = new FroxlorAPI('http://127.0.0.1/api.php', 'your-api-key', 'your-api-secret'); // source data (loginname only required if called as admin/reseller) $email_addresses = [ ['email_part' => 'one', 'domain' => 'domain.tld', 'loginname' => 'web1'], ['email_part' => 'two', 'domain' => 'domain.tld', 'loginname' => 'web1'], ['email_part' => 'three', 'domain' => 'domain.tld', 'loginname' => 'web2'], ['email_part' => 'four', 'domain' => 'domain.tld', 'loginname' => 'web2'], // ... ]; // loop through data foreach ($email_addresses as $email_addr) { // send request $fapi->request('Emails.add', $email_addr); // check for error if ($fapi->getLastStatusCode() != 200) { echo "HTTP-STATUS: " . $fapi->getLastStatusCode() . PHP_EOL; echo "Description: " . $response['message'] . PHP_EOL; } } See also API documentation: https://docs.froxlor.org/latest/api-guide/commands/emails.html
  16. Nix, es ist nur ein hinweis das der eintrag syntaktisch korrigiert wurde, inhaltlich bleibt es das was eingestellt war
  17. Steht doch in der Fehlermeldung...."named.service: Unit cannot be reloaded because it is inactive." Normal ist in froxlor als neustart-kommando nach dem erstellen neuer configs ein "reload" hinterlegt - reload funktioniert aber nur wenn der Dienst läuft und auch aktiv ist (systemctl enable named && systemctl start named) - ggfls halt auch das reload-command für nameserver in den einstellungen anpassen
  18. Die empfohlenen Standardeinstellungen beinhalten keinen Nameserver... Wie bereits gesagt: Settings -> Nameserver settings -> "Enable Nameserver" und "Enable DNS editor" aktivieren, und entsprechend den gewünschten Kunden bearbeiten und "Enable DNS editor?" auf Ja stellen Taucht selbstverständlich auch nur bei Domains auf, die ein Häkchen bei "Create dns zone for domain" haben, da sie sonst vom Nameserver garnicht verarbeitet werden
  19. Das gibt es natürlich wenn auch ein lokaler DNS Server via froxlor betrieben wird, anders macht es wenig Sinn Also: wenn nameserver aktiviert ist (und DNS Editor erlaubt) dann gibt's da auch das Icon.
  20. https://github.com/Froxlor/Froxlor -> Sponsor this project - da steht was geht
  21. Folgendes Beispiel funktioniert bei mir unter nginx genauso wie unter apache mit php-fpm: <?php function doFlush() { if (!headers_sent()) { // Disable gzip in PHP. ini_set('zlib.output_compression', 0); // Force disable compression in a header. // Required for flush in some cases (Apache + mod_proxy, nginx, php-fpm). header('Content-Encoding: none'); } // Fill-up 4 kB buffer (should be enough in most cases). echo str_pad('', 4 * 1024); // Flush all buffers. do { $flushed = @ob_end_flush(); } while ($flushed); @ob_flush(); flush(); } // In a real app, we have this turned on. ob_start(); $i = 0; while ($i++ < 10) { usleep(500000); // Real output. echo $i . "\n<br>"; doFlush(); }
  22. Und nix in der Error Log oder php-fpm log? Ich kanns leider Grad selbst nicht testen, nur unterwegs am Smartphone
  23. Hast du denn sichergestellt das in der genutzten PHP Version und der zugehörigen php-konfiguration der Domain die geforderten settings auch so gesetzt sind (z.b. via phpinfo())
  24. Du brauchst natürlich eine sql config die die user aus der froxlor Datenbank ausliest. Da könntest du in älteren froxlor.versionen (0.9.x) auf GitHub glücken haben und in /lib/configfiles noch was zu finden. Nscd ist in soweit sinnvoll/notwendig damit nicht jedesmal eine sql query.via libnss-mysql ausgeführt wird beim auslesen der User/group Infos. Mir ist.auf die schnelle kein Ersatz bekannt. Wenn die nsswitch.conf entsprechend auf libnss-mysql verweist sollte es aber auch ohne nscd gehen (geht halt auf die Datenbank ohne Ende)
  25. d00p

    Cronjobs

    Froxlor erstellt nur eine Cronjob Datei, und die liegt standardmäßig unter /etc/cron.d/froxlor Zur Neuerstellung einfach manuell aufrufen: `/var/www/html/froxlor/bin/froxlor-cli froxlor:cron -fd`
×
×
  • Create New...