Home | History | Annotate | Download | only in racoon

Lines Matching refs:xauth_ldap_config

116 struct xauth_ldap_config xauth_ldap_config;
731 xauth_ldap_config.pver = 3;
732 xauth_ldap_config.host = NULL;
733 xauth_ldap_config.port = LDAP_PORT;
734 xauth_ldap_config.base = NULL;
735 xauth_ldap_config.subtree = 0;
736 xauth_ldap_config.bind_dn = NULL;
737 xauth_ldap_config.bind_pw = NULL;
738 xauth_ldap_config.auth_type = LDAP_AUTH_SIMPLE;
739 xauth_ldap_config.attr_user = NULL;
740 xauth_ldap_config.attr_addr = NULL;
741 xauth_ldap_config.attr_mask = NULL;
742 xauth_ldap_config.attr_group = NULL;
743 xauth_ldap_config.attr_member = NULL;
747 xauth_ldap_config.host = vmalloc(tmplen);
748 if (xauth_ldap_config.host == NULL)
750 memcpy(xauth_ldap_config.host->v, LDAP_DFLT_HOST, tmplen);
754 xauth_ldap_config.attr_user = vmalloc(tmplen);
755 if (xauth_ldap_config.attr_user == NULL)
757 memcpy(xauth_ldap_config.attr_user->v, LDAP_DFLT_USER, tmplen);
761 xauth_ldap_config.attr_addr = vmalloc(tmplen);
762 if (xauth_ldap_config.attr_addr == NULL)
764 memcpy(xauth_ldap_config.attr_addr->v, LDAP_DFLT_ADDR, tmplen);
768 xauth_ldap_config.attr_mask = vmalloc(tmplen);
769 if (xauth_ldap_config.attr_mask == NULL)
771 memcpy(xauth_ldap_config.attr_mask->v, LDAP_DFLT_MASK, tmplen);
775 xauth_ldap_config.attr_group = vmalloc(tmplen);
776 if (xauth_ldap_config.attr_group == NULL)
778 memcpy(xauth_ldap_config.attr_group->v, LDAP_DFLT_GROUP, tmplen);
782 xauth_ldap_config.attr_member = vmalloc(tmplen);
783 if (xauth_ldap_config.attr_member == NULL)
785 memcpy(xauth_ldap_config.attr_member->v, LDAP_DFLT_MEMBER, tmplen);
824 tmplen += strlen(xauth_ldap_config.host->v);
832 xauth_ldap_config.host->v,
833 xauth_ldap_config.port );
846 &xauth_ldap_config.pver);
854 if ((xauth_ldap_config.bind_dn != NULL)&&
855 (xauth_ldap_config.bind_pw != NULL))
857 cred.bv_val = xauth_ldap_config.bind_pw->v;
860 xauth_ldap_config.bind_dn->v, NULL, &cred,
878 tmplen = strlen(xauth_ldap_config.attr_user->v);
889 xauth_ldap_config.attr_user->v, usr);
892 tmplen = strlen(xauth_ldap_config.attr_addr->v) + 1;
894 tmplen = strlen(xauth_ldap_config.attr_mask->v) + 1;
901 strcpy(atlist[0],xauth_ldap_config.attr_addr->v);
902 strcpy(atlist[1],xauth_ldap_config.attr_mask->v);
905 if (xauth_ldap_config.base != NULL)
906 basedn = xauth_ldap_config.base->v;
907 if (xauth_ldap_config.subtree)
954 bv = ldap_get_values_len(ld, le, xauth_ldap_config.attr_addr->v);
974 bv = ldap_get_values_len(ld, le, xauth_ldap_config.attr_mask->v);
1052 tmplen += strlen(xauth_ldap_config.host->v);
1060 xauth_ldap_config.host->v,
1061 xauth_ldap_config.port );
1074 &xauth_ldap_config.pver);
1082 if ((xauth_ldap_config.bind_dn != NULL)&&
1083 (xauth_ldap_config.bind_pw != NULL))
1085 cred.bv_val = xauth_ldap_config.bind_pw->v;
1088 xauth_ldap_config.bind_dn->v, NULL, &cred,
1107 tmplen += strlen(xauth_ldap_config.attr_group->v);
1109 tmplen += strlen(xauth_ldap_config.attr_member->v);
1118 xauth_ldap_config.attr_group->v, grp,
1119 xauth_ldap_config.attr_member->v, udn);
1122 if (xauth_ldap_config.base != NULL)
1123 basedn = xauth_ldap_config.base->v;
1124 if (xauth_ldap_config.subtree)