
rhufsky
Members-
Posts
12 -
Joined
-
Last visited
Everything posted by rhufsky
-
Thanks, I will happily test that. Alas, the attachment seems to be unavailable for now. Maybe both of us should enjoy the upcoming weekend now 🙂
-
Seems I found the reason. I created the customer with the credentials of "wiiadmin". This admin had Domains=0, I changed ths to "unlimited" and now it works. What is confusing though: When Domains is set to 0 for an admin, Froxlor API happily creates the customer and just omits the standard domain without further warnings or error messages. When I create the customer with the credentials of "admin", it creates the standard domain anyways. When I move this customer to "wiiadmin" with Domains set to 0 also no complaints. Anyways, the hint to the logs helped a lot.
-
This is the API response, iz basically tells me that all is OK { "data": { "customerid": 243, "loginname": "aaaaaa", "password": "$2y$10$py7pPqvFcPVhij9vUd5dxO0kP0/R2jROfP7zB6VYAo77Rwq6etNx.", "adminid": 4, "name": "AA", "firstname": "AA", "gender": 1, "company": "HTL Villach / 2AFITT-24/25", "street": "Tschinowitscher Weg 5", "zipcode": "9600", "city": "Villach", "phone": "", "fax": "", "email": "somebody@tld.com", "customernumber": "", "def_language": "de", "diskspace": 1024000, "diskspace_used": 0, "mysqls": 4, "mysqls_used": 0, "emails": 0, "emails_used": 0, "email_accounts": 0, "email_accounts_used": 0, "email_forwarders": 0, "email_forwarders_used": 0, "email_quota": -1, "email_quota_used": 0, "ftps": 1, "ftps_used": 0, "subdomains": 1, "subdomains_used": 0, "traffic": 10485760, "traffic_used": 0, "documentroot": "/var/customers/webs/aaaaaa/", "standardsubdomain": 0, "guid": 10242, "ftp_lastaccountnumber": 0, "mysql_lastaccountnumber": 0, "deactivated": 0, "phpenabled": 1, "lastlogin_succ": 0, "lastlogin_fail": 0, "loginfail_count": 0, "reportsent": 0, "pop3": 0, "imap": 0, "perlenabled": 1, "dnsenabled": 0, "theme": "Froxlor_dark", "custom_notes": "", "custom_notes_show": 0, "lepublickey": null, "leprivatekey": null, "leregistered": 0, "allowed_phpconfigs": "[1]", "type_2fa": 0, "data_2fa": "", "api_allowed": 1, "logviewenabled": 1, "allowed_mysqlserver": "[0]", "gui_access": 1, "adminname": "wiiadmin" } } The log tells me: [API] Unable to add standard-subdomain: No more resources available I create the user for the admin "wiiadmin" Wiiadmin has unlimited subdomains. Fun fact: when I create the user for "admin", it works.
-
I try to create a customer via the API. The customer is created, but the standard subdomain is omitted.When I create a customer via the GUI, the standard subdomain is created. I run 2.2.1-1. This worked fine in last years version. This is my API payload: const command = { command: "Customers.add", params: { new_loginname: customer.loginname, email: customer.email, firstname: customer.firstname, name: customer.lastname, company: `HTL Villach / ${customer.clazz}-24/25`, store_defaultindex: 1, sendpassword: 1, createstdsubdomain: true, // adminid: 1, gender: customer.gender, street: "Tschinowitscher Weg 5", zipcode: "9600", city: "Villach", phone: "", fax: "", customernumber: "", def_language: "de", diskspace: 1000, // diskspace_used: 628, mysqls: 4, ftps: 1, subdomains: 1, traffic: 10, pop3: 0, imap: 0, perlenabled: 1, phpenabled: 1, dnsenabled: 0, logviewenabled: 1, theme: "Froxlor_dark", custom_notes: "", allowed_phpconfigs: [1], allowed_mysqlserver: [0], }, }; I also tried createstdsubdomain: 1, What can I do to create a stabdad subdomain for a customer via the API?
-
OK thanks
-
I try to create a new customer via the API. I succeed in creating the customer and a standard domain. What I was not able to find out: - How can I tell the API to generate the default index.html - How can I tell the API to generate the default ftp account - How can I tell the API to send the login data to the customer (send password via mail) - I guess I have to send the hashed Password so how do I hash the password? What I tried is: command: "Customers.add", params: { new_loginname: "acustomer", email: "me@gmail.com", firstname: "Api", name: "Tester", password: "Generalissimss!1!", company: "The Mighty Conpany", adminid: 1, gender: 1, street: "Plamps Drive 5", zipcode: "122345", city: "Somewhere", phone: "", fax: "", customernumber: "", def_language: "de", diskspace: 40960, diskspace_used: 628, mysqls: 4, ftps: 1, subdomains: 0, traffic: 10485760, phpenabled: 1, pop3: 0, imap: 0, perlenabled: 1, dnsenabled: 0, theme: "Froxlor_dark", custom_notes: "", allowed_phpconfigs: [1], logviewenabled: 1, allowed_mysqlserver: [0], },
-
Recommended Way to provide a Letsencrypt Cert for proftpd
rhufsky posted a question in General Discussion
What is the recommended way to provide a letsencrypt cert for proftpd? Is there anything ready-made available or should i roll my own certbot script? -
Standard domains for a new customer not created in bind/domains
rhufsky replied to rhufsky's question in General Discussion
OK, thanks -
Standard domains for a new customer not created in bind/domains
rhufsky posted a question in General Discussion
I have a fresh froxlor 2.1.6 on ubuntu 22.04. When I create a new customer, and click "create standard domain", then the customer and the standard domain are created in the database. The zone file in /etc/bind/domains is NOT created. When I create an additional domain for the same customer, then both the database entries and the zone file in /etc/bind/domains are created. What can I do, so the standard zone files are created as well? -
Froxlor default IP address for a new domain
rhufsky replied to rhufsky's question in General Discussion
Ah, great, add the external IP and select it in the default IP for domains setting. Thanks a lot. -
I have a fresh Froxlor 2.16 installation in a school setting. The hostname is something like web.lab.mydomain.com. I want to create a number of customers which are really students in our school. When i create a new customer and select "Create standard subdomain". Froxlor creates a domain like customername.web.lab.mydomain.com. Can I somehow configure froxlor to create a standard subdomain like customername.lab.mydomain.com? "
-
0 I have a fresh Froxlor 2.16 installation on Ubuntu jammy, installed via apt. My installation runs on a server behind a reverse proxy. This reverse proxy handles Letsencypt certificates for a number of services. Now I want to route all traffic to froxlor through this proxy so the proxy also handles Letsencypt certificates for froxlor. The bind DNS server that is integrated in froxlor should serve my domnain names. In Settings -> System I can configure the default IP that is defined in the DNS server for a new domain. It seems that this IP must be one of the IPs of the network interfaces of the froxlor server. I would like to use the web-facing IP of my reverse proxy as default IP for a domain in the DNS, so all traffic is routed through the reverse proxy. Can I do this and how?