Lines Matching defs:NULL
45 {NULL, (auth_method_t)NO_VALUE_SET, (tls_method_t)NO_VALUE_SET, NULL,
46 NULL, NULL, NULL, NULL, (follow_referral_t)NO_VALUE_SET};
49 __nis_table_mapping_t *ldapTableMapping = NULL;
56 const char *warn_file = NULL;
59 const char *command_line_source = NULL;
60 const char *file_source = NULL;
61 const char *ldap_source = NULL;
64 const char *const *cmdline_config = NULL;
115 = {NULL, NULL, (auth_method_t)NO_VALUE_SET,
116 (tls_method_t)NO_VALUE_SET, NULL,
117 NULL, NULL};
124 report_info("Getting LDAP configuration", NULL);
131 if (cmdline_options != NULL) {
144 if (config_file == NULL) {
151 if (rc == 0 && config_file != NULL) {
160 warn_file = NULL;
161 cmdline_config = NULL;
163 if (rc == 0 && (config_info.config_dn != NULL) &&
197 report_info("LDAP configuration complete", NULL);
218 if ((defp = defopen_r(YP_ETCCONFFILE)) != NULL) {
221 report_info("default configuration values: ", NULL);
230 while ((attr = ldap_config_attributes[i++]) != NULL) {
234 "Static buffer attr_buf overflow", NULL);
239 if ((attr_val = defread_r(attr_buf, defp)) == NULL)
245 report_error(attr, NULL);
284 file_source = NULL;
375 char *attr_val = NULL;
380 report_error(config_file, NULL);
392 len = attr_val == NULL ? 0 : strlen(attr_val);
414 report_error(attr_val == NULL ?
422 attr_val = NULL;
428 report_error(_key_val, NULL);
432 file_source = NULL;
461 *attr_val = NULL;
493 if (attribute_value == NULL) {
535 LDAP *ld = NULL;
547 if (ld == NULL) {
549 report_error(strerror(errno), NULL);
550 return (NULL);
554 config_info->tls_cert_db, NULL)) < 0) {
556 report_error(ldapssl_err2string(errnum), NULL);
557 return (NULL);
560 if (ld == NULL) {
562 report_error(strerror(errno), NULL);
563 return (NULL);
590 config_info->proxy_dn, &cred, NULL, NULL);
595 config_info->proxy_dn, &cred, NULL, NULL);
597 errnum = ldap_simple_bind_s(ld, NULL, NULL);
609 NULL);
622 return (NULL);
655 BerElement *ber = NULL;
667 if (e != NULL) {
668 for (attr = ldap_first_attribute(ld, e, &ber); attr != NULL;
674 report_error(attr, NULL);
677 if ((vals = ldap_get_values(ld, e, attr)) != NULL) {
737 if (ber != NULL)
770 LDAPURLDesc *ludpp = NULL;
772 LDAP *ld = NULL;
774 LDAPMessage *resultMsg = NULL;
794 ludpp->lud_port, config_info)) == NULL) {
817 ldap_source = NULL;
819 if (resultMsg != NULL)
849 char **referralsp = NULL;
853 rc = ldap_parse_result(ld, resultMsg, &errCode, NULL, NULL, &referralsp,
854 NULL, 0);
861 for (i = 0; referralsp[i] != NULL; i++) {
905 LDAP *ld = NULL;
908 LDAPMessage *resultMsg = NULL;
912 config_info->proxy_dn == NULL)
917 else if ((config_info->default_servers == NULL) ||
921 report_error(NULL, NULL);
928 (config_info->tls_cert_db == NULL ||
931 report_error(NULL, NULL);
941 get_attribute_list(proxy_info, nis_config, NULL, table_info,
945 config_info)) == NULL)
967 ldap_source = NULL;
969 if (resultMsg != NULL)
983 if (cmdline_options == NULL)
986 while (*cmdline_options != NULL) {
993 return (*cmdline_options != NULL);
1000 * been gotten. If config_info is NULL, the associated parameters
1022 if (config_info != NULL) {
1024 if (config_info->config_dn == NULL)
1026 if (config_info->default_servers == NULL)
1034 if (config_info->proxy_dn == NULL)
1036 if (config_info->proxy_passwd == NULL)
1038 if (config_info->tls_cert_db == NULL)
1059 if (proxy_info->default_servers == NULL)
1065 if (proxy_info->tls_cert_db == NULL)
1067 if (proxy_info->default_search_base == NULL)
1069 if (proxy_info->proxy_dn == NULL)
1071 if (proxy_info->proxy_passwd == NULL)
1073 if (proxy_info->default_nis_domain == NULL)
1171 attributes[n_attrs++] = NULL;