Prosody: Migrate users from old to new domain - xmpp

I'm running a Ubuntu 12.04 LTS server. This server is only accessible within our network. There I was running a Prosody server. When a user registered the user name had following configuration: username#server-ip.
Now, our admins changed a lot in our network and this server got a new IP address and the old address does not exist anymore. The result was that users could not login anymore. After I adjusted all server changes within prosody.cfg.lua there are no users for the new host. Is there a way to change the domain for all users to username#new-server-ip? Or maybe another possibility to import all users?
The last solution would be to have everyone register again, but I would like to avoid that.
Thx

I have worked with Jabbered2/openfire/Tigase. First please check with username#new-server-ip. In case of change in server ip all you need to do is change ip at the time of login ( with same previous password)
In worst case ( if prosody didn't support it) you still don't need to register all users again ( because that is bad thing to do). In this case you might need to update stuff in you database user table.
Let me know about whether username#new-server-ip works or not?
Thanks

Related

zoom meetings where someone else is host

I would like to create an app that a user goes to and is able to create a meetings where they are the host
looking through the api documentation, I have only been able to create a app where i go create a meeting and I am the host
I don't want to share my user/pass with other users so they can host through my site.
is this even possible,
this is less a code question, I know, but where else to ask?
-what i tried before, - creating an app, but i am the one that has to log in to host.

GitHub page 'Your connection is not private'

I have searched for this and found answers that do not work in my case. I would appreciate some thoughts on this
I have set up a github page at: https://ir-ischool-uos.github.io/mwpd/
Some users reported that when they visit the page, an error about security is displayed, like this on Chrome:
- However, many users say it works ok for them.
I have found some sources say that this only happens if your link contains 'https' instead of 'http', but tested on two computers, one mobile phone and one tablet they both work fine. I also found source that say I should use GitHub page's https support, and I checked my setting this already is ticked.
Is there anything I can do to fix this for every user?
Thanks
This error could happen because of numerous of reasons. For example:
The server certificate (or at least one of the certificates in the chain of trust) is not among the trusted certificates that the browser/system maintains (maybe an outdated list?). Try to update the browser/system.
The date/time on the system is not configured correctly.
The connection is being intercepted (by an attacker?) and the certificate is manipulated, hence the SSL connection handshake process could not complete.
Your connection is not private error appears on websites using the SSL / HTTPs protocol when a browser is unable to validate the SSL certificate issued by the website.
Basically, any website using SSL / HTTPs protocol sends a security certificate information to users browsers upon each visit. Browsers then try to validate the certificate using the public key accompanying the certificate.
If it checks out, then users browser encrypts the data using the private key sent by your website. This encryption secures the data transfer between a user’s browser and your website.
I have checked it accross 3 different connections and they all worked just fine.
I believe the problem could be from the users. They may need to clear their cache, check if their clock is set correctly, their antivirus could be stopping it. And their browsers may be outdated.
What I will advice is just (https://support.github.com/contact). They could check to verify if this is an issue from the server or not.
But from what am looking at, this may be an issue with the user's device.
Also here are a few links you could refer and see if all settings on your own part are rightly set;
[1] https://github.com/docsifyjs/docsify/issues/236
[2] https://help.github.com/en/github/working-with-github-pages/securing-your-github-pages-site-with-https
[3] https://help.github.com/en/github/working-with-github-pages/troubleshooting-custom-domains-and-github-pages#https-errors
I hope this helps. Let me know!
If you are using a school/college wifi, most probably someone has your credentials and he/she is using it at the same time as you so basically when he/she is using the web you'll get this message, you should probably change your password or switch on VPN.
If the WiFi/other network used to access the website in question is a school or public network, some 3rd-party software used by it's administrator might be trying to prevent or override the connection to your website.
That might happen in order to display an error message (e.g. "Website access prohibited"), a captive portal (network login window), or just to watch the data being sent around.
Since you're using HTTPS it was prevented when the certificate check failed, because with HTTPS in place that software has no way of presenting it's own page or eavesdropping, other than creating it's own certificate with your website name in it on the fly. Which, of course, was rejected by the browser, since either the user didn't expect it, or, if it's indeed a school/company network, the PC wasn't properly enrolled for use on the said network.
Either way, there is no problem with your webpage itself. Because Github manages the server for your Pages, chances you could create something causing that problem yourself are pretty much zero.
Sometimes it happens because of the wrong IP/DNS settings. Checking the below places might help resolve the issue:
Make sure you are using a common public DNS server. How to check the DNS server you are using depends on your operating system. Moreover, if you are using a VPN client and it has a DNS configuration, check that setting too.
Check if there is an IP address associated with GitHub in the system's hosts file. In Linux and macOS you may use sudo vi /etc/hosts. If there is one, turn that line into a comment by adding # at the beginning of the line. Save, exit, and check if you see that error again. Do step 3 only if you are still getting the same error.
Go to https://www.ipaddress.com, search for github.io, and add its IP address at the bottom of /etc/hosts file like this example: 140.82.114.4 github.io.
Hope this helps.

1Pc 2Users give access to only one user through MAC Address

I need to let a user access server only from a specific MAC, so he wont be able to access server from another device.
Can any one give me hint how can i achieve that ?
There is no direct way to achieve this
You can of course limit access by protocol/IP/port (with iptables), or at the application level (including IP, with tcpwrappers). You can also limit access based on MAC (with ebtables).
But I am affraid there are no solutions linking user information and MAC address. Too far in the network stack to be usable, perhaps.
What is the exact problem that you are trying to solve by limiting access by MAC and UserID?
Consider a solution like this: initialy, every computer gets a 'temporary' IP from an unprvileged network. That IP does not entitle the user to use any services. Then the user logs in , and after a sucesfull log-in, a new IP from privileged network is issued to him. This IP is specific to this user. From now on the user access can be controlled based solely on his IP.
This will require VLANs and some provisioning made on switches. See Windows server - assign IP by username for a similar case.

Legacy Google Apps Changing Domain Alias to Primary Domain

I have signed up earlier for the google apps account which is now called as legacy and the primary domain has got expired. I am trying to bootstrap a startup ourselves and thought of using this legacy account. below are the steps I tried so see if I can change the primary domain. let me know if anyone of you know about any existing solutions.
No option to add a secondary domain because its a legacy account. Google removed the option.
Added our new domain as a domain alias.
Went through the GAM tool, Admin SDK.
There are couple of options which I could think off to achieve this.
Upgrade the google legacy account to a 30 day trial account and get the option to add a secondary domain and then make the primary domain change and downgrade. However, from what I have read in the internet, there is a risk where when I downgrade there would be only 1 license to use.
https://www.isaumya.com/how-to-change-primary-domain-for-google-apps-legacy-account/ here is a website telling me they have a script to run and make these changes and asking for 30 dollars.
https://github.com/marcelobern/Google-Admin-SDK-Domain This is another option that I came across.
I know it a sounds a bit crude but I am just trying to use a freebie till we get a funding for the startup :) Let me know if anyone of you have any solutions.
If you do the free trial, you will gain the ability to add a domain rather than a domain alias. However, you will not be able to downgrade back to legacy free until you remove the domain. (I tried this on an account I was willing to lose).
For your purposes I think you could get away with using the domain alias. Your users will need to sign in under the old primary domain name but your users can configure your domain alias as the default outgoing email address under settings/Accounts/Send mail as.

openfire automatic subscription accept

I' ve installed subscription plugin for openfire and I've made the settings to accept all local subscription request.
However when I try to add a user to my roster it's subscription type still seems 'none' but what I wanted here is as soon as I add a user to my roster it's subscription type should be either 'from' or 'both'. I Think subscription plugin is responsible for that but I dont think its working or I'm missing something
Does anyone know anything about it?
I've also checked the system logs and see the below error:
2012.02.17 16:13:48 org.jivesoftware.openfire.container.PluginServlet - org.jivesoftware.openfire.plugin.SubscriptionPlugin cannot be cast to org.jivesoftware.openfire.plugin.SubscriptionPlugin
java.lang.ClassCastException: org.jivesoftware.openfire.plugin.SubscriptionPlugin cannot be cast to org.jivesoftware.openfire.plugin.SubscriptionPlugin
at org.jivesoftware.openfire.plugin.subscription.subscription_002dplugin_002dproperties_jsp._jspService(subscription_002dplugin_002dproperties_jsp.java:58)
I ran into the same issue. In my specific case, the domain that subscription plugin was allowing requests to and from (a domain assigned by EC2), was not what I was using to connect to the server (which was the IP address of the server). When I changed the domain of the server from the EC2 domain to the IP address, the plugin responded as expected.
This might be because the subscription request comes in with the IP address as the domain, whereas the plugin is looking for requests that come from a different domain. This is my understanding, I could be wrong.
I saw this issue only when I was setting the acceptance criteria to 'Accept from the same domain only'. And all this is with respect to the Subscription plugin by Ryan.