Hi guys, I have looked around but I cannot find a solution.
In a 4 year old
node a Windows-only solution was identified, but I need to be able to update Windows passwords from Linux.
I suppose we could create a separate service on a Windows machine which my Linux
perl script talked to but this would be highly undesirable.
kinit and kpasswd utilities are also be sufficient just to change Active Directory passwords from Linux, but we will likely need to do other things as well.
I think the real challenge is understanding how to use SSL properly (which I do not) so I will post my code snippet and related error message and see if any of you can help me.
use Net::LDAP;
use Net::LDAPS;
$uri = "ldaps://mywin2k3vm.mydomain.com";
$ad=Net::LDAPS->new($uri) or die "FAILED: $@";
This exits with the error "FAILED: IO::Socket::SSL: Timeout at ./setpasswd.pl line 25, <DATA> line 225."
Running sniffit as root, I can see that a connection from my machine is made to the Win2k3 Active Directory on the correct port (636).
Does anyone know what I am doing wrong?
Many thanks,
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.