[python-win32] ADSI and LDAP Searches

2005-12-08 Thread Gooch, John
I am trying to get my Python script to search Active Directory for users with a certain login name and then have it return their adspath attribute. Previously, I had a working script that used Tim Golden's active_directory module, but since the more recent round of NT Server patches, it no longer w

Re: [python-win32] Querying Password Change Privilege on an Activ e Directory User Ac count

2005-07-29 Thread Gooch, John
ns problems while I sleep. :) -Original Message- From: Jim Vickroy [mailto:[EMAIL PROTECTED] Sent: Friday, July 29, 2005 12:34 PM To: Gooch, John Cc: python-win32@python.org Subject: Re: [python-win32] Querying Password Change Privilege on an Active Directory User Ac count Hello John, Why does it mat

[python-win32] Querying Password Change Privilege on an Active Directory User Ac count

2005-07-29 Thread Gooch, John
Title: Message I have a script that changes user passwords, and it throws exceptions then executing the SetPassword() or SetInfo() commands on a AD user account that it does not have "set password" privileges on. To avoid the exception being thrown, I would like to have the script check whet

[python-win32] ADSI and LDAP Searches

2005-06-29 Thread Gooch, John
Hey, I am converting a Perl script into a Python script, and the part where the Perl script is searching Active Directory using the LDAP interface is throwing me a curve ball. Here is a search for a Windows Group in Perl: my $hdb = Win32::OLE->new("ADODB.Connection"); $hdb->{Provider} = "ADsDSOObj

[python-win32] Question: Finding the "owner" Of A Process

2005-06-02 Thread Gooch, John
Title: Question: Finding the "owner" Of A Process I am trying to print out the owner of running process on Windows 2000 Professional ( SP4 ) using WMI, but my call to the "GetOwner" Process defined here - http://msdn.microsoft.com/library/default.asp?url="">, which is part of the Win32_Process