You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-3
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,20 @@
4
4
5
5
**Another LDAP Authentication** is an implementation of the `ldap-auth-daemon` services described in the official blog from Nginx in the [following article](https://www.nginx.com/blog/nginx-plus-authenticate-users/).
6
6
7
-
**Another LDAP Authentication** it's prepared to run inside a Docker container, also you can run the Python script without the Docker container. Supports `ldap` and `ldaps` and provide a simple cache.
7
+
**Another LDAP Authentication** it's prepared to run inside a Docker container, also you can run the Python script without the Docker container.
self.logs.info({'message':'At least one group is valid for the user.', 'matchedGroups': ','.join(matchedGroups), 'groups': ','.join(groups), 'conditional': self.groupConditional})
118
+
self.logs.info({'message':'At least one group is valid for the user.', 'username': self.username, 'matchedGroups': ','.join(matchedGroups), 'groups': ','.join(groups), 'conditional': self.groupConditional})
119
119
returnTrue,matchedGroups
120
120
# Conditiona AND, true if all the groups match
121
121
elifself.groupConditional=='and':
122
122
iflen(groups) ==len(matchesByGroup):
123
-
self.logs.info({'message':'All groups are valid for the user.', 'matchedGroups': ','.join(matchedGroups), 'groups': ','.join(groups), 'conditional': self.groupConditional})
123
+
self.logs.info({'message':'All groups are valid for the user.', 'username': self.username, 'matchedGroups': ','.join(matchedGroups), 'groups': ','.join(groups), 'conditional': self.groupConditional})
124
124
returnTrue,matchedGroups
125
125
else:
126
-
self.logs.warning({'message':'Invalid group conditional.', 'conditional': self.groupConditional})
126
+
self.logs.error({'message':'Invalid group conditional.', 'username': self.username, 'conditional': self.groupConditional})
127
127
returnFalse,[]
128
128
129
+
self.logs.error({'message':'Invalid groups for the user.', 'username': self.username, 'matchedGroups': ','.join(matchedGroups), 'groups': ','.join(groups), 'conditional': self.groupConditional})
0 commit comments