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

lmremote_user #4

Open
marcolefo opened this issue Sep 12, 2024 · 5 comments
Open

lmremote_user #4

marcolefo opened this issue Sep 12, 2024 · 5 comments

Comments

@marcolefo
Copy link

marcolefo commented Sep 12, 2024

Hi

I have installed lemonldap-ng on a Debian 12 following the doc.
I was here : https://lemonldap-ng.org/documentation/latest/quickstart.html#id1
The restart of nginx service failed
2024/09/12 17:54:04 [emerg] 38776#38776: unknown "lmremote_user" variable nginx: configuration file /etc/nginx/nginx.conf test failed

After googling, it seems that is an old bug but I don't understand the workaround.
https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/1918

What I have to do ?

Thanks for your work.

PS: I have tried to open an issue on OW2 but I cannot create an account. See the error log joined.
OW2.log
Capture d’écran 2024-09-12 à 18 15 35

@coudot
Copy link
Member

coudot commented Sep 12, 2024

Hello,

did you also follow this documentation: https://lemonldap-ng.org/documentation/latest/confignginx.html ?

@marcolefo
Copy link
Author

marcolefo commented Sep 12, 2024

Hello,

did you also follow this documentation: https://lemonldap-ng.org/documentation/latest/confignginx.html ?

Hi !
No I was on this page : https://lemonldap-ng.org/documentation/2.0/quickstart.html
I will try with the page you indicate

@marcolefo
Copy link
Author

I have found the test file here
/usr/share/doc/lemonldap-ng-handler/examples/test-nginx.conf
I have copied it in nginx etc and the service launch well

@marcolefo
Copy link
Author

marcolefo commented Sep 12, 2024

So I have followed th confignginx and now nginx does not launch ;)

2024/09/12 19:15:42 [emerg] 1496#1496: duplicate "log_format" name "lm_combined" in /etc/lemonldap-ng/nginx-lmlog.conf:3

Maybe the doc need updates :)

# cat /etc/lemonldap-ng/nginx-lmlog.conf
log_format lm_combined '$remote_addr - $lmremote_user [$time_local] '
	'"$request" $status $body_bytes_sent '
	'"$http_referer" "$http_user_agent" $lmremote_custom';
log_format lm_app '$remote_addr - $upstream_http_lm_remote_user [$time_local] '
	'"$request" $status $body_bytes_sent '
	'"$http_referer" "$http_user_agent" $upstream_http_lm_remote_custom';

I think it's after doing https://lemonldap-ng.org/documentation/latest/confignginx.html#debianubuntu-1

ln -s /etc/lemonldap-ng/nginx-lmlog.conf /etc/nginx/conf.d/llng-lmlog.conf
ln -s /etc/lemonldap-ng/nginx-lua-headers.conf /etc/nginx/snippets/llng-lua-headers.conf

@olow2
Copy link

olow2 commented Sep 13, 2024

@marcolefo Concerning ow2 account registration, this issue has been solved. Let me know if any other issue about ow2 website

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

3 participants