I want create a simple PHP form (nickname and username) to allow users register a new jabber account in the server through the website. I'm using prosody as XMPP server and I can create new accounts through clients such Pidgin, etc but although I was reading about it, I found that to use XMPP over http I should enable a bosh server but I don't know if it can help me to find a solution for my problem and the few libraries which I found of XMPP in PHP haven't any function to create new accounts in the server (or unless I didn't see any function...). And I don't want use the exec function due to that the command to register new users ask me for sudo privileges. If someone can teach me about how deal with it to learn I will be very grateful.
Create php form to allow create new XMPP accounts
618 Views Asked by Kevin Gravell At
1
There are 1 best solutions below
Related Questions in PHP
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in XMPP
- sendxmpp not authorized failure (Error AuthSend)
- C# agsxmpp Domain vs connectionserver
- Android Smack4.1.1 XMPP FileTransfer Issue with Iphone
- How to login with recently registered user to openfire in ios?
- Server less Group Messaging (chating) Xmpp
- SASLException not authorized using smack 4.1.1
- Android aSmack - How to make custom message extension for file sending?
- Unable to receive upstream GCM messages with Node.js + XMPP
- Is Node-XMPP useless ? Choosing XMPP server
- Allow ejabberd_service (Jabber Component Protocol) to modify user's roster
- oauth2 authentication support in ejabberd
- iOS XMPP received message in conversation screen
- Typing Status Smack 4.1
- how ot get lastactivity using openfire server and asmack in android
- xmpp send, wait for response
Related Questions in XMPPHP
- Ejabberd user auth failed with mysql
- XMPP (XMPPHP) session won't start
- How to create XMPP(ejabberd) users using XMPPHP client
- How to send and receive message using xmpp in php
- how to receive message in xmpphp
- Not able to make xmpp connection between my app server and GCM's CCS using XMPPHP library
- Not able to connect my app server to GCM's CCS using XMPPHP
- Create php form to allow create new XMPP accounts
- How to send multicast message (multiple users) using xmpphp and PHP
- How to receive Message using openfire server?
- Can't get list of users (roster) from xmpphp
- How to loop every 3 minutes but script not sleep
- How to create conference rooms in Openfire with XMPPHP?
- How to echo something every 3 minutes while in an endless loop?
- XMPPHP to Openfire: Send message seems OK but target doesn't receive it
Related Questions in PROSODY-IM
- Having trouble with node.js client joining a XMPP Prosody room
- How to handle authentication with xmpp when using external authentication provider
- How to setup Jitsi Meet on a custom Kubernetes
- How to add log in Jitsi prosody plugin lua files
- Prosody XMPP server isn't receiving files, returns 404
- How to log fully detailed XMPP message sent and received by Prosody IM
- LUA - Calling function from other module without exporting table
- Automatically input a response (bash/php)
- Jitsi Meet - Allow only JWT token authentication and get rid of user and password authentication
- Unable to enable muc_size prosody plugin
- Installing a remote videobridge to an existing jitsi-meet installation. SSL error
- How do I set multiple paths in prosody's ldap basedn variable
- Prosody refuse to connect to MySQL database after update to Debian Buster
- How to configure http_upload error for prosody
- How to configure Prosody IM for communication between two computers using DNSmasq
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Although your question could have been put better, one solution would seem to be running the prosody server with a non-root account (which is probably a good idea anyway). Either with www-data or another user/group that would allow the www-data user to have enough privileges. Then PHP exec shouldn't have a problem.
Also, there used to be a module for prosody that allowed control via XMLRPC. The docs show it has been deprecated in current versions, but maybe it's still in the source? If that module is still available to use then you could use XMLRPC to speak to the prosody server from PHP.