PHP 8.3.4 Released!

ldap_unbind

(PHP 4, PHP 5, PHP 7, PHP 8)

ldap_unbindUnbind from LDAP directory

Descrição

ldap_unbind(LDAP\Connection $ldap): bool

Unbinds from the LDAP directory.

Parâmetros

ldap

Uma instância de LDAP\Connection, retornada por ldap_connect().

Valor Retornado

Retorna true em caso de sucesso ou false em caso de falha.

Registro de Alterações

Versão Descrição
8.1.0 O parâmetro ldap agora espera uma instância de LDAP\Connection; anteriormente, um resource ldap link válido era esperado.

Veja Também

add a note

User Contributed Notes 1 note

up
25
kmenard at wpi dot edu
22 years ago
ldap_unbind kills the link descriptor. So, if you want to rebind as another user, just bind again; don't unbind. Otherwise, you'll have to open up a new connection.
To Top