On čtvrtek 16. února 2017 21:22:41 CET, Darragh Bailey wrote:
> * internal application ldap accounts must use a password containing special
> characters, while do not work with basic authentication as required for the
> rest api.
> * Gerrit doesn't seem to support cookie based access to the rest api's so
> even though I can auth with curl and save the cookie to use for the next
> operations, it isn't accepted
> * internal application ldap accounts do not have sufficient information to
> populate certain fields such as the ssh username which means I can't
> trigger a HTTP password generation
It seems that #3 is your problem. Are the features in [1] not enough?
When this is solved, you can then use the Gerrit-generated HTTP password
for authenticating against the REST API.
> It feels like there should be a programmable way to establish an initial
> account during the initialisation even if using ldap or oath authentication
> that can then be used configure any additional service account and groups.
The first account which logs in through the web interface becomes an
administrator. On Gerrit systems that I bootstrapped, this was usually
enough (even though I'm a big fan of automatization).
> Right now it looks like we'll bring Gerrit up in
> development_become_any_account mode listening to localhost only, then
> create some addition service/management accounts (at least one for admin
> access) followed by reconfiguring Gerrit to use ldap and forcing a restart.
This is no better than just letting your first user become an
administrator.
Cheers,
Jan
[1]
https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#ldap.accountS
--
Trojitá, a fast Qt IMAP e-mail client --
http://trojita.flaska.net/