Home | History | Annotate | Download | only in libldap

Lines Matching defs:gopts

171 	struct ldapoptions *gopts,
193 LDAP_BOOL_SET(gopts, attrs[i].offset);
196 LDAP_BOOL_CLR(gopts, attrs[i].offset);
204 p = &((char *) gopts)[attrs[i].offset];
219 p = &((char *) gopts)[attrs[i].offset];
227 p = &((char *) gopts)[attrs[i].offset];
236 ldap_int_sasl_config( gopts, attrs[i].offset, opt );
241 ldap_int_gssapi_config( gopts, attrs[i].offset, opt );
286 struct ldapoptions *gopts;
290 gopts = LDAP_INT_GLOBAL_OPT();
291 if (NULL == gopts) {
295 if ( gopts->ldo_valid != LDAP_INITIALIZED ) {
296 ldap_int_initialize(gopts, NULL);
297 if ( gopts->ldo_valid != LDAP_INITIALIZED )
301 return ldap_int_conf_option( gopts, cmd, opt, userconf );
312 struct ldapoptions *gopts;
314 if ((gopts = LDAP_INT_GLOBAL_OPT()) == NULL) {
369 ldap_int_conf_option( gopts, cmd, opt, userconf );
421 struct ldapoptions *gopts,
452 LDAP_BOOL_SET(gopts, attrs[i].offset);
455 LDAP_BOOL_CLR(gopts, attrs[i].offset);
460 p = &((char *) gopts)[attrs[i].offset];
472 p = &((char *) gopts)[attrs[i].offset];
480 p = &((char *) gopts)[attrs[i].offset];
493 ldap_int_sasl_config( gopts, attrs[i].offset, value );
498 ldap_int_gssapi_config( gopts, attrs[i].offset, value );
542 struct ldapoptions *gopts = LDAP_INT_GLOBAL_OPT();
544 if ( gopts == NULL )
547 gopts->ldo_valid = LDAP_UNINITIALIZED;
549 if ( gopts->ldo_defludp ) {
550 ldap_free_urllist( gopts->ldo_defludp );
551 gopts->ldo_defludp = NULL;
554 if ( gopts->ldo_local_ip_addrs.local_ip_addrs ) {
555 LDAP_FREE( gopts->ldo_local_ip_addrs.local_ip_addrs );
556 gopts->ldo_local_ip_addrs.local_ip_addrs = NULL;
570 if ( gopts->ldo_def_sasl_authcid ) {
571 LDAP_FREE( gopts->ldo_def_sasl_authcid );
572 gopts->ldo_def_sasl_authcid = NULL;
576 ldap_int_tls_destroy( gopts );
583 void ldap_int_initialize_global_options( struct ldapoptions *gopts, int *dbglvl )
586 gopts->ldo_debug = *dbglvl;
588 gopts->ldo_debug = 0;
590 gopts->ldo_version = LDAP_VERSION2;
591 gopts->ldo_deref = LDAP_DEREF_NEVER;
592 gopts->ldo_timelimit = LDAP_NO_LIMIT;
593 gopts->ldo_sizelimit = LDAP_NO_LIMIT;
595 gopts->ldo_tm_api.tv_sec = -1;
596 gopts->ldo_tm_net.tv_sec = -1;
598 memset( &gopts->ldo_local_ip_addrs, 0,
599 sizeof( gopts->ldo_local_ip_addrs ) );
603 ldap_url_parselist(&gopts->ldo_defludp, "ldap://localhost/");
604 gopts->ldo_defport = LDAP_PORT;
612 gopts->ldo_refhoplimit = LDAP_DEFAULT_REFHOPLIMIT;
613 gopts->ldo_rebind_proc = NULL;
614 gopts->ldo_rebind_params = NULL;
616 LDAP_BOOL_ZERO(gopts);
618 LDAP_BOOL_SET(gopts, LDAP_BOOL_REFERRALS);
621 gopts->ldo_peer = NULL;
622 gopts->ldo_cldapdn = NULL;
623 gopts->ldo_is_udp = 0;
627 gopts->ldo_def_sasl_mech = NULL;
628 gopts->ldo_def_sasl_realm = NULL;
629 gopts->ldo_def_sasl_authcid = NULL;
630 gopts->ldo_def_sasl_authzid = NULL;
632 memset( &gopts->ldo_sasl_secprops,
633 '\0', sizeof(gopts->ldo_sasl_secprops) );
635 gopts->ldo_sasl_secprops.max_ssf = INT_MAX;
636 gopts->ldo_sasl_secprops.maxbufsize = SASL_MAX_BUFF_SIZE;
637 gopts->ldo_sasl_secprops.security_flags =
642 gopts->ldo_tls_connect_cb = NULL;
643 gopts->ldo_tls_connect_arg = NULL;
644 gopts->ldo_tls_require_cert = LDAP_OPT_X_TLS_DEMAND;
645 gopts->ldo_tls_require_san = LDAP_OPT_X_TLS_ALLOW;
647 gopts->ldo_keepalive_probes = 0;
648 gopts->ldo_keepalive_interval = 0;
649 gopts->ldo_keepalive_idle = 0;
651 gopts->ldo_tcp_user_timeout = 0;
654 ldap_pvt_thread_mutex_init( &gopts->ldo_mutex );
656 gopts->ldo_valid = LDAP_INITIALIZED;
668 void ldap_int_initialize( struct ldapoptions *gopts, int *dbglvl )
676 if ( gopts->ldo_valid == LDAP_INITIALIZED ) {
743 ldap_int_initialize_global_options(gopts, dbglvl);
764 gopts->ldo_def_sasl_authcid = LDAP_STRDUP( user );
804 openldap_ldap_init_w_env(gopts, NULL);