Ejabberd - Exauth authentication works but user showing Not Authoried to each other in pidgin - xmpp

I installed Ejabberd server and configured ExAuth for a php script. I am checking the chat with pidgin chat client on ubuntu and windows xp(in virtualbox). I am able to login via ExAuth (where users listed in my mysql database) in both ubuntu and windows with different users.
However They are unable to chat each other as each other status is showing as Not Authorized.
Early I checked with internal auth_method. Where i added two users via web admin, and then login both at windows and linux machine. When i add buddy, then request goes to other user, After request approval by other user, Chat was worked. But in ExAuth Even after sending request, Other user did not receive any request.
If any body know where can be the problem area ?

I think you are confusing authentication (allowing to open an XMPP session on the server) and presence subscription as defined in the roster (you should still be able to chat presence subscription is Independant from messaging).

Related

How to access ejabberd server's web admin interface?

I am new to the xmpp server and still learning. I have chosen ejabberd server for my chat application. I have started the server but can't able to access the web admin interface. as you can see the ejabberd#localhost is already running. configuration
I started the server and it was supposed to show web admin interface but unfortunately it is not showing. I don't know what am i doing wrong.
With that configuration, the webadmin page is in
http://localhost:5280/admin/
When the browser asks login credentials, provide the JID of some account in ejabberd with admin rights (it may be vinayak#localhost or something like that) and its password.
This means that you should have already registered an account in ejabberd, and grant it admin rights in ejabberd.yml configuration file, see https://docs.ejabberd.im/admin/installation/#administration-account

Can I create a walled garden allowing only my organisation's users to use my ejabberd instance

Can I create a walled garden allowing only my organisation's users/ clients to use my ejabberd instance/ service.
This includes registration of users done only by my backend and preventing other clients' users to register or access the server. Additionally users of another server can not be added by existing users.
This includes registration of users done only by my backend
Then probably limit mod_register using the options access_from and ip_access:
https://docs.ejabberd.im/admin/configuration/modules/#mod-register
And then write your custom web application that sends ReST or XMP-RPC queries to ejabberd's
https://docs.ejabberd.im/developer/ejabberd-api/#understanding-ejabberd-commands
and executes the "register" API command:
https://docs.ejabberd.im/developer/ejabberd-api/admin-api/#register
and preventing other clients' users to register
If you use your custom web to show a formulary, that's your duty.
or access the server.
Additionally users of another server can not be added by existing users.
You may want to disable S2S (server-to-server), so communication from/to your XMPP server to other XMPP servers is not allowed.

Signing in of registered users on ejabberd server from Conversations client app is not working

I have an ejabberd server running on Amazon EC2. I added users from the web admin console and then I tried to log in from Conversations app using the JID as my-name#ec2-3-142-252-179.us-east-2.compute.amazonaws.com and using the password assigned during registration. But it keeps on saying "server not found". Please tell me where I am doing wrong. Thank you.
Here is the screenshot of web admin console
Sign in page
I never used Amazon EC2, so I will only give you some wild ideas. Also, I don't have Conversations in English, so my translation may not be exactly like what you see:
A) In that same window, click in ... -> Preferences -> Experts Configuration -> Extended connection configuration: enable that option. Now you get another two fields, so you can tell there Conversations exacly the host (or the IP address) and port of ejabberd. Maybe adding it here helps?
B) When you attempt the connection in Conversations, do you get anything relevant in ejabberd.log or similar? I guess no
C) You can access ejabberd webadmin from your PC, but you can't from your Android phone. Just for curiosity, can you access the ejabberd webadmin from your mobile?
D) You can install some desktop Jabber client, like Gajim, Psi,... in your PC. Do those eclients connect to ejabberd, or faiol like Conversations?

using `Gmail SMTP` to send `mail` from my web application. But getting Authentication error

using Gmail SMTP to send mail from my web-application which is Deployed in heroku But getting Authentication error.
I'm receiving a mail from Google saying that:
Someone just used your password to try to sign in to your Google
Account **********#gmail.com, using an application such as an email
client or mobile device.
Details:
Thursday, April 20, 2017 5:35 AM (ET)
Ashburn, VA, USA*
Google stopped this sign-in attempt, but you should review your recently used devices:
I tried all these below:
1)I have reviewed the recent login and said that was me but still google is not allowing me to login.
2)Turning ON access for less secure apps.
Sending mail Code is working fine in my local system, But After deploy it is not working.
can anyone tell me that how I can make my web-application which is deployed in Heroku server which is running from location -Ashburn,VA, USA* to be approved to get login into my gmail.
Thank you in advance :-)
I had the same problem as you - I am also using a gmail account to send SMTP mail via a heroku account. Try logging in to your gmail account and then logging out, and then back in. You can also try this further authentication mechanism at : https://accounts.google.com/displayunlockcaptcha.
In my case, it took a little while (some anxious wait time?) after doing this before I was able to send SMTP mail.
You might also want to consider if you haven't already using one dedicated gmail account for SMTP mail.

eJabberd connection to facebook xmpp

I am creating chat application that will connect to facebook chat via XMPP. I installed eJabberd server, and, I am looking for a way to to hook to messages that comes from the client in order to add the access token and the api key/secret to the message before I am sending it to facebook, and I can't figure out how to do it, is it via one of the pre defined ejabber modules, or I need to develop one?
** I can connect with pidgin to facebook xmpp using the eJabberd server I installed.
Thanks.