Lines Matching defs:domain
59 * Returns 'map,domain.'
62 getFullMapName(char *map, char *domain) {
65 if (map == 0 || domain == 0) {
69 scat(myself, F, domain, "."));
251 int *nv, char *domain, bool_t readonly, int *statP) {
271 if (addCol2RuleValue(vt_string, N2LDOMAIN, domain, strlen(domain),
410 domain, statP);
492 * ("(%s,%s,%s)", host, user, domain),
497 * (i.e host, user, domain, group)
510 __nis_rule_value_t *trv, int numVals, char *domain) {
547 domain, &statP);
649 char *domain) {
668 if (addCol2RuleValue(vt_string, N2LDOMAIN, domain, strlen(domain),
779 statP = addSplitFieldValues(t, rvq, rv, count, domain);
940 * Get the mapping structure corresponding to `map,domain.'
943 mappingFromMap(char *map, char *domain, int *statP) {
950 /* Construct map,domain. */
951 if ((mapPath = getFullMapName(map, domain)) == 0) {
1011 singleReadFromDIT(char *map, char *domain, datum *key, datum *value,
1024 if (!map || !domain || !key || !value) {
1031 if ((t = mappingFromMap(map, domain, statP)) == 0) {
1033 * No problem. We don't handle this map and domain. Maybe it's
1046 if ((str = getFullMapName(map, domain)) == 0) {
1072 if ((rv_request = datumToRuleValue(key, 0, t, 0, domain, TRUE,
1127 domain);
1214 singleWriteToDIT(char *map, char *domain, datum *key, datum *value,
1225 if (!map || !domain || !key || !value) {
1236 if ((t = mappingFromMap(map, domain, &statP)) == 0) {
1238 * No problem. We don't handle this map and domain. Maybe it's
1255 if ((str = getFullMapName(map, domain)) == 0) {
1293 if ((rv = datumToRuleValue(key, value, t, &nv, domain, FALSE,
1498 { "dc", "objectclass=domain"},
1499 { "domaincomponent", "objectclass=domain"},
1500 { "0.9.2342.19200300.100.1.25", "objectclass=domain"},
1594 * Case 1: Both 'domain' and 'dn' are non-NULL
1596 * Case 2: Only 'domain' is non-NULL
1603 * Case 4: Both 'domain' and 'dn' are NULL
1610 makeNISObject(char *domain, char *dn) {
1617 if (!dn && !domain)
1621 * If only 'domain' name is provided, then
1629 if (strcasecmp(domain, ypDomains.domainLabels[i])
1644 * If 'domain' is given, then check if the 'dn'
1645 * has already been set up as a nis domain object.
1648 if (domain) {
1650 * Check to see if the nis domain object has
1668 * Yes, nis domain object found. Check
1669 * to see if the domain names match.
1673 if (strcasecmp(val, domain) == 0) {
1680 "contains a nis domain name "
1681 "(%s). The domain name (%s) "
1683 myself, dn, val, domain);
1691 * is not a nis domain object yet.
1700 domain, rv) == -1) {
1713 "nis domain object",
1721 "a nis domain object: "
1748 * the DIT, we should be able to make it a nis domain
1752 * to create them and then add the nis domain object.
1754 if (addNISObject(domain, dn, &add_rc) == SUCCESS)
1764 if (addNISObject(domain, dn, NULL) == FAILURE)
1871 * Case 2: 'domain' is non-NULL
1873 * Case 3: 'domain' is NULL
1884 addNISObject(char *domain, char *dn, int *ldap_rc) {
1973 if (domain) {
1974 if (addSAttr2RuleValue("nisDomain", domain, rv) == -1) {