Re: Win32::OLE

2003-02-07 Thread michael higgins
michael higgins wrote: John Deretich wrote: Hi, does anyone know how to insert proper page breaks using OLE? I am trying to insert a perl created report into a microsoft word document to get the proper page breaks, and then print the report. Any thoughts? This too... here's a snip that pur

Re: Win32::OLE

2003-02-07 Thread michael higgins
John Deretich wrote: Hi, does anyone know how to insert proper page breaks using OLE? I am trying to insert a perl created report into a microsoft word document to get the proper page breaks, and then print the report. Any thoughts? "\f" -- oddly enough... ;-) my $mytxt = "Just some random

RE: A simple problem - I hope.

2003-02-07 Thread RICH, ADAM \(SBCSI\)
I believe you could use the auth-ldap module in apache for this purpose. Active Directory is supposedly compliant with the LDAP standard. -Original Message- From: Norris, Joseph [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 4:43 PM To: Perl Win32 Users (E-mail); Perl Admin

A simple problem - I hope.

2003-02-07 Thread Norris, Joseph
Group, I am just trying to get a scope of way different people are handling this situation. Here is the situation: We are running windows 2000 with apache web server, Perl (of course), Mysql. The boss wants the user to be able to sign on to a machine using windows 2000 login (active di

RE: How to query a machine for domain membership?

2003-02-07 Thread michael . berry
If it isn't an emergency, you could write a socket client/server and check the registry on each machine for the domain membership key. All machines report to one location; while you were at it, you could retrieve other vital info if that were necessary... >-- Original Message -- >From: "Colin Eri

Win32::OLE

2003-02-07 Thread John Deretich
Hi, does anyone know how to insert proper page breaks using OLE? I am trying to insert a perl created report into a microsoft word document to get the proper page breaks, and then print the report. Any thoughts? Here's the code that I am running: use Win32::OLE; my $File = "\\filename"; my $

Re: How to query a machine for domain membership?

2003-02-07 Thread Thomas R Wyant_III
"Colin Eric Johnson" <[EMAIL PROTECTED]> writes: > I'd like to be able to walk through a list of machines that I > have and ask each one what domain/workgroup it thinks it is in. > I'm not seeing anything obvious that will do this. Anyone got any > insight? Check the docs on the Win32 module. O

Re: How to query a machine for domain membership?

2003-02-07 Thread Patrick J. LoPresti
You can do this through WMI. Sample script is attached. - Pat use warnings; use strict; use Win32::OLE; scalar @ARGV == 1 or die "Usage: $0 \n"; my ($hostname) = @ARGV; # Bomb out completely if COM engine

RE: How to query a machine for domain membership?

2003-02-07 Thread Kipp, James
> > I'd like to be able to walk through a list of machines that I > have and ask each one what domain/workgroup it thinks it is in. > I'm not seeing anything obvious that will do this. Anyone got any > insight? Maybe you can work with this. A script i used to see if a WS is in domain: -- use st

How to query a machine for domain membership?

2003-02-07 Thread Colin Eric Johnson
I'd like to be able to walk through a list of machines that I have and ask each one what domain/workgroup it thinks it is in. I'm not seeing anything obvious that will do this. Anyone got any insight? ___ Perl-Win32-Admin mailing list [EMAIL PROTECTED]

RE: Human readable SIDs & GIDs

2003-02-07 Thread Geaslin, Andrew - GPB
I recently posted this in lieu of Win32::Perms or Win32::Lanman (though they work just fine) I apologize to the author of these subroutines but I have forgotten his name ... Anyway, one converts binary sid to text and the other text to binary sid should you need it. Win32::LookupAccountName($syst

RE: Human readable SIDs & GIDs

2003-02-07 Thread RICH, ADAM \(SBCSI\)
You could also use the Win32::Lanman module for this: LsaLookupNames($server, \@accounts, \@info) LsaLookupSids($server, \@sids, \@info) -Original Message- From: Scott Campbell [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 7:24 AM To: 'Colin Eric Johnson'; [EMAIL

RE: Human readable SIDs & GIDs

2003-02-07 Thread Scott Campbell
Yep, I did post this to the perl archives earlier. After a little search on Win32::Perms... This should be what you need :) - > #!perl > > use Win32::Perms; > $username=Win32::Perms::ResolveAccount('S-1-5-21-3725260815-71594873-113 > 1426265-1002');