Lines Matching defs:fd
36 int get_fd_from_ldap(LDAP *ldap, int *fd)
40 ret = ldap_get_option(ldap, LDAP_OPT_DESC, fd);
41 if (ret != LDAP_OPT_SUCCESS || *fd < 0) {
42 DEBUG(SSSDBG_CRIT_FAILURE, "Failed to get fd from ldap!!\n");
43 *fd = -1;
110 DEBUG(SSSDBG_TRACE_LIBS, "New LDAP connection to [%s] with fd [%d].\n",
129 fd_event_item->fd = ber_fd;
154 DEBUG(SSSDBG_TRACE_ALL, "Closing LDAP connection with fd [%d].\n", ber_fd);
157 if (fd_event_item->fd == ber_fd) {
162 DEBUG(SSSDBG_CRIT_FAILURE, "No event for fd [%d] found.\n", ber_fd);
177 int fd;
193 ret = get_fd_from_ldap(sh->ldap, &fd);
196 sh->sdap_fd_events->fde = tevent_add_fd(ev, sh->sdap_fd_events, fd,
285 errno_t sdap_call_conn_cb(const char *uri,int fd, struct sdap_handle *sh)
298 ret = ber_sockbuf_ctrl(sb, LBER_SB_OPT_SET_FD, &fd);
308 "ldap_url_parse failed to validate [%s] on fd [%d].\n",
309 uri, fd);