Lines Matching defs:cell

72 kafs_settoken_rxkad(const char *cell, struct ClearToken *ct,
98 * do *not* mark as primary cell
104 * follow with cell name
106 sizeof_x = strlen(cell) + 1;
107 memcpy(t, cell, sizeof_x);
173 /* Try to get a db-server for an AFS cell from a AFSDB record */
176 dns_find_cell(const char *cell, char *dbserver, size_t len)
180 r = dns_lookup(cell, "afsdb");
206 char cell[64];
213 while (fgets(cell, sizeof(cell), f)) {
215 t = cell + strlen(cell);
216 for (; t >= cell; t--)
219 if (cell[0] == '\0' || cell[0] == '#')
222 if(strcmp((*cells)[i], cell) == 0)
231 (*cells)[ind] = strdup(cell);
296 const char *cell, char **realm, int exact)
312 continue; /* Not a cell name line, try next line */
317 cmp = strcmp(buf + 1, cell);
319 cmp = strncmp(buf + 1, cell, strlen(cell));
323 * We found the cell name we're looking for.
345 /* Find the realm associated with cell. Do this by opening CellServDB
347 cell.
350 the cell it is serving is living in another realm.
357 const char *cell, char **realm)
362 ret = file_find_cell(data, cell, realm, 1);
365 if (dns_find_cell(cell, buf, sizeof(buf)) == 0) {
370 return file_find_cell(data, cell, realm, 0);
374 _kafs_try_get_cred(struct kafs_data *data, const char *user, const char *cell,
379 ret = (*data->get_cred)(data, user, cell, realm, uid, kt);
383 data->name, cell[0] == '\0' ? "" : "/",
384 cell, realm, ret);
395 const char *cell,
406 * the specified cell. The problem is that null-instance
412 * If there is a realm with the same name as the cell, it is most
415 * In most (maybe even all) cases the database servers of the cell
431 cell, realm_hint, uid, kt);
438 _kafs_foldup(CELL, cell);
441 * If cell == realm we don't need no cross-cell authentication.
448 /* Try afs.cell@REALM below. */
453 * REALM we still don't have to resort to cross-cell authentication.
454 * Try afs.cell@REALM.
457 cell, realm, uid, kt);
462 * fall back to cross-cell authentication.
464 * Try afs.cell@CELL.
470 cell, CELL, uid, kt);
474 * Perhaps the cell doesn't correspond to any realm?
476 * Try afs.cell@VL_REALM.
479 if (_kafs_realm_of_cell(data, cell, &vl_realm) == 0
483 cell, vl_realm, uid, kt);