From 6b894130b81a6cfa60422dd83eebbea7cc3c124b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 11 Jan 2005 00:36:06 +0000 Subject: [PATCH] ready for chaining writes --- tests/data/chain.out | 470 +++-------------------------------- tests/data/slapd-chain1.conf | 4 +- tests/data/slapd-chain2.conf | 2 + tests/data/test-chain2.ldif | 1 - tests/scripts/test032-chain | 52 ++-- 5 files changed, 57 insertions(+), 472 deletions(-) diff --git a/tests/data/chain.out b/tests/data/chain.out index 810f1c8030..3d53473989 100644 --- a/tests/data/chain.out +++ b/tests/data/chain.out @@ -1,30 +1,3 @@ -dn: dc=example,dc=com -objectClass: top -objectClass: organization -objectClass: domainRelatedObject -objectClass: dcObject -dc: example -l: Anytown, Michigan -st: Michigan -o: Example, Inc. -o: EX -o: Ex. -description: The Example, Inc. at Anytown -postalAddress: Example, Inc. $ 535 W. William St. $ Anytown, MI 48109 $ US -telephoneNumber: +1 313 555 1817 -associatedDomain: example.com - -dn: ou=People,dc=example,dc=com -objectClass: organizationalUnit -objectClass: extensibleObject -ou: People -uidNumber: 0 -gidNumber: 0 - -dn: ou=Groups,dc=example,dc=com -objectClass: organizationalUnit -ou: Groups - dn: cn=All Staff,ou=Groups,dc=example,dc=com member: cn=Manager,dc=example,dc=com member: cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=exam @@ -59,166 +32,10 @@ description: All Alumni Assoc Staff cn: Alumni Assoc Staff objectClass: groupOfNames -dn: cn=ITD Staff,ou=Groups,dc=example,dc=com -owner: cn=Manager,dc=example,dc=com -description: All ITD Staff -cn: ITD Staff -objectClass: groupOfUniqueNames -uniqueMember: cn=Manager,dc=example,dc=com -uniqueMember: cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc= - example,dc=com -uniqueMember: cn=James A Jones 2,ou=Information Technology Division,ou=People, - dc=example,dc=com -uniqueMember: cn=John Doe,ou=Information Technology Division,ou=People,dc=exam - ple,dc=com - dn: ou=Alumni Association,ou=People,dc=example,dc=com objectClass: organizationalUnit ou: Alumni Association -dn: ou=Information Technology Division,ou=People,dc=example,dc=com -objectClass: organizationalUnit -ou: Information Technology Division -description:: aMODwoPDgsKCw4PCgsOCwotFVlZQw4PCg8OCwoPDg8KCw4LCv0zDg8KDw4LCgsOD - woLDgsKKT8ODwoPDgsKDw4PCgsOCwqs6w4PCg8OCwoLDg8KCw4LCjUQkw4PCg8OCwoLDg8KCw4LCi - 01QUcODwoPDgsKDw4PCgsOCwr/Dg8KDw4LCg8ODwoLDgsKMw4PCg8OCwoLDg8KCw4LCik/Dg8KDw4 - LCgsODwoLDgsKLRCQoZitEJMODwoPDgsKCw4PCgsOCwrfDg8KDw4LCg8ODwoLDgsKIw4PCg8OCwoP - Dg8KCw4LCgcODwoPDgsKDw4PCgsOCwqHDg8KDw4LCgsODwoLDgsKLRCQkZitEJMODwoPDgsKCw4PC - gsOCwrfDg8KDw4LCg8ODwoLDgsKQw4PCg8OCwoPDg8KCw4LCisODwoPDgsKCw4PCgsOCwotFUVZqU - MODwoPDgsKDw4PCgsOCwr/Dg8KDw4LCg8ODwoLDgsKAw4PCg8OCwoLDg8KCw4LCik85dCTDg8KDw4 - LCgsODwoLDgsKFQ8ODwoPDgsKDw4PCgsOCwr/Dg8KDw4LCg8ODwoLDgsK/w4PCg8OCwoPDg8KCw4L - Cvzl0JMODwoPDgsKCw4PCgsOCwoXDg8KDw4LCg8ODwoLDgsK/w4PCg8OCwoPDg8KCw4LCv8ODwoPD - gsKDw4PCgsOCwr/Dg8KDw4LCgsODwoLDgsKLRCTDg8KDw4LCgsODwoLDgsKDw4PCg8OCwoLDg8KCw - 4LCuMODwoPDgsKDw4PCgsOCwoR0Q8ODwoPDgsKCw4PCgsOCwoM9w4PCg8OCwoPDg8KCw4LChMODwo - PDgsKDw4PCgsOCwoFOdTrDg8KDw4LCg8ODwoLDgsKHw4PCg8OCwoPDg8KCw4LChMODwoPDgsKDw4P - CgsOCwoFOw4PCg8OCwoPDg8KCw4LCqMODwoPDg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sKNw4PCg8OCwoPDg8KCw4LCqMODwoPDgsKDw4PCgsOCwo5Lw4 - PCg8OCwoLDg8KCw4LCi0AgUMODwoPDgsKDw4PCgsOCwr/Dg8KDw4LCgsODwoLDgsKsw4PCg8OCwoL - Dg8KCw4LCik/Dg8KDw4LCgsODwoLDgsKFw4PCg8OCwoPDg8KCw4LCgHUow4PCg8OCwoLDg8KCw4LC - i8ODwoPDgsKDw4PCgsOCwo3Dg8KDw4LCgsODwoLDgsKJw4PCg8OCwoLDg8KCw4LCtTTDg8KDw4LCg - 8ODwoLDgsKow4PCg8OCwoPDg8KCw4LCl8ODwoPDgsKDw4PCgsOCwrtWw4PCg8OCwoLDg8KCw4LCi8 - ODwoPDgsKDw4PCgsOCwo3Dg8KDw4LCg8ODwoLDgsKow4PCg8OCwoLDg8KCw4LCnw== - dn: cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example, dc=com objectClass: OpenLDAPperson @@ -277,137 +94,6 @@ telephoneNumber: +1 313 555 3664 mail: dots@mail.alumni.example.com homePhone: +1 313 555 0454 -dn: cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com -objectClass: OpenLDAPperson -cn: James A Jones 1 -cn: James Jones -cn: Jim Jones -sn: Jones -uid: jaj -postalAddress: Alumni Association $ 111 Maple St $ Anytown, MI 48109 -seeAlso: cn=All Staff,ou=Groups,dc=example,dc=com -userPassword:: amFq -homePostalAddress: 3882 Beverly Rd. $ Anytown, MI 48105 -homePhone: +1 313 555 4772 -description: Outstanding -title: Mad Cow Researcher, UM Alumni Association -pager: +1 313 555 3923 -mail: jaj@mail.alumni.example.com -facsimileTelephoneNumber: +1 313 555 4332 -telephoneNumber: +1 313 555 0895 - -dn: cn=James A Jones 2,ou=Information Technology Division,ou=People,dc=example - ,dc=com -objectClass: OpenLDAPperson -cn: James A Jones 2 -cn: James Jones -cn: Jim Jones -sn: Doe -uid: jjones -seeAlso: cn=All Staff,ou=Groups,dc=example,dc=com -homePostalAddress: 933 Brooks $ Anytown, MI 48104 -homePhone: +1 313 555 8838 -title: Senior Manager, Information Technology Division -description: Not around very much -mail: jjones@mailgw.example.com -postalAddress: Info Tech Division $ 535 W William $ Anytown, MI 48103 -pager: +1 313 555 2833 -facsimileTelephoneNumber: +1 313 555 8688 -telephoneNumber: +1 313 555 7334 - -dn: cn=Jane Doe,ou=Alumni Association,ou=People,dc=example,dc=com -objectClass: OpenLDAPperson -cn: Jane Doe -cn: Jane Alverson -sn: Doe -uid: jdoe -title: Programmer Analyst, UM Alumni Association -postalAddress: Alumni Association $ 111 Maple St $ Anytown, MI 48109 -seeAlso: cn=All Staff,ou=Groups,dc=example,dc=com -homePostalAddress: 123 Anystreet $ Anytown, MI 48104 -drink: diet coke -description: Enthusiastic -mail: jdoe@woof.net -homePhone: +1 313 555 5445 -pager: +1 313 555 1220 -facsimileTelephoneNumber: +1 313 555 2311 -telephoneNumber: +1 313 555 4774 - -dn: cn=Jennifer Smith,ou=Alumni Association,ou=People,dc=example,dc=com -objectClass: OpenLDAPperson -cn: Jennifer Smith -cn: Jen Smith -sn: Smith -uid: jen -postalAddress: Alumni Association $ 111 Maple St $ Anytown, MI 48109 -seeAlso: cn=All Staff,ou=Groups,dc=example,dc=com -drink: Sam Adams -homePostalAddress: 1000 Maple #44 $ Anytown, MI 48103 -title: Telemarketer, UM Alumni Association -mail: jen@mail.alumni.example.com -homePhone: +1 313 555 2333 -pager: +1 313 555 6442 -facsimileTelephoneNumber: +1 313 555 2756 -telephoneNumber: +1 313 555 8232 - -dn: cn=John Doe,ou=Information Technology Division,ou=People,dc=example,dc=com -objectClass: OpenLDAPperson -cn: John Doe -cn: Jonathon Doe -sn: Doe -uid: johnd -postalAddress: ITD $ 535 W. William $ Anytown, MI 48109 -seeAlso: cn=All Staff,ou=Groups,dc=example,dc=com -homePostalAddress: 912 East Bllvd $ Anytown, MI 48104 -title: System Administrator, Information Technology Division -description: overworked! -mail: johnd@mailgw.example.com -homePhone: +1 313 555 3774 -pager: +1 313 555 6573 -facsimileTelephoneNumber: +1 313 555 4544 -telephoneNumber: +1 313 555 9394 - -dn: cn=Manager,dc=example,dc=com -objectClass: person -cn: Manager -cn: Directory Manager -cn: Dir Man -sn: Manager -description: Manager of the directory -userPassword:: c2VjcmV0 - -dn: cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com -objectClass: OpenLDAPperson -cn: Mark Elliot -cn: Mark A Elliot -sn: Elliot -uid: melliot -postalAddress: Alumni Association $ 111 Maple St $ Anytown, MI 48109 -seeAlso: cn=All Staff,ou=Groups,dc=example,dc=com -homePostalAddress: 199 Outer Drive $ Ypsilanti, MI 48198 -homePhone: +1 313 555 0388 -drink: Gasoline -title: Director, UM Alumni Association -mail: melliot@mail.alumni.example.com -pager: +1 313 555 7671 -facsimileTelephoneNumber: +1 313 555 7762 -telephoneNumber: +1 313 555 4177 - -dn: cn=Ursula Hampster,ou=Alumni Association,ou=People,dc=example,dc=com -objectClass: OpenLDAPperson -cn: Ursula Hampster -sn: Hampster -uid: uham -title: Secretary, UM Alumni Association -postalAddress: Alumni Association $ 111 Maple St $ Anytown, MI 48109 -seeAlso: cn=All Staff,ou=Groups,dc=example,dc=com -homePostalAddress: 123 Anystreet $ Anytown, MI 48104 -mail: uham@mail.alumni.example.com -homePhone: +1 313 555 8421 -pager: +1 313 555 2844 -facsimileTelephoneNumber: +1 313 555 9700 -telephoneNumber: +1 313 555 5331 - dn: dc=example,dc=com objectClass: top objectClass: organization @@ -424,16 +110,9 @@ postalAddress: Example, Inc. $ 535 W. William St. $ Anytown, MI 48109 $ US telephoneNumber: +1 313 555 1817 associatedDomain: example.com -dn: ou=People,dc=example,dc=com -objectClass: organizationalUnit -objectClass: extensibleObject -ou: People -uidNumber: 0 -gidNumber: 0 - -dn: ou=Alumni Association,ou=People,dc=example,dc=com +dn: ou=Groups,dc=example,dc=com objectClass: organizationalUnit -ou: Alumni Association +ou: Groups dn: ou=Information Technology Division,ou=People,dc=example,dc=com objectClass: organizationalUnit @@ -578,63 +257,18 @@ description:: UF7Dg8KDw4LCg8ODwoLDgsKCw4PCg8OCwoPDg8KCw4LCjMODwoPDgsKDw4PCgsOC 8ODwoLDgsKow4PCg8OCwoPDg8KCw4LCl8ODwoPDgsKDw4PCgsOCwrtWw4PCg8OCwoLDg8KCw4LCi8 ODwoPDgsKDw4PCgsOCwo3Dg8KDw4LCg8ODwoLDgsKow4PCg8OCwoLDg8KCw4LCnw== -dn: cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example, - dc=com -objectClass: OpenLDAPperson -cn: Barbara Jensen -cn: Babs Jensen -sn:: IEplbnNlbiA= -uid: bjensen -title: Mythical Manager, Research Systems -postalAddress: ITD Prod Dev & Deployment $ 535 W. William St. Room 4212 $ Anyt - own, MI 48103-4943 -seeAlso: cn=All Staff,ou=Groups,dc=example,dc=com -userPassword:: YmplbnNlbg== -mail: bjensen@mailgw.example.com -homePostalAddress: 123 Wesley $ Anytown, MI 48103 -description: Mythical manager of the rsdd unix project -drink: water -homePhone: +1 313 555 2333 -pager: +1 313 555 3233 -facsimileTelephoneNumber: +1 313 555 2274 -telephoneNumber: +1 313 555 9022 - -dn: cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc - =com -objectClass: OpenLDAPperson -cn: Bjorn Jensen -cn: Biiff Jensen -sn: Jensen -uid: bjorn -seeAlso: cn=All Staff,ou=Groups,dc=example,dc=com -userPassword:: Ympvcm4= -homePostalAddress: 19923 Seven Mile Rd. $ South Lyon, MI 49999 -drink: Iced Tea -description: Hiker, biker -title: Director, Embedded Systems -postalAddress: Info Tech Division $ 535 W. William St. $ Anytown, MI 48103 -mail: bjorn@mailgw.example.com -homePhone: +1 313 555 5444 -pager: +1 313 555 4474 -facsimileTelephoneNumber: +1 313 555 2177 -telephoneNumber: +1 313 555 0355 - -dn: cn=Dorothy Stevens,ou=Alumni Association,ou=People,dc=example,dc=com -objectClass: OpenLDAPperson -cn: Dorothy Stevens -cn: Dot Stevens -sn: Stevens -uid: dots -title: Secretary, UM Alumni Association -postalAddress: Alumni Association $ 111 Maple St $ Anytown, MI 48109 -seeAlso: cn=All Staff,ou=Groups,dc=example,dc=com -drink: Lemonade -homePostalAddress: 377 White St. Apt. 3 $ Anytown, MI 48104 -description: Very tall -facsimileTelephoneNumber: +1 313 555 3223 -telephoneNumber: +1 313 555 3664 -mail: dots@mail.alumni.example.com -homePhone: +1 313 555 0454 +dn: cn=ITD Staff,ou=Groups,dc=example,dc=com +owner: cn=Manager,dc=example,dc=com +description: All ITD Staff +cn: ITD Staff +objectClass: groupOfUniqueNames +uniqueMember: cn=Manager,dc=example,dc=com +uniqueMember: cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc= + example,dc=com +uniqueMember: cn=James A Jones 2,ou=Information Technology Division,ou=People, + dc=example,dc=com +uniqueMember: cn=John Doe,ou=Information Technology Division,ou=People,dc=exam + ple,dc=com dn: cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com objectClass: OpenLDAPperson @@ -726,6 +360,15 @@ pager: +1 313 555 6573 facsimileTelephoneNumber: +1 313 555 4544 telephoneNumber: +1 313 555 9394 +dn: cn=Manager,dc=example,dc=com +objectClass: person +cn: Manager +cn: Directory Manager +cn: Dir Man +sn: Manager +description: Manager of the directory +userPassword:: c2VjcmV0 + dn: cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com objectClass: OpenLDAPperson cn: Mark Elliot @@ -743,6 +386,13 @@ pager: +1 313 555 7671 facsimileTelephoneNumber: +1 313 555 7762 telephoneNumber: +1 313 555 4177 +dn: ou=People,dc=example,dc=com +objectClass: organizationalUnit +objectClass: extensibleObject +ou: People +uidNumber: 0 +gidNumber: 0 + dn: cn=Ursula Hampster,ou=Alumni Association,ou=People,dc=example,dc=com objectClass: OpenLDAPperson cn: Ursula Hampster @@ -758,63 +408,3 @@ pager: +1 313 555 2844 facsimileTelephoneNumber: +1 313 555 9700 telephoneNumber: +1 313 555 5331 -dn: ou=Groups,dc=example,dc=com -objectClass: organizationalUnit -ou: Groups - -dn: cn=All Staff,ou=Groups,dc=example,dc=com -member: cn=Manager,dc=example,dc=com -member: cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=exam - ple,dc=com -member: cn=Jane Doe,ou=Alumni Association,ou=People,dc=example,dc=com -member: cn=John Doe,ou=Information Technology Division,ou=People,dc=example,dc - =com -member: cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com -member: cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com -member: cn=James A Jones 2,ou=Information Technology Division,ou=People,dc=exa - mple,dc=com -member: cn=Jennifer Smith,ou=Alumni Association,ou=People,dc=example,dc=com -member: cn=Dorothy Stevens,ou=Alumni Association,ou=People,dc=example,dc=com -member: cn=Ursula Hampster,ou=Alumni Association,ou=People,dc=example,dc=com -member: cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=exampl - e,dc=com -owner: cn=Manager,dc=example,dc=com -cn: All Staff -description: Everyone in the sample data -objectClass: groupOfNames - -dn: cn=Alumni Assoc Staff,ou=Groups,dc=example,dc=com -member: cn=Manager,dc=example,dc=com -member: cn=Dorothy Stevens,ou=Alumni Association,ou=People,dc=example,dc=com -member: cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com -member: cn=Jane Doe,ou=Alumni Association,ou=People,dc=example,dc=com -member: cn=Jennifer Smith,ou=Alumni Association,ou=People,dc=example,dc=com -member: cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com -member: cn=Ursula Hampster,ou=Alumni Association,ou=People,dc=example,dc=com -owner: cn=Manager,dc=example,dc=com -description: All Alumni Assoc Staff -cn: Alumni Assoc Staff -objectClass: groupOfNames - -dn: cn=ITD Staff,ou=Groups,dc=example,dc=com -owner: cn=Manager,dc=example,dc=com -description: All ITD Staff -cn: ITD Staff -objectClass: groupOfUniqueNames -uniqueMember: cn=Manager,dc=example,dc=com -uniqueMember: cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc= - example,dc=com -uniqueMember: cn=James A Jones 2,ou=Information Technology Division,ou=People, - dc=example,dc=com -uniqueMember: cn=John Doe,ou=Information Technology Division,ou=People,dc=exam - ple,dc=com - -dn: cn=Manager,dc=example,dc=com -objectClass: person -cn: Manager -cn: Directory Manager -cn: Dir Man -sn: Manager -description: Manager of the directory -userPassword:: c2VjcmV0 - diff --git a/tests/data/slapd-chain1.conf b/tests/data/slapd-chain1.conf index e5140fa12e..786a87c91f 100644 --- a/tests/data/slapd-chain1.conf +++ b/tests/data/slapd-chain1.conf @@ -32,7 +32,9 @@ argsfile ./testrun/slapd.1.args # # uses the chain overlay as global; # no chain-URI is configured, so the URI is parsed out of the referral -overlay chain +overlay chain +chain-acl-authcDN "cn=Manager,dc=example,dc=com" +chain-acl-passwd secret ####################################################################### # database definitions diff --git a/tests/data/slapd-chain2.conf b/tests/data/slapd-chain2.conf index 99e67fec89..79d3411180 100644 --- a/tests/data/slapd-chain2.conf +++ b/tests/data/slapd-chain2.conf @@ -52,5 +52,7 @@ index cn,sn,uid pres,eq,sub # the chain-URI is configured, so only that URI is chained overlay chain chain-uri @URI1@ +chain-acl-authcDN "cn=Manager,dc=example,dc=com" +chain-acl-passwd secret #monitor#database monitor diff --git a/tests/data/test-chain2.ldif b/tests/data/test-chain2.ldif index b847bfb3a0..fe0cd3e920 100644 --- a/tests/data/test-chain2.ldif +++ b/tests/data/test-chain2.ldif @@ -81,4 +81,3 @@ cn: Dir Man sn: Manager description: Manager of the directory userpassword:: c2VjcmV0 - diff --git a/tests/scripts/test032-chain b/tests/scripts/test032-chain index 244d2ae63a..985ae0c1e1 100755 --- a/tests/scripts/test032-chain +++ b/tests/scripts/test032-chain @@ -87,40 +87,32 @@ for i in 0 1 2 3 4 5; do done BASE="dc=example,dc=com" -echo "Testing ldapsearch as anonymous for \"$BASE\" on first slapd..." -$LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASE" \ - > $SEARCHOUT 2>&1 -RC=$? -if test $RC != 0 ; then - echo "ldapsearch failed ($RC)!" - test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC -fi +for P in $PORT1 $PORT2 ; do + echo "Testing ldapsearch as anonymous for \"$BASE\" on port $P..." + $LDAPSEARCH -h $LOCALHOST -p $P -b "$BASE" -S "" \ + > $SEARCHOUT 2>&1 -echo "Testing ldapsearch as anonymous for \"$BASE\" on second slapd..." -$LDAPSEARCH -h $LOCALHOST -p $PORT2 -b "$BASE" \ - >> $SEARCHOUT 2>&1 - -RC=$? -if test $RC != 0 ; then - echo "ldapsearch failed ($RC)!" - test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC -fi + RC=$? + if test $RC != 0 ; then + echo "ldapsearch failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC + fi -echo "Filtering ldapsearch results..." -. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT -echo "Filtering original ldif used to create database..." -. $LDIFFILTER < $CHAINOUT > $LDIFFLT -echo "Comparing filter output..." -$CMP $SEARCHFLT $LDIFFLT > $CMPOUT + echo "Filtering ldapsearch results..." + . $LDIFFILTER < $SEARCHOUT > $SEARCHFLT + echo "Filtering original ldif used to create database..." + . $LDIFFILTER < $CHAINOUT > $LDIFFLT + echo "Comparing filter output..." + $CMP $SEARCHFLT $LDIFFLT > $CMPOUT -if test $? != 0 ; then - echo "comparison failed - chained search as anonymous didn't succeed" - test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit 1 -fi + if test $? != 0 ; then + echo "comparison failed - chained search as anonymous didn't succeed" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit 1 + fi +done test $KILLSERVERS != no && kill -HUP $KILLPIDS -- 2.39.5