Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
smbprotocol-readonly
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Merlin Sievers
smbprotocol-readonly
Commits
702d7604
Unverified
Commit
702d7604
authored
7 years ago
by
Jordan Borean
Browse files
Options
Downloads
Patches
Plain Diff
Set python-gssapi as an optional dependency and fixed up some other setup issues
parent
f8b53a31
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+26
-6
26 additions, 6 deletions
README.md
setup.cfg
+3
-0
3 additions, 0 deletions
setup.cfg
setup.py
+2
-1
2 additions, 1 deletion
setup.py
with
31 additions
and
7 deletions
README.md
+
26
−
6
View file @
702d7604
...
...
@@ -31,12 +31,27 @@ backlog for features that would be nice to have in this library.
## Requirements
*
Python 2.6, 2.7, 3.4-3.6
*
For Kerberos auth
, the
[
python-gssapi
](
https://github.com/pythongssapi/python-gssapi
)
package (see below)
*
For Kerberos auth
[
python-gssapi
](
https://github.com/pythongssapi/python-gssapi
)
The python-gssapi library is required to support Kerberos authentication but
`smbprotocol`
requires the GSSAPI GGF extension to support things like
message encryption. To test out if the installed version of python-gsspapi
can be used you can run the python commands in a Python console;
To use Kerberos authentication, further dependencies are required, to install
these dependencies run
```
# for Debian/Ubuntu/etc:
sudo apt-get install gcc python-dev libkrb5-dev
pip install smbprotocol[kerberos]
# for RHEL/CentOS/etc:
sudo yum install gcc python-devel krb5-devel krb5-workstation python-devel
pip install smbprotocol[kerberos]
```
Currently Kerberos authentication is not supported on Windows. As part of this
optional extra, the python-gssapi library is installed and smbprotocol requires
a particular GSSAPI extension to be available to work. This extension should
be installed on the majority of MIT or Heimdall Kerberos installs but it isn't
guaranteed. To verify that Kerberos is available you can run the following
check in a Python console
```
try:
...
...
@@ -55,7 +70,12 @@ version.
To install smbprotocol, simply run
`pip install smbprotocol`
```
pip install smbprotocol
# on a non Windows host, to install with Kerberos support
pip install smbprotocol[kerberos]
```
This will download the required packages that are used in this package and get
your Python environment ready to go.
...
...
This diff is collapsed.
Click to expand it.
setup.cfg
+
3
−
0
View file @
702d7604
...
...
@@ -3,3 +3,6 @@ universal = 1
[tool:pytest]
pep8ignore
=
setup.py E501
[metadata]
license_file
=
LICENSE
\ No newline at end of file
This diff is collapsed.
Click to expand it.
setup.py
+
2
−
1
View file @
702d7604
...
...
@@ -27,7 +27,8 @@ setup(
'
:python_version<
"
2.7
"'
:
[
'
ordereddict
'
],
'
:sys_platform!=
"
win32
"'
:
[
'
kerberos:sys_platform==
"
win32
"'
:
[],
'
kerberos:sys_platform!=
"
win32
"'
:
[
'
gssapi>=1.4.1
'
]
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment