[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Is attribute options supported?
- To: Openldap-technical <openldap-technical@openldap.org>
- Subject: Is attribute options supported?
- From: "Angel L. Mateo" <amateo@um.es>
- Date: Thu, 30 Dec 2010 13:09:24 +0100
- Organization: ATICA, Universidad de Murcia
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7
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?
--
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información _o)
y las Comunicaciones Aplicadas (ATICA) / \\
http://www.um.es/atica _(___V
Tfo: 868887590
Fax: 868888337