Asynchronous bind functions for LDAP.
More...
#include <freeradius-devel/ldap/base.h>
#include <freeradius-devel/util/debug.h>
Go to the source code of this file.
|
static USES_APPLE_DEPRECATED_API void | _ldap_bind_io_error (UNUSED fr_event_list_t *el, UNUSED int fd, UNUSED int flags, UNUSED int fd_errno, void *uctx) |
| Error reading from or writing to the file descriptor. More...
|
|
static void | _ldap_bind_io_read (UNUSED fr_event_list_t *el, UNUSED int fd, UNUSED int flags, void *uctx) |
| Parse a bind response from a server. More...
|
|
static void | _ldap_bind_io_write (fr_event_list_t *el, int fd, UNUSED int flags, void *uctx) |
| Send a bind request to a server. More...
|
|
int | fr_ldap_bind_async (fr_ldap_connection_t *c, char const *bind_dn, char const *password, LDAPControl **serverctrls, LDAPControl **clientctrls) |
| Install I/O handlers for the bind operation. More...
|
|
unlang_action_t | fr_ldap_bind_auth_async (request_t *request, fr_ldap_thread_t *thread, char const *bind_dn, char const *password) |
| Initiate an async LDAP bind for authentication. More...
|
|
static void | ldap_async_auth_bind_cancel (request_t *request, UNUSED fr_signal_t action, void *uctx) |
| Signal an outstanding LDAP bind request to cancel. More...
|
|
static unlang_action_t | ldap_async_auth_bind_results (rlm_rcode_t *p_result, UNUSED int *priority, request_t *request, void *uctx) |
| Handle the return code from parsed LDAP results to set the module rcode. More...
|
|
static unlang_action_t | ldap_async_auth_bind_start (UNUSED rlm_rcode_t *p_result, UNUSED int *priority, UNUSED request_t *request, UNUSED void *uctx) |
| Yield interpreter after queueing LDAP bind. More...
|
|
Asynchronous bind functions for LDAP.
Asynchronous SASL bind functions for LDAP.
- Id
- e7590cd992bbfd9c1c80a15f908f557ceb86a8e5
- Copyright
- 2017 Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
- Id
- 59e57d7825882054d1fc8ec22fd83e04b8ce9bf3
- Copyright
- 2017 Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
Definition in file bind.c.
◆ _ldap_bind_io_error()
Error reading from or writing to the file descriptor.
- Parameters
-
[in] | el | the event occurred in. |
[in] | fd | the event occurred on. |
[in] | flags | from kevent. |
[in] | fd_errno | The error that occurred. |
[in] | uctx | Connection config and handle. |
Definition at line 39 of file bind.c.
◆ _ldap_bind_io_read()
Parse a bind response from a server.
- Parameters
-
[in] | el | the event occurred in. |
[in] | fd | the event occurred on. |
[in] | flags | from kevent. |
[in] | uctx | bind_ctx containing credentials, and connection config/handle. |
Definition at line 56 of file bind.c.
◆ _ldap_bind_io_write()
Send a bind request to a server.
- Parameters
-
[in] | el | the event occurred in. |
[in] | fd | the event occurred on. |
[in] | flags | from kevent. |
[in] | uctx | bind_ctx containing credentials, and connection config/handle. |
Definition at line 96 of file bind.c.
◆ fr_ldap_bind_async()
int fr_ldap_bind_async |
( |
fr_ldap_connection_t * |
c, |
|
|
char const * |
bind_dn, |
|
|
char const * |
password, |
|
|
LDAPControl ** |
serverctrls, |
|
|
LDAPControl ** |
clientctrls |
|
) |
| |
Install I/O handlers for the bind operation.
- Parameters
-
[in] | c | connection to StartTLS on. |
[in] | bind_dn | Identity to bind with. |
[in] | password | Password to bind with. |
[in] | serverctrls | Extra controls to pass to the server. |
[in] | clientctrls | Extra controls to pass to libldap. |
- Returns
- 0 on success.
- -1 on failure.
Definition at line 185 of file bind.c.
◆ fr_ldap_bind_auth_async()
Initiate an async LDAP bind for authentication.
- Parameters
-
[in] | request | this bind relates to. |
[in] | thread | whose connection the bind should be performed on. |
[in] | bind_dn | Identity to bind with. |
[in] | password | Password to bind with. |
- Returns
- 0 on success.
- -1 on failure.
Definition at line 319 of file bind.c.
◆ ldap_async_auth_bind_cancel()
Signal an outstanding LDAP bind request to cancel.
Definition at line 300 of file bind.c.
◆ ldap_async_auth_bind_results()
Handle the return code from parsed LDAP results to set the module rcode.
Definition at line 248 of file bind.c.
◆ ldap_async_auth_bind_start()
Yield interpreter after queueing LDAP bind.
Definition at line 239 of file bind.c.