---
name: "ldap_connect"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/ldap_connect"
---

# ldap\_connect(3w)

## NAME

**ldap\_connect** (WLDAP32.@)

## SYNOPSIS

ULONG CDECL  ldap\_connect\
  (\
   WLDAP32\_LDAP\*     *ld*,\
   struct l\_timeval\* *timeout*\
  )

## DESCRIPTION

Connect to an **LDAP** server.

## PARAMS

*ld* **\[In\]**  Pointer to an **LDAP** context.

*timeout* **\[In\]**  Pointer to an l\_timeval structure specifying the *timeout* in seconds.

## RETURNS

**Success:** **LDAP\_SUCCESS**

**Failure:** An **LDAP** error code.

## NOTES

The *timeout* parameter may be **NULL** in which case a default *timeout* value will be used.

## IMPLEMENTATION

Declared in **"winldap\_private.h"**.

Implemented in **"dlls/wldap32/init.c"**.
