Cmdr_Tofu has asked for the wisdom of the Perl Monks concerning the following question:
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.
This exits with the error "FAILED: IO::Socket::SSL: Timeout at ./setpasswd.pl line 25, <DATA> line 225."use Net::LDAP; use Net::LDAPS; $uri = "ldaps://mywin2k3vm.mydomain.com"; $ad=Net::LDAPS->new($uri) or die "FAILED: $@";
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,
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: problem binding to Windows 2003 Active Directory using LDAPS (from Linux)
by NetWallah (Canon) on Apr 18, 2005 at 21:30 UTC | |
by Cmdr_Tofu (Scribe) on Apr 19, 2005 at 00:25 UTC | |
Re: problem binding to Windows 2003 Active Directory using LDAPS (from Linux)
by starbolin (Hermit) on Apr 19, 2005 at 05:16 UTC | |
by Cmdr_Tofu (Scribe) on Apr 19, 2005 at 13:17 UTC |