Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11897 > unrolled thread

Python Windows Extensions for Mac

Started by"johnny.venter" <johnny.venter@zoho.com>
First post2011-08-19 13:02 -0700
Last post2011-08-23 15:40 +0200
Articles 10 — 7 participants

Back to article view | Back to comp.lang.python


Contents

  Python Windows Extensions for Mac "johnny.venter" <johnny.venter@zoho.com> - 2011-08-19 13:02 -0700
    Re: Python Windows Extensions for Mac Kevin Walzer <kw@codebykevin.com> - 2011-08-20 13:39 -0400
      Re: Python Windows Extensions for Mac Johnny Venter <johnny.venter@zoho.com> - 2011-08-20 19:51 -0400
        Re: Python Windows Extensions for Mac Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2011-08-21 17:28 +0200
      Re: Python Windows Extensions for Mac Chris Angelico <rosuav@gmail.com> - 2011-08-21 00:57 +0100
      Re: Python Windows Extensions for Mac Johnny Venter <johnny.venter@zoho.com> - 2011-08-21 01:38 -0400
      Re: Python Windows Extensions for Mac Chris Angelico <rosuav@gmail.com> - 2011-08-21 08:30 +0100
      Re: Python Windows Extensions for Mac Alec Taylor <alec.taylor6@gmail.com> - 2011-08-21 20:13 +1000
      Re: Python Windows Extensions for Mac "johnny.venter" <johnny.venter@zoho.com> - 2011-08-22 06:07 -0700
      Re: Python Windows Extensions for Mac Christian Heimes <lists@cheimes.de> - 2011-08-23 15:40 +0200

#11897 — Python Windows Extensions for Mac

From"johnny.venter" <johnny.venter@zoho.com>
Date2011-08-19 13:02 -0700
SubjectPython Windows Extensions for Mac
Message-ID<mailman.250.1313813488.27778.python-list@python.org>
Hello, I am looking for the Python Windows Extensions to see if they can be installed on a Mac.THanks.

[toc] | [next] | [standalone]


#11922

FromKevin Walzer <kw@codebykevin.com>
Date2011-08-20 13:39 -0400
Message-ID<e1f6f$4e4ff106$4275d90a$13260@FUSE.NET>
In reply to#11897
On 8/19/11 4:02 PM, johnny.venter wrote:
>
> Hello, I am looking for the Python Windows Extensions to see if they can be installed on a Mac.THanks.
>

You can certainly try to install them via easy_install, I supposed, but 
it's doubtful they would do anything, as the Mac does not support win32 
API calls any more than Windows supports Cocoa/Objective-C calls.

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com

[toc] | [prev] | [next] | [standalone]


#11932

FromJohnny Venter <johnny.venter@zoho.com>
Date2011-08-20 19:51 -0400
Message-ID<mailman.272.1313884307.27778.python-list@python.org>
In reply to#11922
Thank you all for the replies. I would like to query various Windows' objects and resources from Mac and/or Linux such as Active Directory users, network shares, group members, etc... What module or methods can I use with python to accomplish this? 

I found dcerpc might be the way to go. 

On Aug 20, 2011, at 1:39 PM, Kevin Walzer <kw@codebykevin.com> wrote:

> On 8/19/11 4:02 PM, johnny.venter wrote:
>> 
>> Hello, I am looking for the Python Windows Extensions to see if they can be installed on a Mac.THanks.
>> 
> 
> You can certainly try to install them via easy_install, I supposed, but it's doubtful they would do anything, as the Mac does not support win32 API calls any more than Windows supports Cocoa/Objective-C calls.
> 
> -- 
> Kevin Walzer
> Code by Kevin
> http://www.codebykevin.com
> -- 
> http://mail.python.org/mailman/listinfo/python-list

[toc] | [prev] | [next] | [standalone]


#11941

FromIrmen de Jong <irmen.NOSPAM@xs4all.nl>
Date2011-08-21 17:28 +0200
Message-ID<4e512435$0$23850$e4fe514c@news2.news.xs4all.nl>
In reply to#11932
On 21-8-2011 1:51, Johnny Venter wrote:
> Thank you all for the replies. I would like to query various Windows' objects and
> resources from Mac and/or Linux such as Active Directory users, network shares, group
> members, etc... What module or methods can I use with python to accomplish this?

A way to approach this problem is installing Python + windows extensions on the actual
windows machine(s) you want to query.

Then create some form of a server process that does the windows specific stuff locally,
and exposes an interface with the functions you want to provide to your remote
machine(s).  Talk with the server process using some form of platform independent IPC,
for instance Pyro: http://pypi.python.org/pypi/Pyro4/

Be careful what methods you expose this way though (security issues!)

Irmen

[toc] | [prev] | [next] | [standalone]


#11933

FromChris Angelico <rosuav@gmail.com>
Date2011-08-21 00:57 +0100
Message-ID<mailman.273.1313884644.27778.python-list@python.org>
In reply to#11922
On Sun, Aug 21, 2011 at 12:51 AM, Johnny Venter <johnny.venter@zoho.com> wrote:
> Thank you all for the replies. I would like to query various Windows' objects and resources from Mac and/or Linux such as Active Directory users, network shares, group members, etc... What module or methods can I use with python to accomplish this?
>

The concept doesn't have meaning on a non-Windows computer, so I am
going to take the liberty of assuming that you really want to query
them from a different computer - some kind of network query. If that's
not the case, can you clarify exactly what your setup is?

Chris Angelico

[toc] | [prev] | [next] | [standalone]


#11936

FromJohnny Venter <johnny.venter@zoho.com>
Date2011-08-21 01:38 -0400
Message-ID<mailman.275.1313905116.27778.python-list@python.org>
In reply to#11922
Yes, I want to make my queries from a remote non-Windows computer. Here is the scenario:

From my mac, I want to use python to access and read objects from a remote  Windows computer joined to a Windows 2003 functional level domain. Given this, what is the best way to accomplish this?


On Aug 20, 2011, at 7:57 PM, Chris Angelico <rosuav@gmail.com> wrote:

> On Sun, Aug 21, 2011 at 12:51 AM, Johnny Venter <johnny.venter@zoho.com> wrote:
>> Thank you all for the replies. I would like to query various Windows' objects and resources from Mac and/or Linux such as Active Directory users, network shares, group members, etc... What module or methods can I use with python to accomplish this?
>> 
> 
> The concept doesn't have meaning on a non-Windows computer, so I am
> going to take the liberty of assuming that you really want to query
> them from a different computer - some kind of network query. If that's
> not the case, can you clarify exactly what your setup is?
> 
> Chris Angelico
> -- 
> http://mail.python.org/mailman/listinfo/python-list

[toc] | [prev] | [next] | [standalone]


#11937

FromChris Angelico <rosuav@gmail.com>
Date2011-08-21 08:30 +0100
Message-ID<mailman.276.1313911811.27778.python-list@python.org>
In reply to#11922
On Sun, Aug 21, 2011 at 6:38 AM, Johnny Venter <johnny.venter@zoho.com> wrote:
> Yes, I want to make my queries from a remote non-Windows computer. Here is the scenario:
>
> From my mac, I want to use python to access and read objects from a remote  Windows computer joined to a Windows 2003 functional level domain. Given this, what is the best way to accomplish this?
>

Then the "use Python" part is relatively immaterial; what you need to
know is: What network protocol are you using to "access and read
objects"? Start by researching that; once you know the details (is it
even TCP/IP-based?), you can look into whether Python has facilities
for speaking that protocol.

ChrisA

[toc] | [prev] | [next] | [standalone]


#11939

FromAlec Taylor <alec.taylor6@gmail.com>
Date2011-08-21 20:13 +1000
Message-ID<mailman.277.1313921592.27778.python-list@python.org>
In reply to#11922
Perhaps you'd be better off with something like RunDeck (Free,
Open-Source, Cross-Platform, CopyLeft) for this kind of problem.

On Sun, Aug 21, 2011 at 5:30 PM, Chris Angelico <rosuav@gmail.com> wrote:
> On Sun, Aug 21, 2011 at 6:38 AM, Johnny Venter <johnny.venter@zoho.com> wrote:
>> Yes, I want to make my queries from a remote non-Windows computer. Here is the scenario:
>>
>> From my mac, I want to use python to access and read objects from a remote  Windows computer joined to a Windows 2003 functional level domain. Given this, what is the best way to accomplish this?
>>
>
> Then the "use Python" part is relatively immaterial; what you need to
> know is: What network protocol are you using to "access and read
> objects"? Start by researching that; once you know the details (is it
> even TCP/IP-based?), you can look into whether Python has facilities
> for speaking that protocol.
>
> ChrisA
> --
> http://mail.python.org/mailman/listinfo/python-list
>

[toc] | [prev] | [next] | [standalone]


#12024

From"johnny.venter" <johnny.venter@zoho.com>
Date2011-08-22 06:07 -0700
Message-ID<mailman.313.1314018470.27778.python-list@python.org>
In reply to#11922
Chris, thank you for the information.  Focusing on Active Directory, I reviewed the info at the following site: http://technet.microsoft.com/en-us/library/cc961766.aspx

Based on this, I need to find a module that implements the LDAP APIs.  By default, it does not appear that Python can speak this language, I am using version 2.6.1.  The module I found is Python-LDAP (http://www.python-ldap.org/).

Does anyone have experience using this?

---- On Sun, 21 Aug 2011 00:30:07 -0700 Chris Angelico  wrote ---- 

>On Sun, Aug 21, 2011 at 6:38 AM, Johnny Venter  wrote: 
>> Yes, I want to make my queries from a remote non-Windows computer. Here is the scenario: 
>> 
>> From my mac, I want to use python to access and read objects from a remote  Windows computer joined to a Windows 2003 functional level domain. Given this, what is the best way to accomplish this? 
>> 
> 
>Then the "use Python" part is relatively immaterial; what you need to 
>know is: What network protocol are you using to "access and read 
>objects"? Start by researching that; once you know the details (is it 
>even TCP/IP-based?), you can look into whether Python has facilities 
>for speaking that protocol. 
> 
>ChrisA 
>-- 
>http://mail.python.org/mailman/listinfo/python-list 
>

[toc] | [prev] | [next] | [standalone]


#12083

FromChristian Heimes <lists@cheimes.de>
Date2011-08-23 15:40 +0200
Message-ID<mailman.349.1314106876.27778.python-list@python.org>
In reply to#11922
Am 22.08.2011 15:07, schrieb johnny.venter:
> Chris, thank you for the information.  Focusing on Active Directory, I reviewed the info at the following site: http://technet.microsoft.com/en-us/library/cc961766.aspx
> 
> Based on this, I need to find a module that implements the LDAP APIs.  By default, it does not appear that Python can speak this language, I am using version 2.6.1.  The module I found is Python-LDAP (http://www.python-ldap.org/).
> 
> Does anyone have experience using this?

LDAP is a protocol, not a language. You are right, LDAP isn't part of
the Python standard library. The python-ldap extensions works well with
Active Directory. I've used it to write an authentication and
authorisation layer for our application.

A word of warning: LDAP isn't trivial and AD has its quirks, too. It's
going to take you a while to understand its concepts.

Christian

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web