[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
how to use slapo-refint (or why it doesn't work?)
I wish to use slapo-refint on attribute contactPerson
attributetype ( 1.3.6.1.4.1.2787.100.1.1.1 NAME 'contactPerson'
DESC 'DN of the company representative'
EQUALITY distinguishedNameMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 )
The man page for slapo-refint is pretty simple, only suggesting adding
refint_attributes in slapd.conf so I did (I added it just below "index"
directive).
It doesn't work for two of my openldap 2.3.30-r2 installations, one
using bdb, one using hdb.
It's my first time using slapo-refint so I am not sure what correct
behavior it should be. I've listed my operation for experimenting the
new feature as follows (please criticize). Thanks a lot in advance!
zhangweiwu@joe:~> ldapsearch -H ldap://emerson/ -x -D uid=supertuxadmin,ou=contacts,ou=china,dc=ahk,dc=de -W -b uid=Drr,ou=contacts,ou=china,dc=ahk,dc=de objectClass=* contactPerson
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <uid=Drr,ou=contacts,ou=china,dc=ahk,dc=de> with scope subtree
# filter: objectClass=*
# requesting: contactPerson
#
# Drr, contacts, china, ahk.de
dn: uid=Drr,ou=contacts,ou=china,dc=ahk,dc=de
contactPerson: cn=Reiner Schmid,uid=Drr,ou=contacts,ou=china,dc=ahk,dc=de
# Reiner Schmid, Drr, contacts, china, ahk.de
dn: cn=Reiner Schmid,uid=Drr,ou=contacts,ou=china,dc=ahk,dc=de
# search result
search: 2
result: 0 Success
zhangweiwu@joe:~> ldapmodrdn -H ldap://emerson/ -x -D uid=supertuxadmin,ou=contacts,ou=china,dc=ahk,dc=de -W 'cn=Reiner Schmid,uid=Drr,ou=contacts,ou=china,dc=ahk,dc=de' 'cn=Reiner Schtid'
Enter LDAP Password:
zhangweiwu@joe:~> ldapsearch -H ldap://emerson/ -x -D uid=supertuxadmin,ou=contacts,ou=china,dc=ahk,dc=de -W -b uid=Drr,ou=contacts,ou=china,dc=ahk,dc=de objectClass=* contactPerson
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <uid=Drr,ou=contacts,ou=china,dc=ahk,dc=de> with scope subtree
# filter: objectClass=*
# requesting: contactPerson
#
# Drr, contacts, china, ahk.de
dn: uid=Drr,ou=contacts,ou=china,dc=ahk,dc=de
contactPerson: cn=Reiner Schmid,uid=Drr,ou=contacts,ou=china,dc=ahk,dc=de
# Reiner Schtid, Drr, contacts, china, ahk.de
dn: cn=Reiner Schtid,uid=Drr,ou=contacts,ou=china,dc=ahk,dc=de
# search result
search: 2
result: 0 Success
# numResponses: 3
# numEntries: 2
--
Zhang Weiwu
Real Softservice
http://www.realss.com
+86 592 2091112