Home | History | Annotate | Download | only in kafs

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);
144 /* Try to get a db-server for an AFS cell from a AFSDB record */
147 dns_find_cell(const char *cell, char *dbserver, size_t len)
151 r = rk_dns_lookup(cell, "afsdb");
177 char cell[64];
184 while (fgets(cell, sizeof(cell), f)) {
186 t = cell + strlen(cell);
187 for (; t >= cell; t--)
190 if (cell[0] == '\0' || cell[0] == '#')
193 if(strcmp((*cells)[i], cell) == 0)
202 (*cells)[ind] = strdup(cell);
267 const char *cell, char **realm, int exact)
283 continue; /* Not a cell name line, try next line */
288 cmp = strcmp(buf + 1, cell);
290 cmp = strncmp(buf + 1, cell, strlen(cell));
294 * We found the cell name we're looking for.
316 /* Find the realm associated with cell. Do this by opening CellServDB
318 cell.
321 the cell it is serving is living in another realm.
328 const char *cell, char **realm)
333 ret = file_find_cell(data, cell, realm, 1);
336 if (dns_find_cell(cell, buf, sizeof(buf)) == 0) {
341 return file_find_cell(data, cell, realm, 0);
345 _kafs_try_get_cred(struct kafs_data *data, const char *user, const char *cell,
350 ret = (*data->get_cred)(data, user, cell, realm, uid, kt);
357 data->name, cell ? "/" : "",
358 cell ? cell : "", realm, estr ? estr : "unknown", ret);
375 const char *cell,
383 char CELL[64];
386 * the specified cell. The problem is that null-instance
392 * If there is a realm with the same name as the cell, it is most
395 * In most (maybe even all) cases the database servers of the cell
411 cell, realm_hint, uid, kt);
418 _kafs_foldup(CELL, cell);
422 * REALM we still don't have to resort to cross-cell authentication.
423 * Try afs.cell@REALM.
426 cell, realm, uid, kt);
430 * If cell == realm we don't need no cross-cell authentication.
433 if (strcmp(CELL, realm) == 0) {
441 * fall back to cross-cell authentication.
442 * Try afs@CELL.
443 * Try afs.cell@CELL.
446 NULL, CELL, uid, kt);
449 cell, CELL, uid, kt);
453 * Perhaps the cell doesn't correspond to any realm?
455 * Try afs.cell@VL_REALM.
458 if (_kafs_realm_of_cell(data, cell, &vl_realm) == 0
460 && strcmp(vl_realm, CELL) != 0) {
462 cell, vl_realm, uid, kt);