Building Python-AD on Windows

29 views
Skip to first unread message

Itamar O

unread,
Jul 6, 2011, 4:12:27 PM7/6/11
to python-ad
Hi,
I would like to build python-ad on Windows, and create a Windows
Installer.
Here's what I have so far:

C:\...\python-ad-0.9>python setup.py bdist_wininst
running bdist_wininst
running build
running build_py
running build_ext
building 'ad.protocol.krb5' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /
nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python26\include -IC:
\Python26\PC /Tclib/ad/protocol/krb5.c /Fobuild\temp.win32-2.6\Release
\lib/ad/protocol/krb5.obj
krb5.c
lib/ad/protocol/krb5.c(11) : fatal error C1083: Cannot open include
file: 'krb5.h': No such file or directory
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC
\BIN\cl.exe"' failed with exit status 2

Looking at the source distribution, I see only krb5.c exists in the
tarball.
Where should I get the krb5.h and python.h includes it expects?

Advice is appreciated,
- Itamar.

Geert Jansen

unread,
Jul 6, 2011, 4:17:05 PM7/6/11
to pyth...@googlegroups.com
Hi,

python-ad was never really tested on Windows. At least, you'd need the
MIT Kerberos libraries and OpenLDAP to make it work. It would be quite
a bit of work to get it running. On the Windows platform, it's
probably best to use the native AD interfaces like ADSI.

Regards,
Geert

> --
> You received this message because you are subscribed to the Google Groups "python-ad" group.
> To post to this group, send email to pyth...@googlegroups.com.
> To unsubscribe from this group, send email to python-ad+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/python-ad?hl=en.
>
>

Itamar O

unread,
Jul 6, 2011, 4:52:49 PM7/6/11
to pyth...@googlegroups.com
Thanks Geert.
It seems Tim Golden's active_directory module (http://timgolden.me.uk/python/active_directory.html) provides a simple wrapper for AD access in Windows.
Reply all
Reply to author
Forward
0 new messages