Comments (7)
I can confirm this. I have
# python -V
Python 2.6
and master branch got me
PYNTLM: Error when retrieving Type 2 message from server
(ldap://my.server.net/DC=stuff,DC=org) = Connection refused
After I installed urlparse_replacement branch it work.
Thanks a lot!
from pyauthenntlm2.
I had used the Active directory one and got the following error 👎
Error
[Mon Jun 12 20:06:21 2017] [crit] [client 192.168.0.4] PYNTLM: Error when retrieving Type 2 message from server(192.168.0.2) = [Errno 13] Permission denied
Apache Config
AuthType NTLM
AuthName ABCD
require valid-user
PythonAuthenHandler pyntlm
PythonOption Domain ABCD
PythonOption PDC 192.168.0.2
Python Version
[root@rhel67 www]# python -V
Python 2.6.6
Active Directory - Windows2008R2
OS - RHEL 6.7
Apache 2.2
Mod python - http://archive.apache.org/dist/httpd/modpython/mod_python-3.3.1.tgz
Tried using urlparse_replacement still got the same error.
Http Client
[root@rhel67 PyAuthenNTLM2-ActiveDirectory]# python http_client.py -u administrator -p password12 -d ABCD http://192.168.0.3/cgi-bin/whoami.cgi
First round NTLM authentication for HTTP request failed 500 Internal Server Error
Authentication failed
whoami.cgi
#!/bin/sh
printf "Content-type: text/html\n\n$REMOTE_USER\n"
NTLM Client
[root@rhel67 PyAuthenNTLM2-ActiveDirectory]# python ntlm_client.py -u administrator -p password12 -d ABCD -a ldap://192.168.0.2
Using Active Directory (LDAP) to verify credentials.
User administrator\ABCD was authenticated.
Kind of confused and stuck, appreciate your thoughts on this.
from pyauthenntlm2.
to use active directory, you have you have to use an ldap url !
from pyauthenntlm2.
ldap url where in the Apache config. Can you share an example.
from pyauthenntlm2.
ldap://10.12.13.1/DC=nasa,DC=gov
from pyauthenntlm2.
Got it i should have read the readme file. Will check and let you guys know.
from pyauthenntlm2.
Worked thanks Oetiker
from pyauthenntlm2.
Related Issues (20)
- Implementation for mod_wsgi HOT 2
- Basic authentication does not work HOT 7
- "Unexpected NTLM message Type 3 in new connection" for POST requests after several seconds HOT 8
- mod_python does not start pyntlm HOT 2
- Not working with Apache 2.4 HOT 14
- Intermittent 401 Authorization required error HOT 3
- Unexpected error when checking membership HOT 1
- PYNTLM error with required valid-user HOT 7
- Can't install on Python 2.4 HOT 5
- ASN decode fails if a user is in more than 127 groups
- Ubuntu 15.10 with Apache 2.4: PyAuthenNTLM2 seems inactive HOT 2
- PyAuthenNTLM2 appears to incorrectly allow access to parallel directory that should be restricted HOT 1
- PyAuthenNTLM2 auth skipped when PHP-FPM processing is enabled for PHP HOT 1
- "Unexpected NTLM message Type 3 in new connection" Ubuntu 16.04 Apache 2.4 HOT 5
- (solved) [Errno 13] Permission denied
- Incorrect NTLM message in Authorization header HOT 4
- It should be possible to include domain in the user identifier HOT 2
- Incorrect terminology
- Disabling Basic Authentication HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyauthenntlm2.