No subject


Thu May 22 12:28:38 UTC 2008


 * Add -B (rebind type) option to change referral chasing rebinds:
   + anon = old behavior (anonymous rebind)
   + cred = use credentials for rebind

Jan-Marek

P.S. I also have ports of this patch for 2.2 and 2.4, if needed
---1463811830-477975798-1196333019=:11691
Content-Type: TEXT/plain; charset=US-ASCII; name="chase-referrals-with-creds.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.58.0711291143390.11691 at stud1.fbihome.de>
Content-Description: 
Content-Disposition: attachment; filename="chase-referrals-with-creds.diff"

ZGlmZiAtdXJOIG9wZW5sZGFwLTIuMy4zMC1kZWJpYW4vY2xpZW50cy90b29s
cy9jb21tb24uYyBvcGVubGRhcC0yLjMuMzAvY2xpZW50cy90b29scy9jb21t
b24uYw0KLS0tIG9wZW5sZGFwLTIuMy4zMC1kZWJpYW4vY2xpZW50cy90b29s
cy9jb21tb24uYwkyMDA2LTAxLTAzIDIzOjE2OjAxLjAwMDAwMDAwMCArMDEw
MA0KKysrIG9wZW5sZGFwLTIuMy4zMC9jbGllbnRzL3Rvb2xzL2NvbW1vbi5j
CTIwMDctMTEtMjkgMTE6Mjc6NTMuMDAwMDAwMDAwICswMTAwDQpAQCAtODUs
NiArODUsNyBAQA0KIHN0cnVjdCBiZXJ2YWwgcGFzc3dkID0geyAwLCBOVUxM
IH07DQogY2hhciAqcHdfZmlsZSA9IE5VTEw7DQogaW50ICAgcmVmZXJyYWxz
ID0gMDsNCitpbnQgICByZWZlcnJhbF9yZWJpbmQgPSAwOw0KIGludCAgIHBy
b3RvY29sID0gLTE7DQogaW50ICAgdmVyYm9zZSA9IDA7DQogaW50ICAgdmVy
c2lvbiA9IDA7DQpAQCAtMTA3LDYgKzEwOCw5IEBADQogLyogU2V0IGluIG1h
aW4oKSAqLw0KIGNoYXIgKnByb2cgPSBOVUxMOw0KIA0KK3N0YXRpYyBpbnQg
dG9vbF9kZWZhdWx0X3JlYmluZCggTERBUCAqbGQsIExEQVBfQ09OU1QgY2hh
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YW5k
bGVfcHJpdmF0ZV9vcHRpb24oIGludCBpICkNCmRpZmYgLXVyTiBvcGVubGRh
cC0yLjMuMzAtZGViaWFuL2NsaWVudHMvdG9vbHMvbGRhcHdob2FtaS5jIG9w
ZW5sZGFwLTIuMy4zMC9jbGllbnRzL3Rvb2xzL2xkYXB3aG9hbWkuYw0KLS0t
IG9wZW5sZGFwLTIuMy4zMC1kZWJpYW4vY2xpZW50cy90b29scy9sZGFwd2hv
YW1pLmMJMjAwNi0wNC0wNCAwNToyMzoyOC4wMDAwMDAwMDAgKzAyMDANCisr
KyBvcGVubGRhcC0yLjMuMzAvY2xpZW50cy90b29scy9sZGFwd2hvYW1pLmMJ
MjAwNy0xMS0yOSAxMToyNzo1My4wMDAwMDAwMDAgKzAxMDANCkBAIC02Miw3
ICs2Miw3IEBADQogDQogDQogY29uc3QgY2hhciBvcHRpb25zW10gPSAiIg0K
LQkiZDpEOmU6aDpIOkluTzpwOlFSOlU6dlZ3Old4WDp5Olk6WiI7DQorCSJC
OkNkOkQ6ZTpoOkg6SW5POnA6UVI6VTp2Vnc6V3hYOnk6WTpaIjsNCiANCiBp
bnQNCiBoYW5kbGVfcHJpdmF0ZV9vcHRpb24oIGludCBpICkNCg==

---1463811830-477975798-1196333019=:11691--





More information about the Pkg-openldap-devel mailing list