Openldap - ldap user can't add entry: Insufficient access (no write access to parent)openldap give group write access to subtreeOpenLDAP : adding ldif output errorUbuntu 10.04 (Lucid) OpenLDAP invalid credentials issueHow to add ACIs to OpenLDAP properlyAuth fail on Samba server with LDAP backendLDAP: error code 50 - no write access to parent while adding user in OpenLDAPerror: Automatically removed objectClass from template as it is not defined in the schemahow to self change attrs in openldaphow to set permission the manager in openldap?OpenLDAP: Index to olcDatabase not respectedslapd with mozillaAbPersonAlpha schema
weird pluperfect subjunctive in Eutropius
How can I get people to remember my character's gender?
Dirichlet series with a single zero
As a GM, is it bad form to ask for a moment to think when improvising?
What happens if I accidentally leave an app running and click "Install Now" in Software Updater?
Why does sound not move through a wall?
Should homeowners insurance cover the cost of the home?
Where are the "shires" in the UK?
How to calculate rate of axial precession?
What does にとり mean?
Is there precedent or are there procedures for a US president refusing to concede to an electoral defeat?
All superlinear runtime algorithms are asymptotically equivalent to convex function?
Can full drive backup be used instead of MSSQL database backup?
In linear regression why does regularisation penalise the parameter values as well?
Has the Hulk always been able to talk?
How to pass hash as password to ssh server
Endgame puzzle: How to avoid stalemate and win?
Would a small hole in a Faraday cage drastically reduce its effectiveness at blocking interference?
What do you call a painting on a wall?
Why didn't this character get a funeral at the end of Avengers: Endgame?
How can Internet speed be 10 times slower without a router than when using the same connection with a router?
Is there a word for food that's gone 'bad', but is still edible?
Which US defense organization would respond to an invasion like this?
How to pass query parameters in URL in Salesforce Summer 19 Release?
Openldap - ldap user can't add entry: Insufficient access (no write access to parent)
openldap give group write access to subtreeOpenLDAP : adding ldif output errorUbuntu 10.04 (Lucid) OpenLDAP invalid credentials issueHow to add ACIs to OpenLDAP properlyAuth fail on Samba server with LDAP backendLDAP: error code 50 - no write access to parent while adding user in OpenLDAPerror: Automatically removed objectClass from template as it is not defined in the schemahow to self change attrs in openldaphow to set permission the manager in openldap?OpenLDAP: Index to olcDatabase not respectedslapd with mozillaAbPersonAlpha schema
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I'ld like to make an addressbook in LDAP (for mailing clients, in first step for my RoundCube). Server is Debian 7.9, slapd 2.4.31 (OpenLDAP). After the successfully installation, I've created a subtree for the addressbook:
dn: ou=rcabook,dc=mydomain,dc=com
ou: rcabook
objectClass: top
objectClass: organizationalUnit
dn: ou=public,ou=rcabook,dc=mydomain,dc=com
ou: public
objectClass: top
objectClass: organizationalUnit
dn: ou=private,ou=rcabook,dc=mydomain,dc=com
ou: private
objectClass: top
objectClass: organizationalUnit
and a regular user for RoundCube:
dn: cn=rcuser,ou=rcabook,dc=mydomain,dc=com
cn: rcuser
objectClass: organizationalRole
objectClass: simpleSecurityObject
userPassword:: e1f2g3....x3y2z1
But when I want to make a new entry as rcuser, I've got this error:
ldapadd -f entry.ldif -D cn=rcuser,ou=rcabook,dc=mydomain,dc=com -W
Enter LDAP Password:
adding new entry "cn=DOMAIN IT,ou=public,ou=rcabook,dc=mydomain,dc=com"
ldap_add: Insufficient access (50)
additional info: no write access to parent
The ou=public,ou=rcabook subtree has a special access in config:
# slapcat -n0
dn: olcDatabase=1hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: 1hdb
olcDbDirectory: /var/lib/ldap
olcSuffix: dc=mydomain,dc=com
olcAccess: 0to attrs=userPassword,shadowLastChange by self write by anonymou
s auth by dn="cn=admin,dc=mydomain,dc=com" write by * none
olcAccess: 1to dn.base="" by * read
olcAccess: 2to * by dn="cn=admin,dc=mydomain,dc=com" write by * read
olcAccess: 3to dn.subtree="ou=public,ou=rcabook,dc=mydomain,dc=com" by users writ
e
olcLastMod: TRUE
...
Which privileges do I need to add, for all user would add the entries to subtree?
Thanks,
a.
permissions ldap openldap
add a comment |
I'ld like to make an addressbook in LDAP (for mailing clients, in first step for my RoundCube). Server is Debian 7.9, slapd 2.4.31 (OpenLDAP). After the successfully installation, I've created a subtree for the addressbook:
dn: ou=rcabook,dc=mydomain,dc=com
ou: rcabook
objectClass: top
objectClass: organizationalUnit
dn: ou=public,ou=rcabook,dc=mydomain,dc=com
ou: public
objectClass: top
objectClass: organizationalUnit
dn: ou=private,ou=rcabook,dc=mydomain,dc=com
ou: private
objectClass: top
objectClass: organizationalUnit
and a regular user for RoundCube:
dn: cn=rcuser,ou=rcabook,dc=mydomain,dc=com
cn: rcuser
objectClass: organizationalRole
objectClass: simpleSecurityObject
userPassword:: e1f2g3....x3y2z1
But when I want to make a new entry as rcuser, I've got this error:
ldapadd -f entry.ldif -D cn=rcuser,ou=rcabook,dc=mydomain,dc=com -W
Enter LDAP Password:
adding new entry "cn=DOMAIN IT,ou=public,ou=rcabook,dc=mydomain,dc=com"
ldap_add: Insufficient access (50)
additional info: no write access to parent
The ou=public,ou=rcabook subtree has a special access in config:
# slapcat -n0
dn: olcDatabase=1hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: 1hdb
olcDbDirectory: /var/lib/ldap
olcSuffix: dc=mydomain,dc=com
olcAccess: 0to attrs=userPassword,shadowLastChange by self write by anonymou
s auth by dn="cn=admin,dc=mydomain,dc=com" write by * none
olcAccess: 1to dn.base="" by * read
olcAccess: 2to * by dn="cn=admin,dc=mydomain,dc=com" write by * read
olcAccess: 3to dn.subtree="ou=public,ou=rcabook,dc=mydomain,dc=com" by users writ
e
olcLastMod: TRUE
...
Which privileges do I need to add, for all user would add the entries to subtree?
Thanks,
a.
permissions ldap openldap
add a comment |
I'ld like to make an addressbook in LDAP (for mailing clients, in first step for my RoundCube). Server is Debian 7.9, slapd 2.4.31 (OpenLDAP). After the successfully installation, I've created a subtree for the addressbook:
dn: ou=rcabook,dc=mydomain,dc=com
ou: rcabook
objectClass: top
objectClass: organizationalUnit
dn: ou=public,ou=rcabook,dc=mydomain,dc=com
ou: public
objectClass: top
objectClass: organizationalUnit
dn: ou=private,ou=rcabook,dc=mydomain,dc=com
ou: private
objectClass: top
objectClass: organizationalUnit
and a regular user for RoundCube:
dn: cn=rcuser,ou=rcabook,dc=mydomain,dc=com
cn: rcuser
objectClass: organizationalRole
objectClass: simpleSecurityObject
userPassword:: e1f2g3....x3y2z1
But when I want to make a new entry as rcuser, I've got this error:
ldapadd -f entry.ldif -D cn=rcuser,ou=rcabook,dc=mydomain,dc=com -W
Enter LDAP Password:
adding new entry "cn=DOMAIN IT,ou=public,ou=rcabook,dc=mydomain,dc=com"
ldap_add: Insufficient access (50)
additional info: no write access to parent
The ou=public,ou=rcabook subtree has a special access in config:
# slapcat -n0
dn: olcDatabase=1hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: 1hdb
olcDbDirectory: /var/lib/ldap
olcSuffix: dc=mydomain,dc=com
olcAccess: 0to attrs=userPassword,shadowLastChange by self write by anonymou
s auth by dn="cn=admin,dc=mydomain,dc=com" write by * none
olcAccess: 1to dn.base="" by * read
olcAccess: 2to * by dn="cn=admin,dc=mydomain,dc=com" write by * read
olcAccess: 3to dn.subtree="ou=public,ou=rcabook,dc=mydomain,dc=com" by users writ
e
olcLastMod: TRUE
...
Which privileges do I need to add, for all user would add the entries to subtree?
Thanks,
a.
permissions ldap openldap
I'ld like to make an addressbook in LDAP (for mailing clients, in first step for my RoundCube). Server is Debian 7.9, slapd 2.4.31 (OpenLDAP). After the successfully installation, I've created a subtree for the addressbook:
dn: ou=rcabook,dc=mydomain,dc=com
ou: rcabook
objectClass: top
objectClass: organizationalUnit
dn: ou=public,ou=rcabook,dc=mydomain,dc=com
ou: public
objectClass: top
objectClass: organizationalUnit
dn: ou=private,ou=rcabook,dc=mydomain,dc=com
ou: private
objectClass: top
objectClass: organizationalUnit
and a regular user for RoundCube:
dn: cn=rcuser,ou=rcabook,dc=mydomain,dc=com
cn: rcuser
objectClass: organizationalRole
objectClass: simpleSecurityObject
userPassword:: e1f2g3....x3y2z1
But when I want to make a new entry as rcuser, I've got this error:
ldapadd -f entry.ldif -D cn=rcuser,ou=rcabook,dc=mydomain,dc=com -W
Enter LDAP Password:
adding new entry "cn=DOMAIN IT,ou=public,ou=rcabook,dc=mydomain,dc=com"
ldap_add: Insufficient access (50)
additional info: no write access to parent
The ou=public,ou=rcabook subtree has a special access in config:
# slapcat -n0
dn: olcDatabase=1hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: 1hdb
olcDbDirectory: /var/lib/ldap
olcSuffix: dc=mydomain,dc=com
olcAccess: 0to attrs=userPassword,shadowLastChange by self write by anonymou
s auth by dn="cn=admin,dc=mydomain,dc=com" write by * none
olcAccess: 1to dn.base="" by * read
olcAccess: 2to * by dn="cn=admin,dc=mydomain,dc=com" write by * read
olcAccess: 3to dn.subtree="ou=public,ou=rcabook,dc=mydomain,dc=com" by users writ
e
olcLastMod: TRUE
...
Which privileges do I need to add, for all user would add the entries to subtree?
Thanks,
a.
permissions ldap openldap
permissions ldap openldap
asked Oct 17 '15 at 10:07
airweenairween
15115
15115
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
From OpenLDAP ACL documentation:
To add or delete an entry, the subject must have write access to
the entry's entry attribute AND must have write access to the
entry's parent's children attribute.
So you need to grant access to the entry
and children
pseudo attributes:
olcAccess: 3to dn.entry="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
olcAccess: 4to dn.children="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
Thanks, I've tried with these ldif:dn: olcDatabase=1hdb,cn=config changetype: modify add: olcAccess olcAccess: 4to dn.entry="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
but I've got:modifying entry "olcDatabase=1hdb,cn=config" ldap_modify: Other (e.g., implementation specific) error (80) additional info: <olcAccess> handler exited with 1
What's the problem?
– airween
Oct 30 '15 at 19:01
What about starting a new question? It looks unrelated to ACL and requires quite more info
– 473183469
Oct 30 '15 at 21:19
There is nodn.entry
, there are onlydn.children
,dn.subtree
,dn.one
anddn.base
– fghj
Apr 15 '16 at 9:47
add a comment |
Side note: I'm not convinced having a user writeable public address book is a good idea.
olcAccess: 2
and olcAccess: 3
need to be reordered. The to * by * read
of olcAccess: 2
matches everything not already matched, which means olcAccess: 3
never gets evaluated.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f729647%2fopenldap-ldap-user-cant-add-entry-insufficient-access-no-write-access-to-pa%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
From OpenLDAP ACL documentation:
To add or delete an entry, the subject must have write access to
the entry's entry attribute AND must have write access to the
entry's parent's children attribute.
So you need to grant access to the entry
and children
pseudo attributes:
olcAccess: 3to dn.entry="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
olcAccess: 4to dn.children="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
Thanks, I've tried with these ldif:dn: olcDatabase=1hdb,cn=config changetype: modify add: olcAccess olcAccess: 4to dn.entry="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
but I've got:modifying entry "olcDatabase=1hdb,cn=config" ldap_modify: Other (e.g., implementation specific) error (80) additional info: <olcAccess> handler exited with 1
What's the problem?
– airween
Oct 30 '15 at 19:01
What about starting a new question? It looks unrelated to ACL and requires quite more info
– 473183469
Oct 30 '15 at 21:19
There is nodn.entry
, there are onlydn.children
,dn.subtree
,dn.one
anddn.base
– fghj
Apr 15 '16 at 9:47
add a comment |
From OpenLDAP ACL documentation:
To add or delete an entry, the subject must have write access to
the entry's entry attribute AND must have write access to the
entry's parent's children attribute.
So you need to grant access to the entry
and children
pseudo attributes:
olcAccess: 3to dn.entry="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
olcAccess: 4to dn.children="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
Thanks, I've tried with these ldif:dn: olcDatabase=1hdb,cn=config changetype: modify add: olcAccess olcAccess: 4to dn.entry="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
but I've got:modifying entry "olcDatabase=1hdb,cn=config" ldap_modify: Other (e.g., implementation specific) error (80) additional info: <olcAccess> handler exited with 1
What's the problem?
– airween
Oct 30 '15 at 19:01
What about starting a new question? It looks unrelated to ACL and requires quite more info
– 473183469
Oct 30 '15 at 21:19
There is nodn.entry
, there are onlydn.children
,dn.subtree
,dn.one
anddn.base
– fghj
Apr 15 '16 at 9:47
add a comment |
From OpenLDAP ACL documentation:
To add or delete an entry, the subject must have write access to
the entry's entry attribute AND must have write access to the
entry's parent's children attribute.
So you need to grant access to the entry
and children
pseudo attributes:
olcAccess: 3to dn.entry="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
olcAccess: 4to dn.children="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
From OpenLDAP ACL documentation:
To add or delete an entry, the subject must have write access to
the entry's entry attribute AND must have write access to the
entry's parent's children attribute.
So you need to grant access to the entry
and children
pseudo attributes:
olcAccess: 3to dn.entry="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
olcAccess: 4to dn.children="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
answered Oct 29 '15 at 11:09
473183469473183469
975617
975617
Thanks, I've tried with these ldif:dn: olcDatabase=1hdb,cn=config changetype: modify add: olcAccess olcAccess: 4to dn.entry="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
but I've got:modifying entry "olcDatabase=1hdb,cn=config" ldap_modify: Other (e.g., implementation specific) error (80) additional info: <olcAccess> handler exited with 1
What's the problem?
– airween
Oct 30 '15 at 19:01
What about starting a new question? It looks unrelated to ACL and requires quite more info
– 473183469
Oct 30 '15 at 21:19
There is nodn.entry
, there are onlydn.children
,dn.subtree
,dn.one
anddn.base
– fghj
Apr 15 '16 at 9:47
add a comment |
Thanks, I've tried with these ldif:dn: olcDatabase=1hdb,cn=config changetype: modify add: olcAccess olcAccess: 4to dn.entry="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
but I've got:modifying entry "olcDatabase=1hdb,cn=config" ldap_modify: Other (e.g., implementation specific) error (80) additional info: <olcAccess> handler exited with 1
What's the problem?
– airween
Oct 30 '15 at 19:01
What about starting a new question? It looks unrelated to ACL and requires quite more info
– 473183469
Oct 30 '15 at 21:19
There is nodn.entry
, there are onlydn.children
,dn.subtree
,dn.one
anddn.base
– fghj
Apr 15 '16 at 9:47
Thanks, I've tried with these ldif:
dn: olcDatabase=1hdb,cn=config changetype: modify add: olcAccess olcAccess: 4to dn.entry="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
but I've got: modifying entry "olcDatabase=1hdb,cn=config" ldap_modify: Other (e.g., implementation specific) error (80) additional info: <olcAccess> handler exited with 1
What's the problem?– airween
Oct 30 '15 at 19:01
Thanks, I've tried with these ldif:
dn: olcDatabase=1hdb,cn=config changetype: modify add: olcAccess olcAccess: 4to dn.entry="ou=public,ou=rcabook,dc=mydomain,dc=com" by users write
but I've got: modifying entry "olcDatabase=1hdb,cn=config" ldap_modify: Other (e.g., implementation specific) error (80) additional info: <olcAccess> handler exited with 1
What's the problem?– airween
Oct 30 '15 at 19:01
What about starting a new question? It looks unrelated to ACL and requires quite more info
– 473183469
Oct 30 '15 at 21:19
What about starting a new question? It looks unrelated to ACL and requires quite more info
– 473183469
Oct 30 '15 at 21:19
There is no
dn.entry
, there are only dn.children
, dn.subtree
, dn.one
and dn.base
– fghj
Apr 15 '16 at 9:47
There is no
dn.entry
, there are only dn.children
, dn.subtree
, dn.one
and dn.base
– fghj
Apr 15 '16 at 9:47
add a comment |
Side note: I'm not convinced having a user writeable public address book is a good idea.
olcAccess: 2
and olcAccess: 3
need to be reordered. The to * by * read
of olcAccess: 2
matches everything not already matched, which means olcAccess: 3
never gets evaluated.
add a comment |
Side note: I'm not convinced having a user writeable public address book is a good idea.
olcAccess: 2
and olcAccess: 3
need to be reordered. The to * by * read
of olcAccess: 2
matches everything not already matched, which means olcAccess: 3
never gets evaluated.
add a comment |
Side note: I'm not convinced having a user writeable public address book is a good idea.
olcAccess: 2
and olcAccess: 3
need to be reordered. The to * by * read
of olcAccess: 2
matches everything not already matched, which means olcAccess: 3
never gets evaluated.
Side note: I'm not convinced having a user writeable public address book is a good idea.
olcAccess: 2
and olcAccess: 3
need to be reordered. The to * by * read
of olcAccess: 2
matches everything not already matched, which means olcAccess: 3
never gets evaluated.
answered Apr 8 '18 at 16:55
8410484104
10.5k43168
10.5k43168
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f729647%2fopenldap-ldap-user-cant-add-entry-insufficient-access-no-write-access-to-pa%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown