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

deleting bad referral



Hi, I am new at this whole ldap thing and I think I may have messed up my 
server. I was hoping to run my scenario by you all and verify if this is 
in fact a bug as it seems.

I am running OpenLDAP 2.0.11 on a redhat 7.0 box using sasl. I have been 
learning by pidding around, and at one point I entered an entry like this:

dn: mail=will@himinbi.org, ou=People, o=Education Department,
      o=Tennessee Tech University, c=US
objectClass: referral
ref: cn=Will Holcomb, ou=People, o=Honors, o=Tennessee Tech University,
      c=US

I understand now what referrals are and that it should have been a full 
url, but hindsight is often clear. =)

Anyhow, when I search I get:

$ ldapsearch -x -b \
   'ou=People, o=Education Department, o=Tennessee Tech University, c=US' \
   -C 'mail=will@himinbi.org'

# search reference
ref: cn=Will

Which is decidedly not the whole dn, just the beginning. It bothered me, 
so I tried to delete it:

$ ldapdelete 'mail=will@himinbi.org, ou=People, o=Education Department, o=Tennessee Tech University, c=US'
SASL/DIGEST-MD5 authentication started
Please enter your password:
SASL username: root
SASL realm: odin
SASL SSF: 128
SASL installing layers
Delete Result: Referral (10)
Matched DN: mail=will@himinbi.org, ou=People, o=Education Department, o=Tennessee Tech University, c=US
Referral: cn=Will

Again the partial dn, and more importantly it doesn't do anything. The 
entry is still there.

Any suggestions would be appreciated. I am really at a loss. This whole 
ldap thing is really cool though; I'm trying to set one up for us here at 
school and I think it will be really helpful.

Will