Sitecore 10 - Reset admin password when you cannot log in - sitecore

I have installed Sitecore 10 on my local machine for development but have forgotton the master admin password. So now I am not able to log into sitecore from the browser.
I would like to know about how to reset this admin password.
Please give me detailed steps and not just a update query from other posts which I have tried and it has not worked.
Thanks a ton in Advance :)

You can do it programmaticaly or reset it in the SQL database, but with SQL that depend on the hash algorithm configured. Therefore your previous scripts may not work, programmatically works independently of the hash algorithm.
Programmatically reset password to b:
string userName = "sitecore\\admin";
var user = Membership.GetUser(userName);
user.UnlockUser();
user.ChangePassword(user.ResetPassword(), "b");
See for compleet ready to use script:
http://www.stockpick.nl/english/how-to-add-a-sitecore-admin-programmatically/
https://github.com/jbluemink/Sitecore-Admin-Scripts-for-Development-and-Deploying

Related

Coldfusion 11 (Multi-instance) - Administrator password reset not working

I'm trying to reset the CFAdmin password on a CF11 Enterprise server that has multiple CF instances running on the same server. The admin password on one of the instances is unknown, so we're trying to recover/change to a known password.
I've tried using the passwordreset.bat provided by Adobe, but after restarting the instance with lost admin password, that didn't work.
I also tried disabling the password all together to access the admin console per adobe. This gets me into the admin console temporarily, but I'm not able to actually change the password since I don't know the old password. Leaving the old PW blank, fails too. This is not a viable long-term option, we must have a password.
I even tried editing the password.properties file to type a password and set encryption=false, but that didn't work either.
I think I've exhausted all the standard ways to reset the password to no avail. Is there something else that I should do because it's a multi-instance setup? Is there some way to point it to the specific instance I want to change?

Oracle APEX copied, not migrated, to another CLOUD and I cannot log in

DB = Oracle 12
APEX = 4.2
We are moving clouds and the PROD version of the DB with the APEX tables was copied and implemented into another cloud.
I have been told the clouds are exactly the same.
When I try and log into APEX via the web page e.g:
Workspace = Internal
User = ADMIN
I cannot get in. I have tried my normal user and password and no success on any of the workspaces
At home I have installed APEX and have half an idea on what to do but I don’t have admin privileges on the DB. So I have to pass on the messages to the DBA.
So far I have asked the DBA to unlock:
APEX_040200
APEX_PUBLIC_USER
On the connections, Im using SQL Developer to migrate around the DB, the Hostname and Servicename have changed.
Would the change in Service and Host cause logging in issues.
Or, am I missing something obvious, is it a complete re-install, is there a procedure that can be run to update things??
Any tips appreciated
Cheers
C
In my defence I am not a DBA.
When I was told the DB was getting copied I assumed I did not need to do anything since all the data should be held in the tables and it would be a simple case of logging in as usual.
Life is never that simple.
So, when I tried to log in I kept getting errors i.e. invalid log in credentials.
Resolution:
1 DBA resets the ADMIN password and supplies me with the details
2 Go to Production and export all the workspaces etc
3 As ADMIN recreate myself in the INTERNAL workspace
4 Log into INTERNAL, as myself not ADMIN, and import the workspaces

How to reset Informatica Admin Console password on 9.6.0?

Informatica Server was setup at our local server, but unfortunately nobody remembers the Admin Console password for user "Administrator".
1.) Using pmpasswd, I created an encrypted password and replaced the current one in PO_USERINFO table "POU_PASSWORD" field, in the database I found on my "Informatica_9.6.0_Services" log file, but the service would not restart. I had to revert it back for the service to run again.
2.) I have tried using default user name/ password combinations but they aren't working
Any suggestion is appreciated.
The only way to reset a lost admin password is at the database level. Informatica Support has a process for this if you contact them.
Do not alter the database yourself!!

Log In from an appliction that is connected to a server

I want to code a sort of application where you would login and it gets the data from a VPS or a Dedicated server, where i can create accounts, and it checks if the password and username are correct, if they are correct, the form will close and another form wil pop up. Can someone help me please? It doesnt matter for me if it is coded in C++ or VB.Net.
first you need to have a database in the server to check the user name and password
search mysql
http://docstore.mik.ua/orelly/linux/sql/ch13_01.htm
then when you create the database then you can check you data.

django user to be populated in LDAP

I would like when a user creates an account in Django, that the user information :
- Username
- Password
- Email
- First and Last Name
- Mobile
Gets also populated in my LDAP server. Also when the user get deactivated, this gets reflected in LDAP.
Authentication will still be done in Django.
I need the user information as i have another application which is getting the user info from LDAP. I need both to be have the same user universe.
Are there any snippet that does that already ?
I saw many code to authenticate thourgh LDAP, but what i really need is to populate the LDAP directory with my Django user on the fly
Thanks for your help
Check out this snippet, it should do exactly what you're after (a bit old though, so YMMV with newer django)