Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

cannot set ldap section #30

Open
xbeta opened this issue Dec 8, 2014 · 1 comment
Open

cannot set ldap section #30

xbeta opened this issue Dec 8, 2014 · 1 comment

Comments

@xbeta
Copy link

xbeta commented Dec 8, 2014

on attributes/default.rb

node.set['gerrit']['auth']['type'] = 'LDAP'
node.set['gerrit']['ldap']['username'] = '[email protected]'

on gerrit.config

[auth]
    type = OPENID
@xbeta xbeta changed the title cannot send ldap section cannot set ldap section Dec 8, 2014
@kylej-ibm
Copy link

I found a workaround for this by inspecting the gerrit.config.erb:

You can add any properties you like to the [ldap] section of your gerrit.config by adding the following in your default.rb

default['gerrit']['config']['auth']['type'] = 'LDAP'
default['gerrit']['config']['ldap']['server'] = 'ldaps://bluepages.ibm.com'
default['gerrit']['config']['ldap']['accountBase'] = 'ou=bluepages,o=ibm.com'
default['gerrit']['config']['ldap']['accountPattern'] = '(mail=${username})'
default['gerrit']['config']['ldap']['groupBase'] = 'ou=memberlist,ou=ibmgroups,o=ibm.com'
default['gerrit']['config']['ldap']['groupMemberPattern'] = '(&(objectClass=groupOfUniqueNames)(uniqueMember=${dn}))'
default['gerrit']['config']['ldap']['accountSshUserName'] = '${mail.localPart}'
default['gerrit']['config']['ldap']['accountFullName'] = '${callupname}'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants