Lines Matching refs:ld
49 ldap_bind( LDAP *ld, const char *dn, const char *passwd, int authmethod ) in ldap_bind() argument
65 if ( !NSLDAPI_VALID_LDAP_POINTER( ld )) { in ldap_bind()
71 return( ldap_simple_bind( ld, dn, passwd ) ); in ldap_bind()
74 LDAP_SET_LDERRNO( ld, LDAP_AUTH_UNKNOWN, NULL, NULL ); in ldap_bind()
95 ldap_bind_s( LDAP *ld, const char *dn, const char *passwd, int authmethod ) in ldap_bind_s() argument
103 return( ldap_simple_bind_s( ld, dn, passwd ) ); in ldap_bind_s()
107 LDAP_SET_LDERRNO( ld, err, NULL, NULL ); in ldap_bind_s()
115 ldap_set_rebind_proc( LDAP *ld, LDAP_REBINDPROC_CALLBACK *rebindproc, in ldap_set_rebind_proc() argument
118 if ( ld == NULL ) { in ldap_set_rebind_proc()
122 ld = &nsldapi_ld_defaults; in ldap_set_rebind_proc()
125 if ( NSLDAPI_VALID_LDAP_POINTER( ld )) { in ldap_set_rebind_proc()
126 LDAP_MUTEX_LOCK( ld, LDAP_OPTION_LOCK ); in ldap_set_rebind_proc()
127 ld->ld_rebind_fn = rebindproc; in ldap_set_rebind_proc()
128 ld->ld_rebind_arg = arg; in ldap_set_rebind_proc()
129 LDAP_MUTEX_UNLOCK( ld, LDAP_OPTION_LOCK ); in ldap_set_rebind_proc()
139 nsldapi_get_binddn( LDAP *ld ) in nsldapi_get_binddn() argument
145 LDAP_MUTEX_LOCK( ld, LDAP_CONN_LOCK ); in nsldapi_get_binddn()
146 if ( NULL != ld->ld_defconn && LDAP_CONNST_CONNECTED == in nsldapi_get_binddn()
147 ld->ld_defconn->lconn_status && ld->ld_defconn->lconn_bound ) { in nsldapi_get_binddn()
148 if (( binddn = ld->ld_defconn->lconn_binddn ) == NULL ) { in nsldapi_get_binddn()
152 LDAP_MUTEX_UNLOCK( ld, LDAP_CONN_LOCK ); in nsldapi_get_binddn()