Guest User

Untitled

a guest
May 20th, 2018
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.23 KB | None | 0 0
  1. sub bind_object {
  2.     my $path = shift;
  3.     my $user = "......";
  4.     my $pass =  ".....";
  5.     my $moni = "LDAP://<ip>/$path";
  6.  
  7.     my $dso = Win32::OLE->GetObject("LDAP:");
  8.     return $dso->OpenDSObject($moni, $user, $pass, 1);
  9. }
Add Comment
Please, Sign In to add comment