Discussion:
multi-value attribute virtual view of single attribute
(too old to reply)
Jason Whitener
2015-10-23 19:15:35 UTC
Permalink
If I had a multi-valued attribute like
cn: var0:value
cn: var2:value
cn: var3:value

is there a way to expose each varX as if it were an attribute for search
filter purposes?

For instance, ldapsearch.....&((objectclass=person)(var0=value))

I started looking into slapo-rwm. Is that the best way to accomplish this?
Quanah Gibson-Mount
2015-10-24 01:49:28 UTC
Permalink
Content preview: --On Friday, October 23, 2015 1:15 PM -0700 Jason Whitener
<***@pcc.edu> wrote: > > If I had a multi-valued attribute like > cn:
var0:value > cn: var2:value > cn: var3:value I think you're looking for the
valsort overlay. Read the man page for slapo-valsort [...]

Content analysis details: (-4.3 points, 5.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium
trust
[162.209.122.184 listed in list.dnswl.org]
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[URIs: pcc.edu]
-0.0 SPF_PASS SPF: sender matches SPF record
0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature

--On Friday, October 23, 2015 1:15 PM -0700 Jason Whitener
Post by Jason Whitener
If I had a multi-valued attribute like
cn: var0:value
cn: var2:value
cn: var3:value
I think you're looking for the valsort overlay. Read the man page for
slapo-valsort


--Quanah



--

Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Howard Chu
2015-10-24 05:24:24 UTC
Permalink
Content preview: Quanah Gibson-Mount wrote: > --On Friday, October 23, 2015
1:15 PM -0700 Jason Whitener <***@pcc.edu> > wrote: > >> >> If I had
a multi-valued attribute like >> cn: var0:value >> cn: var2:value >> cn:
var3:value > > I think you're looking for the valsort overlay. Read the man
page for > slapo-valsort [...]

Content analysis details: (-4.2 points, 5.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium
trust
[69.43.206.106 listed in list.dnswl.org]
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[URIs: highlandsun.com]
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
Post by Quanah Gibson-Mount
Post by Jason Whitener
If I had a multi-valued attribute like
cn: var0:value
cn: var2:value
cn: var3:value
I think you're looking for the valsort overlay. Read the man page for
slapo-valsort
If each of those are just arbitrary tags, and not for ordering purposes, then
just using an attribute tag might be the better option.

cn;var0: value
cn;var2: value
cn;var3: value
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
Marc Patermann
2015-10-26 15:26:17 UTC
Permalink
Content preview: Howard, Am 24.10.2015 um 07:24 Uhr schrieb Howard Chu: > Quanah
Gibson-Mount wrote: >> --On Friday, October 23, 2015 1:15 PM -0700 Jason
Whitener >> <***@pcc.edu> >> wrote: >> >>> >>> If I had a multi-valued
attribute like >>> cn: var0:value >>> cn: var2:value >>> cn: var3:value >>
Post by Howard Chu
I think you're looking for the valsort overlay. Read the man page for
slapo-valsort > > If each of those are just arbitrary tags, and not for
ordering purposes, > then just using an attribute tag might be the better
option. > > cn;var0: value > cn;var2: value > cn;var3: value > regarding
LDAP and tags I only found this RFC: https://tools.ietf.org/html/rfc3866 [...]


Content analysis details: (-4.2 points, 5.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium
trust
[195.37.199.246 listed in list.dnswl.org]
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[URIs: pcc.edu]
0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]

Howard,
Post by Howard Chu
--On Friday, October 23, 2015 1:15 PM -0700 Jason Whitener
Post by Jason Whitener
If I had a multi-valued attribute like
cn: var0:value
cn: var2:value
cn: var3:value
I think you're looking for the valsort overlay. Read the man page for
slapo-valsort
If each of those are just arbitrary tags, and not for ordering purposes,
then just using an attribute tag might be the better option.
cn;var0: value
cn;var2: value
cn;var3: value
regarding LDAP and tags I only found this RFC:
https://tools.ietf.org/html/rfc3866

But it is about languages tags only. Section 1.3 speaks about
"cn;x-bar", so this is for arbitrary tags?
Is this what you meant or can you point me to something else?


Marc
Howard Chu
2015-10-27 10:00:57 UTC
Permalink
Content preview: Marc Patermann wrote: > Howard, > > Am 24.10.2015 um 07:24
Uhr schrieb Howard Chu: >> Quanah Gibson-Mount wrote: >>> --On Friday, October
Post by Marc Patermann
Post by Howard Chu
Post by Quanah Gibson-Mount
Post by Jason Whitener
If I had a multi-valued attribute like >>>> cn: var0:value >>>>
cn: var2:value >>>> cn: var3:value >>> >>> I think you're looking for the
valsort overlay. Read the man page for >>> slapo-valsort >> >> If each of
those are just arbitrary tags, and not for ordering purposes, >> then just
using an attribute tag might be the better option. >> >> cn;var0: value >>
cn;var2: value >> cn;var3: value >> > regarding LDAP and tags I only found
this RFC: > https://tools.ietf.org/html/rfc3866 > > But it is about languages
tags only. Section 1.3 speaks about "cn;x-bar", so > this is for arbitrary
tags? > Is this what you meant or can you point me to something else? [...]


Content analysis details: (-4.2 points, 5.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium
trust
[69.43.206.106 listed in list.dnswl.org]
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[URIs: highlandsun.com]
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
Post by Marc Patermann
Howard,
Post by Howard Chu
Post by Quanah Gibson-Mount
--On Friday, October 23, 2015 1:15 PM -0700 Jason Whitener
Post by Jason Whitener
If I had a multi-valued attribute like
cn: var0:value
cn: var2:value
cn: var3:value
I think you're looking for the valsort overlay. Read the man page for
slapo-valsort
If each of those are just arbitrary tags, and not for ordering purposes,
then just using an attribute tag might be the better option.
cn;var0: value
cn;var2: value
cn;var3: value
https://tools.ietf.org/html/rfc3866
But it is about languages tags only. Section 1.3 speaks about "cn;x-bar", so
this is for arbitrary tags?
Is this what you meant or can you point me to something else?
RFC 4512 Section 2.5.2.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
Marc Patermann
2015-10-27 13:20:05 UTC
Permalink
Content preview: Howard, Am 27.10.2015 um 11:00 Uhr schrieb Howard Chu: > Marc
Patermann wrote: >> Am 24.10.2015 um 07:24 Uhr schrieb Howard Chu: >>> Quanah
Gibson-Mount wrote: >>>> --On Friday, October 23, 2015 1:15 PM -0700 Jason
Whitener >>>> <***@pcc.edu> >>>> wrote: >>>> >>>>> >>>>> If I had a
multi-valued attribute like >>>>> cn: var0:value >>>>> cn: var2:value >>>>>
cn: var3:value >>>> >>>> I think you're looking for the valsort overlay.
Read the man page for >>>> slapo-valsort >>> >>> If each of those are just
arbitrary tags, and not for ordering purposes, >>> then just using an attribute
tag might be the better option. >>> >>> cn;var0: value >>> cn;var2: value
https://tools.ietf.org/html/rfc3866 >> >> But it is about languages tags
only. Section 1.3 speaks about >> "cn;x-bar", so >> this is for arbitrary
tags? >> Is this what you meant or can you point me to something else? >
RFC 4512 Section 2.5.2. Thanks. [...]
Content analysis details: (-4.2 points, 5.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium
trust
[195.37.199.245 listed in list.dnswl.org]
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[URIs: pcc.edu]
0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]

Howard,
Post by Howard Chu
Post by Quanah Gibson-Mount
--On Friday, October 23, 2015 1:15 PM -0700 Jason Whitener
Post by Jason Whitener
If I had a multi-valued attribute like
cn: var0:value
cn: var2:value
cn: var3:value
I think you're looking for the valsort overlay. Read the man page for
slapo-valsort
If each of those are just arbitrary tags, and not for ordering purposes,
then just using an attribute tag might be the better option.
cn;var0: value
cn;var2: value
cn;var3: value
https://tools.ietf.org/html/rfc3866
But it is about languages tags only. Section 1.3 speaks about
"cn;x-bar", so
this is for arbitrary tags?
Is this what you meant or can you point me to something else?
RFC 4512 Section 2.5.2.
Thanks.

With searching for "Attribute Options" I found the corresponding setting
in slapd.conf:
attributeoptions

When I set
attributeoptions lang- x-
I can set "lang-" option tags and private "x-" tags, right?


Marc
Jason Whitener
2015-10-27 16:53:05 UTC
Permalink
google search: "attribute tags" site:openldap.org returns 4 hits, none to
documentation. Can you point me towards a document that describes how to
use attribute tags?
Post by Howard Chu
Post by Marc Patermann
Howard,
Post by Howard Chu
Post by Quanah Gibson-Mount
--On Friday, October 23, 2015 1:15 PM -0700 Jason Whitener
Post by Jason Whitener
If I had a multi-valued attribute like
cn: var0:value
cn: var2:value
cn: var3:value
I think you're looking for the valsort overlay. Read the man page for
slapo-valsort
If each of those are just arbitrary tags, and not for ordering purposes,
then just using an attribute tag might be the better option.
cn;var0: value
cn;var2: value
cn;var3: value
https://tools.ietf.org/html/rfc3866
But it is about languages tags only. Section 1.3 speaks about "cn;x-bar", so
this is for arbitrary tags?
Is this what you meant or can you point me to something else?
RFC 4512 Section 2.5.2.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
Loading...