C language function:ldap_unbind_s sample codes

Search sample code in the internet.It is the result.


TITLE : Re: Getting error 'Decoding error' calling LDAP API ldap_get_values() -- RPG400-L
* ldap_unbind() and ldap_unbind_s() are both synch, and do.......
http://archive.midrange.com/rpg400-l/200206/msg00503.html



int ldap_unbind_s(LDAP *ld);.......
http://docs.oracle.com/cd/E19253-01/816-5170/6mbb5ese4/index.html

The ldap_unbind() call is used to unbind from a directory, to terminate the current association, and to free the resources contained in the ld structure. Once the function is called, the connection to the LDAP server is closed and the ld structure is invalid. The ldap_unbind_s() and ldap_unbind() calls are identical and synchronous in nature........
http://docs.oracle.com/cd/E19253-01/816-5170/6mbb5ese4/index.html

The ldap_unbind_ext() function is used to unbind from a directory, to terminate the current association, and to free the resources contained in the LDAP structure. Unlike ldap_unbind() and ldap_unbind_s(), both server and client controls can be explicitly included with ldap_unbind_ext() requests. No server response is made to an unbind request and responses should not be expected from server controls included with unbind requests........
http://docs.oracle.com/cd/E19253-01/816-5170/6mbb5ese4/index.html
TITLE : Chapter 7 Adding, Modifying and Deleting Entries
ldap_unbind_s( ld );.......
http://docs.oracle.com/cd/E19957-01/817-6707/addmod.html
TITLE : freepascal/jwawinldap.pas at master graemeg/freepascal GitHub
function ldap_unbind_s(ld: PLDAP): ULONG; cdecl; // calls ldap_unbind.......
http://github.com/graemeg/freepascal/blob/master/packages/winunits-jedi/src/jwawinldap.pas
TITLE : ldap_sasl_bind_s(3): LDAP bind routines - Linux man page
int ldap_unbind_s(LDAP *ld);.......
http://linux.die.net/man/3/ldap_sasl_bind_s
TITLE : ldap_sasl_bind_s(3): LDAP bind routines - Linux man page
The ldap_unbind() call is used to unbind from the directory, terminate the current association, and free the resources contained in the ld structure. Once it is called, the connection to the LDAP server is closed, and the ld structure is invalid. The ldap_unbind_s() call is just another name for ldap_unbind(); both of these calls are synchronous in nature........
http://linux.die.net/man/3/ldap_sasl_bind_s
search Google

https://www.google.com/#q=ldap_unbind_s