Comments (4)
What OS are you using? The ideal way to forward stdout to a file using systemd is the way you already explained above. Another one is to redirect to log stream to a file using ExecStart=/bin/python3 /etc/nginx-ldap/nginx-ldap-auth-daemon.py 2>&1 >> /var/log/your.log
.
This will append the stdout
as well as the stderr
to a custom logfile.
from nginx-ldap-auth.
We are using Amazon linux2 Nginx Plus AMI as a subscription from the market place.
os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
HOME_URL="https://amazonlinux.com/"
from nginx-ldap-auth.
Thanks and as you suggested, below redirection works:-
ExecStart=/bin/sh -c 'exec /bin/python3 /etc/nginx-ldap/nginx-ldap-auth-daemon.py 2>&1 >> /var/log/nginx/ldap_auth_daemon.log'
However, the service/process writes to the above redirected log file only when the systemd service is stopped i.e. it does not write in real-time.
from nginx-ldap-auth.
Sorry for the delay, this issue is fixed, was a buffer issue. Can be closed. Thanks👍
from nginx-ldap-auth.
Related Issues (20)
- Unable to initiate TLS with LDAP site server
- Limit LDAP authentication to specific user or group HOT 4
- nginx.com reports a security vulnerability: Addressing Security Weaknesses in the NGINX LDAP Reference Implementation HOT 2
- Missing proxy_cache_key if README.md ? HOT 1
- Push image on docker hub HOT 2
- LDAP filter authorization
- Successfully installed the nginx-ldap-auth module but errors when i execute
- Is there any way we can avoid providing X-Ldap-BindPass as plain text. HOT 2
- Manage auth result (Session based or Token Based authentication) HOT 1
- Docker needs to expose port
- Stopped working with Actve Directory HOT 1
- $remote_user not showing up in access logs
- Docker image won't build (python-ldap issue) HOT 1
- /auth returning 200, but looping back to /login
- Query inject attack / security vulnerability HOT 5
- Error when search result DN contains unicode characters HOT 1
- Query inject attack / security vulnerability HOT 4
- For a company like nginx, this "reference implementation" is a shame HOT 1
- 401 unauthorized HOT 1
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 nginx-ldap-auth.