[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Uniqueness across multiple attributes
- To: openldap-technical@openldap.org
- Subject: Re: Uniqueness across multiple attributes
- From: "A. Schulze" <sca@andreasschulze.de>
- Date: Wed, 12 Jun 2019 20:05:42 +0200
- Content-language: en-US
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=andreasschulze.de; i=@andreasschulze.de; q=dns/txt; s=ed25519; t=1560362750; h=subject : to : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding : from; bh=qgpMGXtHUTyZ8q+pzHjeQBOroL6GV2Na+AYQQ96G0nA=; b=UAZxJwv+ZiNk4PUMLXhxDozFeDqGBLVAdWKnHn9AADheaRP9upN+gn6s Y1ztwV3wxX5NserDHxRt6YkiIMIXBA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andreasschulze.de; s=201903-A9C5ADDF; t=1560362750; x=1565362750; bh=qgpMGXtHUTyZ8q+pzHjeQBOroL6GV2Na+AYQQ96G0nA=; h=Subject:To:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type:Content-Transfer-Encoding:autocrypt:cc: content-transfer-encoding:content-type:date:from:in-reply-to: message-id:mime-version:openpgp:references:subject:to; b=FxUkp6gvXJJnHQxJfrtmPd19VrOvjJ4CE534o17Et3K+2S+O0ApI7hi0bfa7i6O6Z iKWiPishKnO55fC1AfbGP2XKWcdQvWLiY0/y5HEafhDr+lwUkFh/7Z8nS47TOg+Hiv x2TpgULGwDq/R9VX6S9xhp/z6w6/j0z+1I8BodWVOUCewga0tv7rhc4xTcLhXe+cpT Ce+921cPTTJHmLGhM7BYUhyn8Q+ShKRG1Pk5vAP1GN1l8mdf626Bj7QVG8jT6vICC/ 0AtkEJF7q3wV+uKxhbsQhCvL2aZ/sYx0MPYHoY3RQCFr0CXjJwh0goHWONRYFYO0PH GlUkmR5aKmZpw==
- In-reply-to: <CAM=M8hLATaqv9U7Je=mSTQAUaOh8nT=Gv-X73e5nvgOpbbSHZw@mail.gmail.com>
- References: <CAM=M8hLATaqv9U7Je=mSTQAUaOh8nT=Gv-X73e5nvgOpbbSHZw@mail.gmail.com>
Am 12.06.19 um 13:51 schrieb Stefan Schmidt:
> Hello,
>
> is it possible define a unique constraint across attributes? We have a mail field and a mailAlias field and would like to assure that if a mail address exists either in mail or mailAlias it cannot be added again to either field, meaning mail addresses are unique in the complete tree.
>
> We are using OpenLDAP 2.4 and currently we use the following LDIF to load the unique module and assure that the mail attribute is unique:
>
> dn: cn=module,cn=config
> cn: module
> objectclass: olcModuleList
> objectclass: top
> olcmoduleload: unique
> olcmodulepath: /usr/lib/ldap
>
> dn: olcOverlay=unique,olcDatabase={1}hdb,cn=config
> objectClass: olcOverlayConfig
> objectClass: olcUniqueConfig
> olcOverlay: {0}unique
> olcUniqueAttribute: mail
>
> Which LDIF would I use to assure uniqueness across mail and mailAlias?
>
> Cheers,
> Stefan Schmidt
see my question http://www.openldap.org/lists/openldap-technical/201905/msg00021.html
and the answer http://www.openldap.org/lists/openldap-technical/201905/msg00022.html