From 74e351a8eaa96914fa229c967d1df5f97849ddfb Mon Sep 17 00:00:00 2001 From: Roger Smith Date: Thu, 30 Jul 2015 13:45:59 +1200 Subject: [PATCH 1/3] Update dependencies for pywinrm Adding the python-dev and libkrb5-dev libraries avoids the error message "error: command 'x86_64-linux-gnu-gcc' failed with exit status 1" when running "pip install kerberos" --- docsite/rst/intro_windows.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docsite/rst/intro_windows.rst b/docsite/rst/intro_windows.rst index 645248fde5..ff8d99a88f 100644 --- a/docsite/rst/intro_windows.rst +++ b/docsite/rst/intro_windows.rst @@ -30,6 +30,7 @@ On a Linux control machine:: If you wish to connect to domain accounts published through Active Directory (as opposed to local accounts created on the remote host):: + sudo apt-get install python-dev libkrb5-dev pip install kerberos Kerberos is installed and configured by default on OS X and many Linux distributions. If your control machine has not already done this for you, you will need to. From bbee2a9c657532d251f1fb3f5872838a2b250ca6 Mon Sep 17 00:00:00 2001 From: Roger Smith Date: Thu, 30 Jul 2015 18:21:26 +1200 Subject: [PATCH 2/3] Add pywinrm dependencies for RPM --- docsite/rst/intro_windows.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docsite/rst/intro_windows.rst b/docsite/rst/intro_windows.rst index ff8d99a88f..a6d634d278 100644 --- a/docsite/rst/intro_windows.rst +++ b/docsite/rst/intro_windows.rst @@ -30,8 +30,13 @@ On a Linux control machine:: If you wish to connect to domain accounts published through Active Directory (as opposed to local accounts created on the remote host):: + # Debian-based distributions (Debian, Ubuntu, …) sudo apt-get install python-dev libkrb5-dev pip install kerberos + + # RPM-based distributions (Fedora, CentOS, RHEL, …) + yum -y install python-devel krb5-devel krb5-libs krb5-workstation + pip install kerberos Kerberos is installed and configured by default on OS X and many Linux distributions. If your control machine has not already done this for you, you will need to. From 8629ac539ec86a9fc00a408e1cca53451a74684c Mon Sep 17 00:00:00 2001 From: Roger Smith Date: Fri, 31 Jul 2015 18:22:52 +1200 Subject: [PATCH 3/3] Extend python-kerberos dependency section Add (untested) dependencies for Portage, pkg, OpenCSW, and Pacman --- docsite/rst/intro_windows.rst | 42 ++++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/docsite/rst/intro_windows.rst b/docsite/rst/intro_windows.rst index a6d634d278..9bda3e5489 100644 --- a/docsite/rst/intro_windows.rst +++ b/docsite/rst/intro_windows.rst @@ -28,16 +28,46 @@ On a Linux control machine:: pip install https://github.com/diyan/pywinrm/archive/master.zip#egg=pywinrm -If you wish to connect to domain accounts published through Active Directory (as opposed to local accounts created on the remote host):: +Active Directory Support +++++++++++++++++++++++++ - # Debian-based distributions (Debian, Ubuntu, …) +If you wish to connect to domain accounts published through Active Directory (as opposed to local accounts created on the remote host), you will need to install the "python-kerberos" module and the MIT krb5 libraries it depends on. + +Installing python-kerberos dependencies +--------------------------------------- + +.. code-block:: bash + + # Via Yum + yum -y install python-devel krb5-devel krb5-libs krb5-workstation + + # Via Apt (Ubuntu) sudo apt-get install python-dev libkrb5-dev + + # Via Portage (Gentoo) + emerge -av app-crypt/mit-krb5 + emerge -av dev-python/setuptools + + # Via pkg (FreeBSD) + sudo pkg install security/krb5 + + # Via OpenCSW (Solaris) + pkgadd -d http://get.opencsw.org/now + /opt/csw/bin/pkgutil -U + /opt/csw/bin/pkgutil -y -i libkrb5_3 + + # Via Pacman (Arch Linux) + pacman -S krb5 + +Installing python-kerberos +-------------------------- + +Once you've installed the necessary dependencies, the python-kerberos wrapper can be installed via pip:: + +.. code-block:: bash + pip install kerberos - # RPM-based distributions (Fedora, CentOS, RHEL, …) - yum -y install python-devel krb5-devel krb5-libs krb5-workstation - pip install kerberos - Kerberos is installed and configured by default on OS X and many Linux distributions. If your control machine has not already done this for you, you will need to. .. _windows_inventory: