[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#3455) test030-relay failure
At 03:19 PM 12/29/2004, ando@sys-net.it wrote:
>Looks like adding the referral entry, or searching for it with -e
>manageDSAit, silently fails. I've just fixed a missing test, can you
>retry
no change in behavior.
>and post the contents of testrun/test.out as well?
adding new entry "dc=example,dc=com"
adding new entry "ou=People,dc=example,dc=com"
adding new entry "ou=Groups,dc=example,dc=com"
adding new entry "ou=Alumni Association,ou=People,dc=example,dc=com"
adding new entry "ou=Information Technology Division,ou=People,dc=example,dc=com"
adding new entry "cn=All Staff,ou=Groups,dc=example,dc=com"
adding new entry "cn=Alumni Assoc Staff,ou=Groups,dc=example,dc=com"
adding new entry "cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc
=example,dc=com"
adding new entry "cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=e
xample,dc=com"
adding new entry "cn=Dorothy Stevens,ou=Alumni Association,ou=People,dc=example,dc=
com"
adding new entry "cn=ITD Staff,ou=Groups,dc=example,dc=com"
adding new entry "cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=
com"
adding new entry "cn=James A Jones 2,ou=Information Technology Division,ou=People,d
c=example,dc=com"
adding new entry "cn=Jane Doe,ou=Alumni Association,ou=People,dc=example,dc=com"
adding new entry "cn=Jennifer Smith,ou=Alumni Association,ou=People,dc=example,dc=c
om"
adding new entry "cn=John Doe,ou=Information Technology Division,ou=People,dc=examp
le,dc=com"
adding new entry "cn=Manager,dc=example,dc=com"
adding new entry "cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com"
adding new entry "cn=Ursula Hampster,ou=Alumni Association,ou=People,dc=example,dc=
com"
ldap_initialize( ldap://localhost:9011 )
add objectClass:
OpenLDAPperson
add cn:
Added User
add sn:
User
add uid:
auser
add seealso:
cn=All Staff,ou=Groups,o=Beispiel,c=DE
add homephone:
+49 1234567890
add drink:
Beer
add mail:
auser@mail.alumni.example.com
add telephonenumber:
+49 1234-567-890
add description:
Just added in o=Beispiel,c=DE naming context
adding new entry "cn=Added User,ou=Alumni Association,ou=People,o=Beispiel,c=DE"
modify complete
add seeAlso:
cn=Ursula Hampster,ou=Alumni Association,ou=People,o=Beispiel,c=DE
add description:
Just added self to seeAlso in o=Beispiel,c=DE virtual naming context
modifying entry "cn=Ursula Hampster,ou=Alumni Association,ou=People,o=Beispiel,c=DE
"
modify complete
deleting entry "cn=Mark Elliot,ou=Alumni Association,ou=People,o=Beispiel,c=DE"
delete complete
modifying rdn of entry "cn=John Doe,ou=Information Technology Division,ou=People,o=
Beispiel,c=DE"
new RDN: "cn=John P. Doe" (do not keep existing values)
modrdn completed
modifying rdn of entry "cn=Jane Doe,ou=Alumni Association,ou=People,o=Beispiel,c=DE
"
new RDN: "cn=Jane Q. Doe" (do not keep existing values)
modrdn completed
add objectclass:
referral
extensibleObject
add ou:
Referrals
add ref:
ldap://localhost.localdomain/ou=Referrals,o=Beispiel,c=DE
add description:
Just added as ldap://localhost.localdomain/ou=Referrals,o=Beispiel,c=DE
adding new entry "ou=Referrals,o=Beispiel,c=DE"
modify complete
replace ref:
ldap://ldap.example.com/ou=Referrals,o=Beispiel,c=DE
add description:
...and modified as ldap://ldap.example.com/ou=Referrals,o=Beispiel,c=DE
modifying entry "ou=Referrals,o=Beispiel,c=DE"
modify complete
>Can you start
>slapd manually and search for the entry "cn=Referrals,$SUFFIX", with
>SUFFIX= any of the namingContexts? I don't even need to say that
>everything works fine here :)
Okay...
% ./run -k test030
...
% ldapsearch -LLL -x -h localhost:9011 -b "" -s base namingContexts
dn:
namingContexts: dc=example,dc=com
namingContexts: o=Example,c=US
namingContexts: o=Esempio,c=IT
namingContexts: o=Beispiel,c=DE
% ldapsearch -LLL -x -h localhost:9011 -b "cn=Referrals,dc=example,dc=com" -s base
No such object (32)
Matched DN: dc=example,dc=com
% ldapsearch -LLL -x -h localhost:9011 -b "cn=Referrals,o=example,c=US" -s base
No such object (32)
Matched DN: o=Example,c=US
Likewise for remaining contexts.
Adding -M (ManageDSAit) does not change the behavior.
Adding -MM (Critical ManageDSAit) produces:
% ldapsearch -LLL -x -h localhost:9011 -b "cn=Referrals,o=example,c=US" -s base -MM
Critical extension is unavailable (12)
Additional information: control unavailable in context
(excepting for dc=example,dc=com, here noSuchObject).
>p.
>
>> Full_Name: Kurt Zeilenga
>> Version: HEAD(today)
>> OS: FreeBSD4
>> URL: ftp://ftp.openldap.org/incoming/
>> Submission from: (NULL) (198.144.202.244)
>> Submitted by: kurt
>>
>>
>> test030 is failing:
>>>>>>> Starting test030-relay ...
>> running defines.sh
>> Starting slapd on TCP/IP port 9011...
>> Using ldapsearch to check that slapd is running...
>> Waiting 5 seconds for slapd to start...
>> Using ldapadd to populate the database...
>> searching base="dc=example,dc=com"...
>> searching base="o=Example,c=US"...
>> searching base="o=Esempio,c=IT"...
>> searching base="o=Beispiel,c=DE"...
>> modifying database "o=Beispiel,c=DE"...
>> searching base="o=Beispiel,c=DE"...
>> searching base="o=Esempio,c=IT"...
>> searching filter="(objectClass=referral)"
>> attrs="'*' ref"
>> base="dc=example,dc=com"...
>> base="o=Example,c=US"...
>> base="o=Esempio,c=IT"...
>> searching filter="(seeAlso=cn=all staff,ou=Groups,o=Example,c=US)"
>> attrs="seeAlso"
>> base="o=Example,c=US"...
>> Filtering ldapsearch results...
>> Filtering original ldif used to create database...
>> Comparing filter output...
>> comparison failed - relay search/modification didn't succeed
>>>>>>> ./scripts/test030-relay failed (exit 1)
>> *** Error code 1
>>
>> diff -uib ldif.flt ldapsearch.flt
>> --- ldif.flt Wed Dec 29 12:54:16 2004
>> +++ ldapsearch.flt Wed Dec 29 12:54:16 2004
>> @@ -2458,35 +2458,8 @@
>> description: Just added in o=Beispiel,c=DE naming context
>>
>>
>> -dn: ou=Referrals,dc=example,dc=com
>> -objectClass: referral
>> -objectClass: extensibleObject
>> -ou: Referrals
>> -description: Just added as
>> ldap://localhost.localdomain/ou=Referrals,o=Beispie
>> - l,c=DE
>> -description: ...and modified as
>> ldap://ldap.example.com/ou=Referrals,o=Beispie
>> - l,c=DE
>> -ref: ldap://ldap.example.com/ou=Referrals,o=Beispiel,c=DE
>>
>> -dn: ou=Referrals,o=Example,c=US
>> -objectClass: referral
>> -objectClass: extensibleObject
>> -ou: Referrals
>> -description: Just added as
>> ldap://localhost.localdomain/ou=Referrals,o=Beispie
>> - l,c=DE
>> -description: ...and modified as
>> ldap://ldap.example.com/ou=Referrals,o=Beispie
>> - l,c=DE
>> -ref: ldap://ldap.example.com:389/ou=Referrals,o=Beispiel,c=DE??base
>>
>> -dn: ou=Referrals,o=Esempio,c=IT
>> -objectClass: referral
>> -objectClass: extensibleObject
>> -ou: Referrals
>> -description: Just added as
>> ldap://localhost.localdomain/ou=Referrals,o=Beispie
>> - l,c=DE
>> -description: ...and modified as
>> ldap://ldap.example.com/ou=Referrals,o=Beispie
>> - l,c=DE
>> -ref: ldap://ldap.example.com:389/ou=Referrals,o=Beispiel,c=DE??base
>>
>> dn: cn=Barbara Jensen,ou=Information Technology
>> Division,ou=People,o=Example,c
>> =US
>>
>>
>>
>>
>
>
>--
>Pierangelo Masarati
>mailto:pierangelo.masarati@sys-net.it
>
>
> SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497