[Date Prev][Date Next]
Issue with using ldap replace with memberofâdangling set as error.
- To: "firstname.lastname@example.org" <email@example.com>
- Subject: Issue with using ldap replace with memberofâdangling set as error.
- From: Vikram <firstname.lastname@example.org>
- Date: Mon, 20 Feb 2012 20:33:18 -0800 (PST)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1329798798; bh=iiUSDw3YiLoA79LQlu30pDS/qaNam2Tgd6+PenTf87w=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=1NkIvauBQyrCOLvaCUxzJqJkRbs1MG2KpQEVWynXxVfvdkd0Dlenk6TwOD8hppYrwVkMBwprKgLU+s1UHWR3k7EL2Uy2RWjnxoSs6w7zT0OeWmKbFy5dqcEINq2v+zWD+hVrl2ND7LgBg6fTsxdzIkjw4NCZeKaYdtOYCRt2pJw=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=dcGpoe5/26BtGSFTGTfMcrwe+wYJwa/LeXIwIvmOOYxTAKmr/SZKy4RNR9KBASCvrj/mIGE2feZ3YDHNduSbVaIJvpMHPGZBjUVnxMrw3Z2Gl8QLEQZjq7SeD+Bn/C4trcrs26NIqXV/2+sQTIUmUZpAVKByRH7bBi0JZl1y6dU=;
- In-reply-to: <1329719041.71815.YahooMailNeo@web121601.mail.ne1.yahoo.com>
- References: <1329719041.71815.YahooMailNeo@web121601.mail.ne1.yahoo.com>
I'm working on writing an custom authorization app on top of openldap. I am currently using openldap version 2.4.26, and using the c api to interact with it. I am trying to use the memberof overlay with memberofâdangling set to error and memberofârefint set to true. I noticed a weird issue which happens here.
1. I add a group with one/zero members who is present in the system.
2. I update the group with one or more non existent users using ldap_modify_ext with mod_op as LDAP_MOD_REPLACE. In this case, ldap throws up the error 'send_ldap_result: err=19 matched="" text="adding non-existing object as group member" ' , but still goes ahead and adds the non existing member to the group even though the operation should fail.
Note that in the "memberofâdangling drop" case the non existent users are not added, though no error is thrown. This seems to be working as expected.
Also doing ldap_modify_ext withÂ LDAP_MOD_ADD works as expected too, where the same error this thrown but users are not added.
Am I missing something?
My slapd.conf has the following relevant configurations:
[Reposting as I do not see my first attempt in the archives]