Jiri Hruska
7acf3b4a98
Unification and small cleanup of log messages
...
Most importantly, all messages start with "http_auth_ldap: " now.
11 years ago
Jiri Hruska
16c3452ec0
Minor code formatting cleanup
11 years ago
Jiri Hruska
1b6ee8e0c1
Clean function order a bit before further big changes
11 years ago
Jiri Hruska
c8d76769d4
Add contribution notice to the licenses
11 years ago
Jiri Hruska
8b2dcc7522
Implement a per-process cache for increased performance
...
A configured number of cached (server,username,password) entries is held
for a configured amount of time to avoid repeated authentications for
each of several requests quickly following each other.
12 years ago
Jiri Hruska
bd4959918c
Allow specifying the full user DN to avoid searching the LDAP
...
The configuration can now contain a directive like this
require valid_user cn=$remote_user,dc=example,dc=com
which will result in the bind as the respective user to be the
only command sent to the server, skipping the search request.
12 years ago
Jiri Hruska
a043544e2d
Resolve server names only once during configuration
12 years ago
Jiri Hruska
89f0f75592
Simplify processing of auth_ldap configuration directives
12 years ago
Jiri Hruska
4947e2047d
Use ngx_http_complex_value_t instead of custom script handling
...
Makes the code smaller and cleaner by just using the core functionality.
12 years ago
Jiri Hruska
17fce4fe0a
Remove ngx_ldap_userinfo and custom parsing of the Authorization header
...
The core fills both decoded user name and password into r->headers_in.user
or r->headers_in.passwd, respectively, when ngx_http_auth_basic_user() is
called. Maybe it did not work like this before, but there is definitely no
need to handle the decoding ourselves now (nginx 1.4.1).
12 years ago
Jiri Hruska
4228721e81
Minor refactoring and cleanup
...
- Renamed ngx_ldap_server to ngx_http_auth_ldap_server_t.
- Used NGX_CONF_ANY instead of many NGX_CONF_TAKExxxx for the configuration
option taking any number of arguments.
12 years ago
Jiri Hruska
2d30d6e4ae
Remove forgotten "auth_basic" from ngx_http_auth_basic_create_loc_conf()
12 years ago
Jiri Hruska
04ed544f49
Fix a typo in Pavel Brylov's configuration refactoring
12 years ago
Valery
594ab64404
Update README.md
12 years ago
Valery
476e6bf981
Merge pull request #12 from pavelbrylov/master
...
Added support for multiple ldap servers, contains non-backwards compatible changes to configuration
12 years ago
Pavel Brylov
48f11c2eec
Added support for multiple ldap servers, contains non-backwards compatible changes to configuration
12 years ago
Valery
b3a0b659c1
Merge pull request #10 from chaoranxie/patch-1
...
need ; after the password input, or else it give an error
12 years ago
Chao
80fe157bac
need ; after the password input, or else it give an error
...
need ; after the password input, or else it give an error "invalid number of arguments in "auth_ldap_binddn_passwd" directive in /etc/nginx/nginx.conf"
12 years ago
Valery
f93c8d82b8
Create LICENSE
12 years ago
Valery
6aa1e7148c
Add Licence to source
12 years ago
Valery
c4dc7c9153
Merge pull request #6 from exelnet/master
...
Avoid exiting when tls option fails, keep going
12 years ago
Jan Marc Hoffmann
ef6b924ffb
The tls allow option will cause problems when no ldap.conf is defined on the client system. If the certificate option fails, warn and keep going.
12 years ago
Valery
420be94b32
Merge pull request #4 from harveyzh/master
...
fix memory length for the search filter
12 years ago
harveyzh
7e33e928c1
fix memory length for the search filter
12 years ago
Valery
3831deea1d
Update README.md
...
fix FreeBSD install
12 years ago
Valery
2beeb7c179
Update README.md
12 years ago
Valery Komarov
8026eac01e
fix clone source in README
12 years ago
Valery Komarov
3a7f9e3cf3
add README.md
12 years ago
Valery Komarov
c2c3d5ea49
fix Issue 8
13 years ago
Valery Komarov
6d8f79e876
Fix Issue 9
13 years ago
Valery Komarov
a395a59040
merge with issue6
13 years ago
Valery Komarov
440428e3c0
Issue 6
13 years ago
Valery Komarov
4e617f9794
Fix: Issue 5
13 years ago
Valery Komarov
649eba3171
Fix: Issue 3
14 years ago
Valery Komarov
56f958df32
Security fix: auth_ldap_require
14 years ago
Valery Komarov
624172c978
Source format
14 years ago
Valery Komarov
4e1ad9585e
add auth_ldap_require valid_user
14 years ago
Valery Komarov
29ca665654
Fix Issue 2
14 years ago
Valery Komarov
79cf28ec93
ldaps://
14 years ago
Valery Komarov
40fc8711b4
New: commands auth_ldap_group_attribute, auth_ldap_group_attribute_is_dn + fixes
14 years ago
Valery Komarov
7deefc9a85
Fix: ngx_log_debug's
14 years ago
Valery Komarov
906f880b53
initial commit
14 years ago