Ticket #1595 (closed defect: fixed)
ftp user limit
|Reported by:||Serkan Hamarat <serkan@…>||Owned by:|
|Priority:||major||Milestone:||ispCP ω 1.0.0|
|Component:||Backend (Engine)||Version:||ispCP ω nightly build|
Opening new domainname covered by existing domain (as string, for example, existing: company.com.tr and new: company.com ) if existing domain has ftp users on the limit, new one (with the same limit) reaches limits already. So it's not possible to open new ftp users in this conditions.
The program assumes company.com.tr ftp users are also owned by company.com, because of RLIKE usage on function get_domain_running_dmn_ftp_acc_cnt() in "gui/client/client-functions.php" file.
Maybe the sql statement should be like this: SELECT COUNT(userid) FROM ftp_users WHERE userid LIKE '%@company.com'
Using wildcard "%" before "@" sign and using "LIKE" instead of "RLIKE" could work.
Solution must also be compatible with exec_query() function, indeed.
-- Serkan Hamarat