From Ulrich.Windl@rz.uni-regensburg.de Tue Feb 15 14:54:05 2022 From: Ulrich Windl To: openldap-technical@openldap.org Subject: Antw: [EXT] Re: How to restrict access to pwdHistory attributes Date: Tue, 15 Feb 2022 08:49:18 +0100 Message-ID: <620B5AFE020000A100047C5D@gwsmtp.uni-regensburg.de> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4077137457709043773==" --===============4077137457709043773== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable >>> Chandeshwar Mishra schrieb am 14.02.2022= um 23:26 in Nachricht : > Hi Quanah, >=20 > Thanks for your response. Our setup is a very old one and we are planning > to migrate it to the latest stable version but Since this openldap is > deployed in Production > it is not possible for us to upgrade it suddenly. >=20 > As you mentioned that ppolicy schema is missing in configuration, so is it > possible that without having ppolicy schema, Openldap will remember the > pwdHistory of the user ? My guess is that unconfiguring ppolicy does not make the entries created by p= policy go away. You probably have to remove them if you want them to go away, or re-confiugur= e ppolicy if you want to use them. Regards, Ulrich >=20 > In my case pwdHistory is visible to users, for which I want to apply ACL so > that a user can only see his/her pwdHistory , not other users pwdHistory. >=20 > Below are my configuration related to ppolicy configuration in config file:- >=20 > include /etc/openldap/schema/ppolicy.schema > --- more include directive related to schema >=20 > ---- > moduleload ppolicy.la > moduleload memberof.la > overlay memberof > overlay syncprov > overlay auditlog > #overlay accesslog > overlay ppolicy > ppolicy_default "cn=3DpasswordDefault,dc=3Dexample,dc=3Dcom" >=20 > Thanks & Regards, > Chandeshwar Kumar >=20 >=20 >=20 >=20 >=20 > On Mon, Feb 14, 2022 at 11:24 PM Quanah Gibson-Mount > wrote: >=20 >> >> >> --On Saturday, February 12, 2022 5:22 AM +0000 >> kumarchandeshwar99(a)gmail.com=20 >> wrote: >> >> > Hi, >> > I am trying to restrict access to pwdHistory attributes provided by >> > ppolicy overlay. I have applied the below ACL >> > >> > access to attrs=3DpwdHistory >> > by * none >> > but while doing slaptest, its throwing below error:- >> > /etc/openldap/slapd.conf: line 212: unknown attr "pwdHistory" in to >> clause >> > ::=3D access to [ by [ ] [ >> > ] ]+ ::=3D * | dn[.=3D] [filter=3D] >> > [attrs=3D] ::=3D >> > [val[/][.]=3D] | := :=3D >> > [ , ] >> > ::=3D | @ | ! | entry | >> children >> > ::=3D [ * | anonymous | users | self | dn[.]=3D ] >> > [ realanonymous | realusers | realself | realdn[.]=3D >> ] >> > [dnattr=3D] >> > [realdnattr=3D] >> > [group[/[/]][.