Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix setting ACL if they had been set before #230

Merged
merged 2 commits into from
Sep 27, 2018

Conversation

fklajn
Copy link
Contributor

@fklajn fklajn commented Sep 7, 2018

This PR fixes ACL setting - if there was an entry that has to be update then resource must not be created but updated. Result before fix:
`Error: LDIF content:
dn: olcDatabase={1}monitor,cn=config
add: olcAccess
olcAccess: {0}to *
by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage
by * break

Error message: Execution of '/usr/bin/ldapmodify -Y EXTERNAL -H ldapi:/// -f /tmp/openldap_access20180907-14186-1lgqm23' returned 20: SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
ldap_modify: Type or value exists (20)
additional info: modify/add: olcAccess: value #0 already exists`

@viq
Copy link

viq commented Sep 26, 2018

Any chance of this going in? It would be useful for me as well.

@mcanevet mcanevet merged commit 8d56db2 into voxpupuli:master Sep 27, 2018
@fklajn fklajn deleted the fix_acl_update branch September 27, 2018 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants