[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Is attribute options supported?
Am Thu, 30 Dec 2010 13:09:24 +0100
schrieb "Angel L. Mateo" <amateo@um.es>:
> Hello,
>
> Is attribute options supported in openldap (version 2.4.21)?
>
> In RFC 2251 (LDAPv3) the attributes in search could be
> specified as attribute_name;options, so you could indicate options in
> the return of the attributes.
>
> Specifically, what I want to do is: I have attributes wich
> value is a URN, so I want to get just a special part of the URN, that
> is:
>
> Traditional search:
>
> Ldap filter: (mail=user@mydomain.com)
> Atributos: mail, schacPersonalUniqueID
> Result:
> mail: user@mydomain.com
> schacPersonalUniqueID:
> urn:mace:terena.org:schac:personalUniqueID:es:12345678Q
>
> Search with options:
> Ldap filter: (mail=user@mydomain.com)
> Atributos: mail, schacPersonalUniqueID;x-urn-7
> Result:
> mail: user@mydomain.com
> schacPersonalUniqueID: 12345678Q
>
> I have tried this with a standard configuration, but it isn't
> working:
>
> amateo@joshua:~$ /usr/bin/ldapsearch ... mail=user@mydomain.com
> schacPersonalUniqueID;x-urn-7
> # extended LDIF
> #
> # LDAPv3
> # base <dc=Telematica> with scope subtree
> # filter: uid=amateo
> # requesting: irisClassifCode
> #
>
> # amateo, Usuarios, telematica
> dn: uid=user,ou=People,dc=mydomain,dc=com
>
> # search result
> search: 2
> result: 0 Success
>
> # numResponses: 2
> # numEntries: 1
> x-urn-1: orden no encontrada
>
> Is it supported? Do I have to configure anything in the slapd
> server?
It is supported, but you have to declare the attribute options in
slapd configuration
olcAttributeOptions: x-urn
-Dieter
--
Dieter Klünter | Systemberatung
http://dkluenter.de
GPG Key ID:DA147B05
53°37'09,95"N
10°08'02,42"E