------art_76744_19314511.1161219998264
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

I'm not good in LDAP and START_TLS but I could write START_TLS support
code for Net::LDAP.
I refered Net::LDAP module in Perl and OpenLDAP source and tested with
OpenLDAP server (slapd).

Thanks,
--
kou

------art_76744_19314511.1161219998264
Content-Type: text/x-patch; name=net-ldap-start_tls.diff; 
	charset سContent-Transfer-Encoding: base64
X-Attachment-Id: f_etggdcnm
Content-Disposition: attachment; filename="net-ldap-start_tls.diff"

ZGlmZiAtcnUgcnVieS1uZXQtbGRhcC0wLjAuNC9saWIvbmV0L2Jlci5yYiBuZXQtbGRhcC9saWIv
bmV0L2Jlci5yYgotLS0gcnVieS1uZXQtbGRhcC0wLjAuNC9saWIvbmV0L2Jlci5yYgkyMDA2LTA3
LTI3IDE0OjA3OjQ1LjAwMDAwMDAwMCArMDkwMAorKysgbmV0LWxkYXAvbGliL25ldC9iZXIucmIJ
MjAwNi0xMC0xMiAxMjozODoyOC4wMDAwMDAwMDAgKzA5MDAKQEAgLTU3LDYgKzU3LDExIEBACiAg
ICAgICAgICAgMTYgPT4gOmFycmF5LAogICAgICAgICAgIDE3ID0+IDphcnJheQogICAgICAgICB9
CisgICAgICB9LAorICAgICAgOmNvbnRleHRfc3BlY2lmaWMgPT4geworICAgICAgICA6cHJpbWl0
aXZlID0+IHsKKyAgICAgICAgICAxMCA9PiA6aW50ZWdlciwKKyAgICAgICAgfSwKICAgICAgIH0K
ICAgICB9CiAKZGlmZiAtcnUgcnVieS1uZXQtbGRhcC0wLjAuNC9saWIvbmV0L2xkYXAvcGR1LnJi
IG5ldC1sZGFwL2xpYi9uZXQvbGRhcC9wZHUucmIKLS0tIHJ1YnktbmV0LWxkYXAtMC4wLjQvbGli
L25ldC9sZGFwL3BkdS5yYgkyMDA2LTA3LTI3IDE0OjA3OjQ1LjAwMDAwMDAwMCArMDkwMAorKysg
bmV0LWxkYXAvbGliL25ldC9sZ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HMgcmVzdWx0IikKKyAgICAgICAg
aWYgcGR1LnJlc3VsdF9jb2RlLnplcm8/CisgICAgICAgICAgY3R4ID0gT3BlblNTTDo6U1NMOjpT
U0xDb250ZXh0Lm5ldworICAgICAgICAgIEBjb25uID0gT3BlblNTTDo6U1NMOjpTU0xTb2NrZXQu
bmV3KEBjb25uLCBjdHgpCisgICAgICAgICAgQGNvbm4uY29ubmVjdAorICAgICAgICAgIEBjb25u
LnN5bmNfY2xvc2UgPSB0cnVlCisgICAgICAgIGVsc2UKKyAgICAgICAgICByYWlzZSBMZGFwRXJy
b3IubmV3KCJmYWlsZWQgc3RhcnRfdGxzOiAje3BkdS5yZXN1bHRfY29kZX0iKQorICAgICAgICBl
bmQKICAgICAgIGVsc2UKICAgICAgICAgcmFpc2UgTGRhcEVycm9yLm5ldyggInVuc3VwcG9ydGVk
IGVuY3J5cHRpb24gbWV0aG9kICN7YXJnc1s6bWV0aG9kXX0iICkKICAgICAgIGVuZAo------art_76744_19314511.1161219998264--