[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: attribute alias problem



So what does the alternative name do exactly? I know the sun directory
server uses this the way I described: as an alias for searchin. I expected
openldap to be the same...

Franky

> ----------
> From: 	Kurt D. Zeilenga[SMTP:Kurt@OpenLDAP.Org]
> Sent: 	Thursday, July 01, 1999 9:56 PM
> To: 	Van Liedekerke Franky
> Cc: 	'openldap-software@openldap.org'
> Subject: 	Re: attribute alias problem
> 
> At 04:33 PM 7/1/99 +0200, Van Liedekerke Franky wrote:
> >Hi,
> >
> >i'm using openldap 1.2.3 on solaris 2.6
> >I created an extra entry in slap.at.conf:
> >
> >attribute mailprogramdeliveryinfo deliveryprogrampath cis
> 
> >meaning to use deliveryprogrampath as an alias for
> mailprogramdeliveryinfo.
> 
> Actually, that creates an "alternative name".  Aliasing implies
> the server might do fancy rewriting of input, filters, attribute
> lists, and output.  It doesn't.
> 
> >Now when I do a ldapsearch (ldapsearch -b 'o=pandora.be' 'uiserid=test'
> >mailprogramdeliveryinfo) with return attribute mailprogramdeliveryinfo
> (the
> >way it is in ldap) I get one entry back , which is good...:
> >
> >userid=test,ou=accounts,o=pandora.be
> >mailprogramdeliveryinfo=/test/program
> >
> >But when I do the same ldapsearch with return attribute
> >mailprogramdeliveryinfo, I get back the first line of the record, but not
>  ^^^^^^^^^^^^^^^^^^^^^^^ or deliveryprogrampath ?
> >the value of the attribute??:
> >
> >userid=test,ou=accounts,o=pandora.be
> 
> I would expect this if you asked for only deliveryprogrampath.
> 
> With the attached testsuite entry, this command:
> 	ldapsearch -L -b "..." (objectclass=*) pager fax
> 
> returned:
> 	dn: cn=Ursula Hampster, ou=Alumni Association, ou=People,
> o=University 	of Michigan, c=US
> 	pager: +1 313 555 2844
> 
> which I find acceptable for an LDAPv2 server.
> 
> --- Entry ---
> 
> dn: cn=Ursula Hampster, ou=Alumni Association, ou=People, o=University of
> Mich
>  igan, c=US
> objectclass: top
> objectclass: person
> objectclass: organizationalPerson
> objectclass: newPilotPerson
> objectclass: umichPerson
> cn: Ursula Hampster
> sn: Hampster
> title: Secretary, UM Alumni Association
> postaladdress: Alumni Association $ 111 Maple St $ Ann Arbor, MI 48109
> seealso: cn=All Staff, ou=Groups, o=University of Michigan, c=US
> uid: uham
> homepostaladdress: 123 Anystreet $ Ann Arbor, MI 48104
> krbname: jdoe@umich.edu
> nobatchupdates: TRUE
> onvacation: FALSE
> mail: uham@mail.alumni.umich.edu
> homephone: +1 313 555 8421
> pager: +1 313 555 2844
> facsimiletelephonenumber: +1 313 555 9700
> telephonenumber: +1 313 555 5331
> 
> 
>