How to remove LDAP repository

I added an LDAP and switch the order of user repositories. My bad I know.

But now I can't login as local admin into my Confluence as my LDAP contains a user 'admin'.

What can I do?

1 answer

1 accepted

1 vote
Accepted answer
Suren Raj Atlassian Team Apr 06, 2015

Hi Sergei,

This should do the trick and have at least you login with your local admin account. You need to move Internal directory into the first position:

warning Before running any SQL query, please do a full backup of your database, in case things goes sideways.

Cheers
Suren 

 

Thanks. But it looks like "Put the Internal Directory in First Position" assumes that I use External SQL DB but I don't. I'm on Embedded DB. How to restore the order in that case?

Suren Raj Atlassian Team Apr 06, 2015

Hi Sergei, I suggest you to install DB Visualizer and connect it with your embedded database. I suggest you to read below Documentation on how to connect Confluence embedded database with Db Visualizer. * https://confluence.atlassian.com/display/DOC/Connecting+to+HSQLDB+using+DBVisualizer+or+HSQL+database+manager

Suren Raj Atlassian Team Apr 06, 2015

After you connect the database and db visualizer, run the query in db visualizer

Thanks! I found INSERTs in confluencedb.log and swaped indeces in them: INSERT INTO CWD_APP_DIR_MAPPING VALUES(131073,65537,98305,'T',0) INSERT INTO CWD_APP_DIR_MAPPING VALUES(131074,65537,98306,'T',1) and it works now!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,554 views 25 14
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you