[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldapsearch issue
- To: <OpenLDAP-software@OpenLDAP.org>
- Subject: ldapsearch issue
- From: "Edward De Jongh" <Edwardd@discovery.co.za>
- Date: Wed, 27 Apr 2005 11:02:40 +0200
- Content-class: urn:content-classes:message
- Thread-index: AcVKoDhIzAL8anhgQfG6OSwawAUSxwAZigXA
- Thread-topic: ldapsearch issue
Hi all I have a small issue which I think relates to my slapd.conf
settings:
index objectclass eq,pres
index cn,sn,displayname eq,subinitial
index employeeNumber eq
if I search for a user like so:
Attributes attrs = ctx.getAttributes("cn=someone
x,ou=somewhere,dc=example,dc=co,dc=za");
I can retrieve all attributes including employeeNumber etc as per the
following LDIF structure:
dn: cn=someone x,ou=somewhere,dc=example,dc=co,dc=za
objectclass: lifeUser
displayName: something
employeeNumber: 1031275942
cn: someone
sn: x
role: NB_SPECIAL_PROJECTS
role: ROLE.SPECIALPROJECTS
However I cannot do a search based on employee number
Like so employeeNumber=1031275942,ou=somewhere,dc=example,dc=co,dc=za
Can somebody please let me know what I'm missing.
Tia
ed