Home
last modified time | relevance | path

Searched refs:ld (Results 1 – 25 of 462) sorted by relevance

12345678910>>...19

/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dunbind.c48 ldap_unbind( LDAP *ld ) in ldap_unbind() argument
58 ldap_unbind_s( LDAP *ld ) in ldap_unbind_s() argument
101 nsldapi_free_connection( ld, ld->ld_conns, serverctrls, in ldap_ld_free()
126 (void)ld->ld_cache_unbind( ld, 0, 0 ); in ldap_ld_free()
136 ld->ld_extdisposehandle_fn( ld, ld->ld_ext_session_arg ); in ldap_ld_free()
139 if ( ld->ld_error != NULL ) in ldap_ld_free()
143 if ( ld->ld_host != NULL ) in ldap_ld_free()
147 if ( ld->ld_filtd != NULL ) in ldap_ld_free()
151 if ( ld->ld_sbp != NULL ) in ldap_ld_free()
161 nsldapi_iostatus_free( ld ); in ldap_ld_free()
[all …]
H A Dsetoption.c43 (ld)->ld_options |= bit; \
45 (ld)->ld_options &= ~bit; \
98 if (ld == NULL) { in ldap_set_option()
167 ld->ld_defconn->lconn_version = ld->ld_version; in ldap_set_option()
172 rc = nsldapi_dup_controls(ld, &ld->ld_servercontrols, in ldap_set_option()
177 rc = nsldapi_dup_controls(ld, &ld->ld_clientcontrols, in ldap_set_option()
205 ld->ld_extclose_fn = in ldap_set_option()
209 ld->ld_extread_fn = in ldap_set_option()
211 ld->ld_extwrite_fn = in ldap_set_option()
213 ld->ld_extpoll_fn = in ldap_set_option()
[all …]
H A Dsbind.c62 if ( !NSLDAPI_VALID_LDAP_POINTER( ld )) { in ldap_simple_bind()
91 LDAP_MUTEX_LOCK( ld, LDAP_MSGID_LOCK ); in simple_bind_nolock()
92 msgid = ++ld->ld_msgid; in simple_bind_nolock()
100 if ( ld->ld_cache_on && ld->ld_cache_bind != NULL ) { in simple_bind_nolock()
107 rc = (ld->ld_cache_bind)( ld, msgid, LDAP_REQ_BIND, dn, &bv, in simple_bind_nolock()
216 LDAP_MUTEX_LOCK( ld, LDAP_CONN_LOCK ); in simple_bindifnot_s()
217 if ( NULL != ld->ld_defconn ) { in simple_bindifnot_s()
219 nsldapi_free_connection( ld, ld->ld_defconn, NULL, NULL, 1, 0 ); in simple_bindifnot_s()
220 ld->ld_defconn = NULL; in simple_bindifnot_s()
223 ld->ld_defconn->lconn_binddn = NULL; in simple_bindifnot_s()
[all …]
H A Dldap-int.h440 if ((ld)->ld_mutex_lock_fn != NULL && ld->ld_mutex != NULL) { \
445 (ld)->ld_mutex_lock_fn(ld->ld_mutex[lock]); \
450 (ld)->ld_mutex_lock_fn(ld->ld_mutex[lock]); \
455 if ((ld)->ld_mutex_lock_fn != NULL && ld->ld_mutex != NULL) { \
462 (ld)->ld_mutex_unlock_fn(ld->ld_mutex[lock]); \
466 ld->ld_mutex_unlock_fn(ld->ld_mutex[lock]); \
490 (((ld)->ld_sema_alloc_fn != NULL) ? (ld)->ld_sema_alloc_fn() : NULL)
538 #define LDAP_GET_LDERRNO( ld, m, s ) ldap_get_lderrno( ld, m, s ) argument
548 #define LDAP_IS_CLDAP( ld ) ( ld->ld_sbp->sb_naddr > 0 ) argument
566 #define NSLDAPI_LDAP_VERSION( ld ) ( (ld)->ld_defconn == NULL ? \ argument
[all …]
H A Dgetoption.c31 #define LDAP_GET_BITOPT( ld, bit ) \ argument
32 ((ld)->ld_options & bit ) != 0 ? 1 : 0
67 if ( ld != NULL ) { in ldap_get_option()
88 if ( ld == NULL ) { in ldap_get_option()
89 ld = &nsldapi_ld_defaults; in ldap_get_option()
97 if (ld != &nsldapi_ld_defaults) in ldap_get_option()
146 *((int *) optdata) = ld->ld_deref; in ldap_get_option()
158 *((int *) optdata) = ld->ld_version; in ldap_get_option()
167 ld->ld_servercontrols : ld->ld_clientcontrols ); in ldap_get_option()
181 if ( ld->ld_io_fns_ptr == NULL ) { in ldap_get_option()
[all …]
H A Drename.c62 LDAP *ld, in ldap_rename() argument
87 if ( !NSLDAPI_VALID_LDAP_POINTER( ld )) { in ldap_rename()
111 LDAP_MUTEX_LOCK( ld, LDAP_MSGID_LOCK ); in ldap_rename()
112 *msgidp = ++ld->ld_msgid; in ldap_rename()
116 if ( ld->ld_cache_on ) { in ldap_rename()
118 LDAP_MUTEX_LOCK( ld, LDAP_CACHE_LOCK ); in ldap_rename()
119 if ( (rc = (ld->ld_cache_modrdn)( ld, *msgidp, in ldap_rename()
126 LDAP_MUTEX_UNLOCK( ld, LDAP_CACHE_LOCK ); in ldap_rename()
129 LDAP_MUTEX_LOCK( ld, LDAP_CACHE_LOCK ); in ldap_rename()
130 if ( (rc = (ld->ld_cache_rename)( ld, *msgidp, in ldap_rename()
[all …]
H A Dresult.c84 LDAP *ld, in ldap_result() argument
295 if ( ld->ld_cache_on && ld->ld_cache_result != NULL ) {
298 rc = (ld->ld_cache_result)( ld, msgid, all, timeout, result );
352 nsldapi_dump_connection( ld, ld->ld_conns, 1 );
523 LDAP_SET_ERRNO( ld, 0 );
761 ld->ld_responses = new;
1131 rc = ld->ld_extselect_fn( ld->ld_ext_session_arg, 1, &readfds, 0,
1259 ld->ld_abandoned[i] = ld->ld_abandoned[i + 1];
1275 if ( ld->ld_sbp->sb_ber.ber_ptr >= ld->ld_sbp->sb_ber.ber_end ) {
1303 ld, msgid, result );
[all …]
H A Dabandon.c57 ldap_abandon( LDAP *ld, int msgid ) in ldap_abandon() argument
86 LDAP_MUTEX_LOCK( ld, LDAP_CONN_LOCK ); in ldap_abandon_ext()
87 LDAP_MUTEX_LOCK( ld, LDAP_REQ_LOCK ); in ldap_abandon_ext()
93 ldap_memcache_abandon( ld, msgid ); in ldap_abandon_ext()
139 if (ld->ld_requests != NULL) { in do_abandon()
201 if ( ld->ld_dbp->sb_naddr > 0 ) { in do_abandon()
203 ++ld->ld_msgid, ld->ld_cldapdn, in do_abandon()
224 sb = ld->ld_sbp; in do_abandon()
246 if ( ld->ld_abandoned == NULL ) { in do_abandon()
264 ld->ld_abandoned[i] = msgid; in do_abandon()
[all …]
H A Drequest.c187 lc = ld->ld_defconn; in nsldapi_send_server_request()
234 use_connection( ld, lc ); in nsldapi_send_server_request()
278 ld->ld_requests = lr; in nsldapi_send_server_request()
333 LDAP_SET_ERRNO( ld, 0 ); in nsldapi_ber_flush()
339 terrno = LDAP_GET_ERRNO( ld ); in nsldapi_ber_flush()
456 lc->lconn_next = ld->ld_conns; in nsldapi_new_connection()
457 ld->ld_conns = lc; in nsldapi_new_connection()
474 if (( lderr = (*ld->ld_rebind_fn)( ld, &binddn, &passwd, in nsldapi_new_connection()
487 ld->ld_defconn = lc; in nsldapi_new_connection()
514 (*ld->ld_rebind_fn)( ld, &binddn, &passwd, in nsldapi_new_connection()
[all …]
H A Ddelete.c47 ldap_delete( LDAP *ld, const char *dn ) in ldap_delete() argument
75 if ( !NSLDAPI_VALID_LDAP_POINTER( ld )) { in ldap_delete_ext()
88 LDAP_MUTEX_LOCK( ld, LDAP_MSGID_LOCK ); in ldap_delete_ext()
89 *msgidp = ++ld->ld_msgid; in ldap_delete_ext()
90 LDAP_MUTEX_UNLOCK( ld, LDAP_MSGID_LOCK ); in ldap_delete_ext()
93 if ( ld->ld_cache_on && ld->ld_cache_delete != NULL ) { in ldap_delete_ext()
94 LDAP_MUTEX_LOCK( ld, LDAP_CACHE_LOCK ); in ldap_delete_ext()
95 if ( (rc = (ld->ld_cache_delete)( ld, *msgidp, LDAP_REQ_DELETE, in ldap_delete_ext()
101 LDAP_MUTEX_UNLOCK( ld, LDAP_CACHE_LOCK ); in ldap_delete_ext()
133 ldap_delete_s( LDAP *ld, const char *dn ) in ldap_delete_s() argument
[all …]
H A Dbind.c67 if ( !NSLDAPI_VALID_LDAP_POINTER( ld )) { in ldap_bind()
109 LDAP_SET_LDERRNO( ld, err, NULL, NULL ); in ldap_bind_s()
120 if ( ld == NULL ) { in ldap_set_rebind_proc()
124 ld = &nsldapi_ld_defaults; in ldap_set_rebind_proc()
127 if ( NSLDAPI_VALID_LDAP_POINTER( ld )) { in ldap_set_rebind_proc()
129 ld->ld_rebind_fn = rebindproc; in ldap_set_rebind_proc()
130 ld->ld_rebind_arg = arg; in ldap_set_rebind_proc()
141 nsldapi_get_binddn( LDAP *ld ) in nsldapi_get_binddn() argument
147 LDAP_MUTEX_LOCK( ld, LDAP_CONN_LOCK ); in nsldapi_get_binddn()
149 ld->ld_defconn->lconn_status && ld->ld_defconn->lconn_bound ) { in nsldapi_get_binddn()
[all …]
H A Dadd.c101 if ( !NSLDAPI_VALID_LDAP_POINTER( ld )) { in ldap_add_ext()
113 LDAP_SET_LDERRNO( ld, lderr, NULL, NULL ); in ldap_add_ext()
121 LDAP_MUTEX_LOCK( ld, LDAP_MSGID_LOCK ); in ldap_add_ext()
122 *msgidp = ++ld->ld_msgid; in ldap_add_ext()
123 LDAP_MUTEX_UNLOCK( ld, LDAP_MSGID_LOCK ); in ldap_add_ext()
126 if ( ld->ld_cache_on && ld->ld_cache_add != NULL ) { in ldap_add_ext()
127 LDAP_MUTEX_LOCK( ld, LDAP_CACHE_LOCK ); in ldap_add_ext()
128 if ( (rc = (ld->ld_cache_add)( ld, *msgidp, LDAP_REQ_ADD, dn, in ldap_add_ext()
131 LDAP_MUTEX_UNLOCK( ld, LDAP_CACHE_LOCK ); in ldap_add_ext()
134 LDAP_MUTEX_UNLOCK( ld, LDAP_CACHE_LOCK ); in ldap_add_ext()
[all …]
H A Dopen.c423 LDAP *ld; in ldap_open() local
440 ( ld->ld_host == NULL ) ? "(null)" : ld->ld_host, 0, 0 ); in ldap_open()
442 return( ld ); in ldap_open()
459 LDAP *ld; in ldap_init() local
499 if ( ld->ld_extnewhandle_fn( ld, ld->ld_ext_session_arg ) in ldap_init()
522 if ( ld->ld_extread_fn != NULL || ld->ld_extwrite_fn != NULL ) { in ldap_init()
544 ld = NULL; in ldap_init()
556 return( ld ); in ldap_init()
564 if ( ld != &nsldapi_ld_defaults && ld->ld_mutex != NULL ) { in nsldapi_mutex_alloc_all()
566 ld->ld_mutex[i] = LDAP_MUTEX_ALLOC( ld ); in nsldapi_mutex_alloc_all()
[all …]
H A Dextendop.c38 LDAP *ld, in ldap_extended_operation() argument
70 LDAP_SET_LDERRNO( ld, rc, NULL, NULL ); in ldap_extended_operation()
77 LDAP_SET_LDERRNO( ld, rc, NULL, NULL ); in ldap_extended_operation()
81 LDAP_MUTEX_LOCK( ld, LDAP_MSGID_LOCK ); in ldap_extended_operation()
82 msgid = ++ld->ld_msgid; in ldap_extended_operation()
86 if ( ld->ld_cache_on && ld->ld_cache_extendedop != NULL ) { in ldap_extended_operation()
87 LDAP_MUTEX_LOCK( ld, LDAP_CACHE_LOCK ); in ldap_extended_operation()
88 if ( (rc = (ld->ld_cache_extendedop)( ld, msgid, in ldap_extended_operation()
142 LDAP *ld, in ldap_extended_operation_s() argument
181 LDAP *ld, in ldap_parse_extended_result() argument
[all …]
H A Dsaslbind.c47 LDAP *ld, in ldap_sasl_bind() argument
84 ldapversion = NSLDAPI_LDAP_VERSION( ld ); in ldap_sasl_bind()
92 LDAP_MUTEX_LOCK( ld, LDAP_MSGID_LOCK ); in ldap_sasl_bind()
93 msgid = ++ld->ld_msgid; in ldap_sasl_bind()
94 LDAP_MUTEX_UNLOCK( ld, LDAP_MSGID_LOCK ); in ldap_sasl_bind()
99 if ( ld->ld_cache_on && ld->ld_cache_bind != NULL ) { in ldap_sasl_bind()
100 LDAP_MUTEX_LOCK( ld, LDAP_CACHE_LOCK ); in ldap_sasl_bind()
101 if ( (rc = (ld->ld_cache_bind)( ld, msgid, LDAP_REQ_BIND, dn, in ldap_sasl_bind()
176 LDAP *ld, in ldap_sasl_bind_s() argument
216 LDAP *ld, in ldap_parse_sasl_bind_result() argument
[all …]
H A Dmodify.c101 if ( !NSLDAPI_VALID_LDAP_POINTER( ld )) { in ldap_modify_ext()
112 LDAP_SET_LDERRNO( ld, lderr, NULL, NULL ); in ldap_modify_ext()
119 LDAP_MUTEX_LOCK( ld, LDAP_MSGID_LOCK ); in ldap_modify_ext()
120 *msgidp = ++ld->ld_msgid; in ldap_modify_ext()
121 LDAP_MUTEX_UNLOCK( ld, LDAP_MSGID_LOCK ); in ldap_modify_ext()
124 if ( ld->ld_cache_on && ld->ld_cache_modify != NULL ) { in ldap_modify_ext()
125 LDAP_MUTEX_LOCK( ld, LDAP_CACHE_LOCK ); in ldap_modify_ext()
126 if ( (rc = (ld->ld_cache_modify)( ld, *msgidp, LDAP_REQ_MODIFY, in ldap_modify_ext()
129 LDAP_MUTEX_UNLOCK( ld, LDAP_CACHE_LOCK ); in ldap_modify_ext()
132 LDAP_MUTEX_UNLOCK( ld, LDAP_CACHE_LOCK ); in ldap_modify_ext()
[all …]
H A Dcompare.c90 if ( !NSLDAPI_VALID_LDAP_POINTER( ld )) { in ldap_compare_ext()
96 LDAP_SET_LDERRNO( ld, lderr, NULL, NULL ); in ldap_compare_ext()
104 LDAP_MUTEX_LOCK( ld, LDAP_MSGID_LOCK ); in ldap_compare_ext()
105 *msgidp = ++ld->ld_msgid; in ldap_compare_ext()
106 LDAP_MUTEX_UNLOCK( ld, LDAP_MSGID_LOCK ); in ldap_compare_ext()
109 if ( ld->ld_cache_on && ld->ld_cache_compare != NULL ) { in ldap_compare_ext()
110 LDAP_MUTEX_LOCK( ld, LDAP_CACHE_LOCK ); in ldap_compare_ext()
111 if ( (rc = (ld->ld_cache_compare)( ld, *msgidp, in ldap_compare_ext()
114 LDAP_MUTEX_UNLOCK( ld, LDAP_CACHE_LOCK ); in ldap_compare_ext()
117 LDAP_MUTEX_UNLOCK( ld, LDAP_CACHE_LOCK ); in ldap_compare_ext()
[all …]
H A Dufn.c85 LDAP *ld, in ldap_ufn_search_ctx() argument
181 LDAP_SET_LDERRNO( ld, err, in ldap_ufn_search_ctx()
191 LDAP_SET_LDERRNO( ld, err, in ldap_ufn_search_ctx()
264 if ( ld->ld_filtd == NULL ) { in ldap_ufn_search_ct()
293 if ( ld->ld_ufnprefix == NULL ) { in ldap_ufn_search_ct()
366 tv.tv_sec = ld->ld_timelimit; in ldap_ufn_search_s()
477 ldap_abandon( ld, msgid ); in ldap_ufn_expand()
510 if ( ld->ld_filtd != NULL ) in ldap_ufn_setfilter()
511 ldap_getfilter_free( ld->ld_filtd ); in ldap_ufn_setfilter()
520 if ( ld->ld_ufnprefix != NULL ) in ldap_ufn_setprefix()
[all …]
H A Dsasl.c149 LDAP *ld; in nsldapi_sasl_read() local
160 if (ld == NULL) { in nsldapi_sasl_read()
206 LDAP_SET_ERRNO(ld, EIO); in nsldapi_sasl_read()
319 LDAP *ld; in nsldapi_sasl_poll() local
326 if (ld == NULL) { in nsldapi_sasl_poll()
379 LDAP *ld; in nsldapi_sasl_close_socket() local
385 if (ld == NULL) { in nsldapi_sasl_close_socket()
389 ldap_set_option( ld, LDAP_X_OPT_EXTIO_FN_PTRS, &ld->ld_sasl_io_fns ); in nsldapi_sasl_close_socket()
576 if (ld == NULL) { in nsldapi_sasl_open()
585 host = ld->ld_defhost; in nsldapi_sasl_open()
[all …]
H A Dsearch.c88 LDAP *ld, in ldap_search() argument
116 LDAP *ld, in ldap_search_ext() argument
152 LDAP *ld, in nsldapi_search() argument
205 if ( ld->ld_cache_on && ld->ld_cache_search != NULL ) { in nsldapi_search()
207 if ( (rc = (ld->ld_cache_search)( ld, *msgidp, LDAP_REQ_SEARCH, in nsldapi_search()
270 LDAP *ld, in nsldapi_build_search_req() argument
333 ld->ld_cldapdn, LDAP_REQ_SEARCH, base, scope, ld->ld_deref, in nsldapi_build_search_req()
919 LDAP *ld, in ldap_search_st() argument
936 LDAP *ld, in ldap_search_s() argument
951 LDAP *ld, in ldap_search_ext_s() argument
[all …]
H A Dos-ip.c161 int namelen, LDAP *ld);
170 int namelen, LDAP *ld);
246 int salen, LDAP *ld) argument
672 ld);
798 iosp = ld->ld_iostatus;
850 iosp = ld->ld_iostatus;
901 iosp = ld->ld_iostatus;
1080 if ( ld == NULL ) {
1773 defcsip->csi_ld = ld;
1795 return( nsldapi_install_lber_extiofns( ld, ld->ld_sbp ));
[all …]
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_wrapper.c47 LDAP *ld = __s_api_getLDAPconn(flags); in _ns_ldap_abandon_ext() local
56 LDAP *ld = __s_api_getLDAPconn(flags); in _ns_ldap_abandon() local
58 return (ldap_abandon(ld, msgid)); in _ns_ldap_abandon()
69 LDAP *ld = __s_api_getLDAPconn(flags); in _ns_ldap_add_ext() local
71 return (ldap_add_ext(ld, dn, attrs, in _ns_ldap_add_ext()
80 LDAP *ld = __s_api_getLDAPconn(flags); in _ns_ldap_add_ext_s() local
91 return (ldap_add(ld, dn, attrs)); in _ns_ldap_add()
100 return (ldap_add_s(ld, dn, attrs)); in _ns_ldap_add_s()
175 return (ldap_delete(ld, dn)); in _ns_ldap_delete()
184 return (ldap_delete_s(ld, dn)); in _ns_ldap_delete_s()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/prldap/
H A Dldappr-public.c54 LDAP *ld; in prldap_init() local
59 ldap_unbind( ld ); in prldap_init()
60 ld = NULL; in prldap_init()
64 return( ld ); in prldap_init()
90 return( ldap_get_lderrno( ld, NULL, NULL )); in prldap_install_routines()
116 if ( NULL != ld ) { in prldap_set_session_option()
158 if ( NULL != ld ) { in prldap_get_session_option()
199 if ( NULL != ld ) { in prldap_set_session_info()
235 if ( NULL != ld ) { in prldap_get_session_info()
328 if ( NULL != ld ) { in prldap_get_default_socket_info()
[all …]
/illumos-gate/usr/src/cmd/ldap/common/
H A Dldaptest.c258 LDAP *ld; in main() local
366 ld = ldap_init( host, port ); in main()
369 if ( ld == NULL ) { in main()
571 ld->ld_msgid = atoi( line ); in main()
628 cldap_close( ld ); in main()
631 ldap_unbind( ld ); in main()
658 handle_result( ld, res ); in main()
709 handle_result( ld, res ); in main()
778 handle_result( ld, res ); in main()
888 ld->ld_options = 0; in main()
[all …]
/illumos-gate/usr/src/head/
H A Dldap.h462 int ldap_sasl_cram_md5_bind_s(LDAP *ld, char *dn,
481 int LDAP_CALL ldap_unbind(LDAP *ld);
482 int LDAP_CALL ldap_unbind_s(LDAP *ld);
487 int LDAP_CALL ldap_abandon(LDAP *ld, int msgid);
615 int LDAP_CALL ldap_extended_operation(LDAP *ld,
618 int LDAP_CALL ldap_extended_operation_s(LDAP *ld,
675 int LDAP_CALL ldap_create_sort_control(LDAP *ld,
678 int LDAP_CALL ldap_parse_sort_control(LDAP *ld,
816 void ldap_set_string_translators(LDAP *ld,
820 int ldap_translate_to_t61(LDAP *ld, char **bufp,
[all …]

12345678910>>...19