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

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