Giter VIP home page Giter VIP logo

Comments (7)

PiNotEqual3 avatar PiNotEqual3 commented on July 17, 2024

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.

debarghaya avatar debarghaya commented on July 17, 2024

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.

oetiker avatar oetiker commented on July 17, 2024

to use active directory, you have you have to use an ldap url !

from pyauthenntlm2.

debarghaya avatar debarghaya commented on July 17, 2024

ldap url where in the Apache config. Can you share an example.

from pyauthenntlm2.

oetiker avatar oetiker commented on July 17, 2024

ldap://10.12.13.1/DC=nasa,DC=gov

from pyauthenntlm2.

debarghaya avatar debarghaya commented on July 17, 2024

Got it i should have read the readme file. Will check and let you guys know.

from pyauthenntlm2.

debarghaya avatar debarghaya commented on July 17, 2024

Worked thanks Oetiker

from pyauthenntlm2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.