[prev in list] [next in list] [prev in thread] [next in thread]
List: perl-ldap-dev
Subject: LDAP bind failure 82
From: Glenn Tanner <glennt () ami ! com>
Date: 2014-03-17 20:34:32
Message-ID: 1BE885DA0334AE4F8D933CBF6120DB5DA2C3A294 () atlms1 ! us ! megatrends ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi all,
So I am using this to authenticate against an AD environment; however \
when the libraries "Socket6" and "IO-Socket_INET6" are installed I get a problem when \
the bind command executes in our IPv4 only environment. I poked though the source a \
little and even tried setting 'inet6=>0' but to no avail. Below is a simple version \
of what I'm doing; this works when the two named libs are not installed. I'm running \
ActiveState 5v16s3 (v5.16.3) for windows x64-multi-thread. Happy to test any patches.
Use Net::LDAP;
my $user = 'megatrends.com\user';
my $password = "";
my $ldap = Net::LDAP->new("us.megatrends.com", port=>386) or print "$@";
my $mesg = $ldap->bind($user, password=>$password);
if ($mesg->code) {
print "Bind code: ". $mesg->code ." error: ".$mesg->error_name." \
".$mesg->error_text."\n"; }
Thank you,
Glenn Tanner
StorTrends Junior Test Engineer
x7064
404-368-6079
StorTrends StorAID
Toll Free phone: 1-800-892-6625
Local/International: 770-246-8761
Email: StorTrends-Support@ami.com<mailto:StorTrends-Support@ami.com>
Web: http://www.stortrends.com/
American Megatrends Inc.
5555 Oakbrook Parkway, Suite 200
Norcross, GA 30093
The information contained in this message may be confidential and proprietary to \
American Megatrends, Inc. This communication is intended to be read only by the \
individual or entity to whom it is addressed or by their designee. If the reader of \
this message is not the intended recipient, you are on notice that any distribution \
of this message, in any form, is strictly prohibited. Please promptly notify the \
sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy \
all copies of the transmission.
[Attachment #5 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"MS Shell Dlg 2";
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> \
So I am using this to authenticate against an AD environment; however when the \
libraries “Socket6” and “IO-Socket_INET6” are installed I get \
a problem when the bind command executes in our IPv4 only environment. I poked \
though the source a little and even tried setting ‘inet6=>0’ but \
to no avail. Below is a simple version of what I’m doing; this works when the \
two named libs are not installed. I’m running ActiveState 5v16s3 (v5.16.3) for \
windows x64-multi-thread. Happy to test any patches.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Use Net::LDAP;<o:p></o:p></p>
<p class="MsoNormal">my $user = ‘megatrends.com\user’;<o:p></o:p></p>
<p class="MsoNormal">my $password = “”;<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">my $ldap = Net::LDAP->new(“us.megatrends.com”, \
port=>386) or print “$@”;<o:p></o:p></p> <p class="MsoNormal">my $mesg \
= $ldap->bind($user, password=>$password);<o:p></o:p></p> <p \
class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">if ($mesg->code) \
{<o:p></o:p></p> <p class="MsoNormal"> \
print “Bind code: ". $mesg->code ." error: \
".$mesg->error_name." \
".$mesg->error_text.”\n”;<o:p></o:p></p> <p \
class="MsoNormal">}<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:black">Thank you,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Glenn Tanner<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">StorTrends Junior Test \
Engineer<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:black">x</span><span style="font-size:9.0pt;font-family:"MS Shell \
Dlg 2","sans-serif";color:black">7064<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="font-size:9.0pt;font-family:"MS Shell Dlg \
2","sans-serif";color:black">404-368-6079</span><span \
style="color:black"><o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:black"><o:p> </o:p></span></p> <p class="MsoNormal">StorTrends \
StorAID<span style="color:black"><o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:black">Toll Free phone: 1-800-892-6625<o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:black">Local/International: \
770-246-8761<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:black">Email: <a href="mailto:StorTrends-Support@ami.com"> <span \
style="color:blue">StorTrends-Support@ami.com</span></a> <o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:black">Web: <a \
href="http://www.stortrends.com/"> <span \
style="color:blue">http://www.stortrends.com/</span></a><o:p></o:p></span></p> <p \
class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p> <p \
class="MsoNormal"><span style="color:black">American Megatrends \
Inc.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color:black">5555 \
Oakbrook Parkway, Suite 200<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="color:black">Norcross, GA 30093<o:p></o:p></span></p> <p \
class="MsoNormal"><o:p> </o:p></p> </div>
<p>The information contained in this message may be confidential and proprietary to \
American Megatrends, Inc. This communication is intended to be read only by the \
individual or entity to whom it is addressed or by their designee. If the reader of \
this message is not the intended recipient, you are on notice that any distribution \
of this message, in any form, is strictly prohibited. Please promptly notify the \
sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy \
all copies of the transmission.</p> </body>
</html>
["domain_test.zip" (application/x-zip-compressed)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic