How to change user password in karaf console? - apache-karaf

I'm following the security guide for apache karaf: https://karaf.apache.org/manual/latest/security
I've learned how to add a new user or remove existing one. However, I've failed to find out, how to change the password of existing user. How it can be done?

Please mention which bundle version you are using.
Try this.Hope this works
$SMX$_HOME/system/org/apache/felix/karaf/apache-felix-karaf/1.4.0-fuse-02-00/apache-felix-karaf-1.4.0-fuse-02-00-features.xml
There's a webconsole feature in this file, where you can reset username/password.

Related

RTweet: change Twitter account

I've been trying out the Rtweet package, found here: https://github.com/ropensci/rtweet
After posting a tweet with the post_tweet() command, I was sent to a browser page and was immediately logged in because of an automatic password program. The command worked, but I want to use it with another twitter account.
I want to change accounts but in the documentation there doesn't seem any method for changing the account. I guess my tokens are saved somewhere in a environment variable but I can't find it (I've looked in appData/local and appData/roaming, on a Windows computer obviously). If possible I don't want to apply for a separate App.
Any ideas on how I can delete my old login information and login with another account?
Thanks to the creator of the package:
The following will delete your current token and then unset your environment variable:
unlink(Sys.getenv("TWITTER_PAT"))
Sys.unsetenv("TWITTER_PAT")

configure phabricator's admin account not via UI

I am trying to configure phabricator's admin account which appears when entering to it's home page on the first time.
According to here I can use phabricator/ $ ./bin/accountadmin, but it's not setting admin's password - unless I recover the account, get an (partially) arbitrary link and set everything inside manually.
but - I want to fully configure it without UI, but with phabricator's CLI/linux commands.
How can I do that? thanks.
Phabricator can not be fully installed with the help of cli, The problem is the Authentication method that should be set for the application is not configurable with cli at the moment. Take look at this issue for more information.

WSO2 5.3.0 Email template is not updating

I am using WSO2IS 5.3.0 version.
I updated all the configs but mistakenly i gave wrong password reset url in [IS_HOME]/repository/conf/email/email-admin-config.xml file. I started my server with RDBMS as datasource. Everything worked well.
Then I noticed my password reset url is wrong. Again I went to [IS_HOME]/repository/conf/email/email-admin-config.xml file and updated the url and restarted WSO2. But it is not working for all the users. Some users still getting old template with wrong url. I restarted my WSO2 multiple times and updated the xml file but no luck. I even tried to change the template through carbon admin UI but still it is sending wrong template.
The weird thing is it is sending right one immediately after i restart WSO2 but after sometimes it start using old template. How can I solve this issue without reconfigure everything from beginning?
Let's me explain how the email-admin-config.xml works. This file works as the bootstrap data required to populate email templates in WSO2 Identity Server. So whenever you create a tenant initial data related to email templates will be read from here.
So we basically read the file during the first startup (ie. creation of carbon.super tenant) and any new tenant creation of the server and write the content to the database. Thereafter any change you want to do needs to be done with the UI provided in the Managment Console.
Restarting the server won't make the changes apply to existing tenants that were created before changes were made to email-admin-config.xml. But if you create a new tenant the updated content will be read from the email-admin-config.xml.
Hope this clarifies your concerns.
Adding to #farasath's answer. You can also use a SOAP service to change the template programmatically. For that, you can use AccountCredentialMgtConfigService. The service contract can be accessed from.
https://<host>:<port>/services/AccountCredentialMgtConfigService?wsdl
However to access the WSDL, you have to set HideAdminServices property to false first at <IS_HOME>/repository/conf/carbon.xml and restart the server.
Also, in the management console, the email template management UI can be found under Manage section on the left side panel.

SVN credentials from command line..?

I've never used SVN except to push updates to my WordPress plugins. All of the plugins I've ever worked with are under the same account at WordPress.org. I honestly don't remember how I setup SVN credentials the very first time I ever did one, but ever since then, I've never had to enter them again. Any new plugin I create just works for me.
Now, though, I've got a new plugin that I created on a different WordPress.org account. I was able to check out the new plugin repo from WordPress, but then when I try to check in my plugin files I get an authentication error.
I'm assuming this is because somewhere it has my primary account's credentials saved and that's what it's trying to use here, which won't work of course. It's never asking me for credentials of any kind.
I tried to specify different credentials at the command line like this...
svn ci -m "Adds files for 1.0.0 release" --username myusername --password mypassword
The thing is, my password has some )'s in it, and when I try that command I get this error back:
bash: syntax error near unexpected token `)'
So at this point I'm stuck and I don't know what to do. Any info on this would be greatly appreciated. Thanks!
UPDATE: I changed my password to something more basic, and now when I use the --username and --password options it works fine. So I guess one thing that would help is to figure out how I can use passwords with special characters in them from the command line without getting a syntax error..??
You can omit the --password option. Subversion asks you then for the password.
This is also saver as your password is not stored in cleartext in your history

vTiger doesn't recognize any user

I having a problem using vTiger.
Actually i had no problems but we had to format one of our servers and as the SQL has been backup'ed i had no worries about vTiger.
Just got vTiger folder backup'ed too, but when i had my server back and put the folder of vTiger into www and restored the database i had a few errors, mostly resolved by re-configuring config.inc.php because paths had changes. But after all the configuration is done again i can't login to my vTiger. He reachs the database but does not recognize any of the users. I alway get username or password is wrong. Have anyone experienced this? Is there any possible solution?
Had a similar problem a few days ago, it turns out my cookies were corrupt (Firefox). I cleared all related cookies, problem solved. Try first using some other browser to confirm. hth.
First I would check if the db is reached and populated with your data. Try connecting from the command line.
If you are working on Windows and have changed Vtiger's path, and you are using the bundled version, MySql path changes as well, but the Windows service can still be alive on the old path: in this case you must manually cancel the service and afterwards use the "Start Vtiger" button in order to create the new service.
Second, I would turn on the php debugging as explained here. In most cases, these steps should help you.
Have you checked user_privileges folder? in that you must have 2 files for particular user. eg. your user admin having id 1 in database then you must have user_privileges/sharing_privileges_1.php and user_privileges/user_privileges_1.php file
and open user_privileges_1.php file and check username/password in that file, if it's not same with your DB then change it manually.
Try this solution and let me know if it works.

Resources