Skip to content

Instantly share code, notes, and snippets.

@jgeek
Last active April 24, 2016 11:46
Show Gist options
  • Save jgeek/312a25a1a811c7fe572283aafc5a08bf to your computer and use it in GitHub Desktop.
Save jgeek/312a25a1a811c7fe572283aafc5a08bf to your computer and use it in GitHub Desktop.
gerrit ldap
ldap installation:
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-a-basic-ldap-server-on-an-ubuntu-12-04-vps
----------
No index versions ready; run Reindex
solution:
$java -jar gerrit.war reindex
----------------
The first user who logs in an empty Gerrit instance becomes an admin.
Please check in your database how many accounts you have created:
- stop your gerrit instance
- from the review_site folder execute:
java -jar bin/gerrit.war gsql
when it starts type:
select * from accounts;
Does it show more than one account?
The one with the lowest account_id should be an admin.
also check:
select * from account_groups;
there should be Administrators group listed with group_id = 1;
finally:
select * from account_group_members;
--------------------
phpLDAPadmin:
Error trying to get a non-existent value (appearance, password_hash) in LDAP:
$default = $this->getServer()->getValue('appearance','password_hash'); ->
$default = $this->getServer()->getValue('appearance','password_hash_custom');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment