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

Re: index statement for LDBM backend



kiss the sun and walk on air wrote:

> I am confusing myself with the index directive for the LDBM backend.
> If I have the following index lines:
>
> index cn
> index sn
> index uid

Try

index   cn pres,eq,sub
index   sn pres,eq,sub
index uid eq

The problem looks like you are *NOT* telling the server what kind of index to create.
-KRaj



>
>
> the following user cannot login in (or anyone, this is just my test user):
>
> uid=test1,ou=People,o=The Independent Florida Alligator,o=Campus Communications Inc., c=US
> uid=test1
> cn=test user 1
> objectclass=top
> objectclass=posixAccount
> objectclass=shadowAccount
> userpassword={crypt}thecrypted password
> shadowlastchange=10704
> shadowmax=99999
> shadowwarning=7
> shadowinactive=-1
> shadowexpire=-1
> shadowflag=134525956
> loginshell=/bin/bash
> uidnumber=612
> gidnumber=500
> homedirectory=/home/test1
> gecos=test user 1
>
> If I uncomment those lines, things work as expected. Why does the
> precense of those index directives keep the login from working?
>
> This is OpenLDAP 1.2.1 on a RedHat 5.1 system. Using pam_ldap and
> nss_ldap from padl.com
> -pete
>
> --
> (peter.royal|osi)@pobox.com - http://pobox.com/~osi
> "god invented turn signals for a reason"
> uin#153025
begin:vcard 
n:Kunjithapadam;Raj
tel;cell:408-504-3254
tel;home:510-651-9978
tel;work:650-569-5733
x-mozilla-html:TRUE
org:@Home Network;Set Top Engineering
adr:;;4023 Budwing Terrace;Fremont;CA;94538;US
version:2.1
email;internet:rajk@home.com
title:Software Engineer
x-mozilla-cpt:;0
fn:Raj Kunjithapadam
end:vcard