Home | History | Annotate | Download | only in racoon

Lines Matching refs:xauth_ldap_config

116 struct xauth_ldap_config xauth_ldap_config;
728 xauth_ldap_config.pver = 3;
729 xauth_ldap_config.host = NULL;
730 xauth_ldap_config.port = LDAP_PORT;
731 xauth_ldap_config.base = NULL;
732 xauth_ldap_config.subtree = 0;
733 xauth_ldap_config.bind_dn = NULL;
734 xauth_ldap_config.bind_pw = NULL;
735 xauth_ldap_config.auth_type = LDAP_AUTH_SIMPLE;
736 xauth_ldap_config.attr_user = NULL;
737 xauth_ldap_config.attr_addr = NULL;
738 xauth_ldap_config.attr_mask = NULL;
739 xauth_ldap_config.attr_group = NULL;
740 xauth_ldap_config.attr_member = NULL;
744 xauth_ldap_config.host = vmalloc(tmplen);
745 if (xauth_ldap_config.host == NULL)
747 memcpy(xauth_ldap_config.host->v, LDAP_DFLT_HOST, tmplen);
751 xauth_ldap_config.attr_user = vmalloc(tmplen);
752 if (xauth_ldap_config.attr_user == NULL)
754 memcpy(xauth_ldap_config.attr_user->v, LDAP_DFLT_USER, tmplen);
758 xauth_ldap_config.attr_addr = vmalloc(tmplen);
759 if (xauth_ldap_config.attr_addr == NULL)
761 memcpy(xauth_ldap_config.attr_addr->v, LDAP_DFLT_ADDR, tmplen);
765 xauth_ldap_config.attr_mask = vmalloc(tmplen);
766 if (xauth_ldap_config.attr_mask == NULL)
768 memcpy(xauth_ldap_config.attr_mask->v, LDAP_DFLT_MASK, tmplen);
772 xauth_ldap_config.attr_group = vmalloc(tmplen);
773 if (xauth_ldap_config.attr_group == NULL)
775 memcpy(xauth_ldap_config.attr_group->v, LDAP_DFLT_GROUP, tmplen);
779 xauth_ldap_config.attr_member = vmalloc(tmplen);
780 if (xauth_ldap_config.attr_member == NULL)
782 memcpy(xauth_ldap_config.attr_member->v, LDAP_DFLT_MEMBER, tmplen);
821 tmplen += strlen(xauth_ldap_config.host->v);
829 xauth_ldap_config.host->v,
830 xauth_ldap_config.port );
843 &xauth_ldap_config.pver);
851 if ((xauth_ldap_config.bind_dn != NULL)&&
852 (xauth_ldap_config.bind_pw != NULL))
854 cred.bv_val = xauth_ldap_config.bind_pw->v;
857 xauth_ldap_config.bind_dn->v, NULL, &cred,
875 tmplen = strlen(xauth_ldap_config.attr_user->v);
886 xauth_ldap_config.attr_user->v, usr);
889 tmplen = strlen(xauth_ldap_config.attr_addr->v) + 1;
891 tmplen = strlen(xauth_ldap_config.attr_mask->v) + 1;
898 strcpy(atlist[0],xauth_ldap_config.attr_addr->v);
899 strcpy(atlist[1],xauth_ldap_config.attr_mask->v);
902 if (xauth_ldap_config.base != NULL)
903 basedn = xauth_ldap_config.base->v;
904 if (xauth_ldap_config.subtree)
951 bv = ldap_get_values_len(ld, le, xauth_ldap_config.attr_addr->v);
971 bv = ldap_get_values_len(ld, le, xauth_ldap_config.attr_mask->v);
1049 tmplen += strlen(xauth_ldap_config.host->v);
1057 xauth_ldap_config.host->v,
1058 xauth_ldap_config.port );
1071 &xauth_ldap_config.pver);
1079 if ((xauth_ldap_config.bind_dn != NULL)&&
1080 (xauth_ldap_config.bind_pw != NULL))
1082 cred.bv_val = xauth_ldap_config.bind_pw->v;
1085 xauth_ldap_config.bind_dn->v, NULL, &cred,
1104 tmplen += strlen(xauth_ldap_config.attr_group->v);
1106 tmplen += strlen(xauth_ldap_config.attr_member->v);
1115 xauth_ldap_config.attr_group->v, grp,
1116 xauth_ldap_config.attr_member->v, udn);
1119 if (xauth_ldap_config.base != NULL)
1120 basedn = xauth_ldap_config.base->v;
1121 if (xauth_ldap_config.subtree)