Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastcgi_option not working #8

Closed
jeunito opened this issue Jun 9, 2017 · 1 comment
Closed

fastcgi_option not working #8

jeunito opened this issue Jun 9, 2017 · 1 comment

Comments

@jeunito
Copy link

jeunito commented Jun 9, 2017

I used a fresh checkout and I get the following error when trying to run ldapcherry with fastcgi:

Python Exception:
Traceback (most recent call last):

  File "/home/ubuntu/ldapcherry/ldapcherry/exceptions.py", line 228, in ret
    return func(self, *args, **kwargs)

TypeError: default() takes at most 2 arguments (7 given)

uncaught exception: [default() takes at most 2 arguments (7 given)]

Command used:

sudo ldapcherryd -c conf/ldapcherry.ini -D -f

I used the ldapcherry.ini that came with the checkout but changed the following attributes:

# listing interface
server.socket_host = '0.0.0.0'

I also changed the templates and static dir attributes to point to the correct place for the Nginx configuration but I don't think that should matter.

@kakwa
Copy link
Owner

kakwa commented Jun 9, 2017

I've actually never deployed ldapcherry in fastcgi mode until now, I generally deploy it with a basic reverse http proxy.

But I managed to make it work with the following nginx configuration:

https://github.com/kakwa/ldapcherry/blob/master/goodies/nginx-fastcgi.conf

It's shamelessly copied/pasted from:
http://webpy.org/cookbook/fastcgi-nginx

I've included this configuration in the documentation.

Also, just to mention it, you can also launch ldapcherry bound to a unix socket (in fact it's cherrypy that does all the work), but be cautious about the unix socket ownership:

# global parameters
[global]

# listing interface
server.socket_file = '/tmp/ldapcherry.sock'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants