Lines Matching defs:homedir_ctx

1051                           struct sss_nss_homedir_ctx *homedir_ctx,
1056 homedir = expand_homedir_template(tmp_ctx, template, false, homedir_ctx);
1068 struct sss_nss_homedir_ctx *homedir_ctx;
1072 homedir_ctx= talloc_zero(global_talloc_context,
1074 assert_non_null(homedir_ctx);
1076 homedir_ctx->username = sss_create_internal_fqname(homedir_ctx,
1078 if (homedir_ctx->username == NULL) {
1079 talloc_free(homedir_ctx);
1083 homedir_ctx->uid = UID;
1084 homedir_ctx->original = ORIGINAL_HOME;
1085 homedir_ctx->domain = DOMAIN;
1086 homedir_ctx->flatname = FLATNAME;
1087 homedir_ctx->config_homedir_substr = HOMEDIR_SUBSTR;
1089 check_leaks_push(homedir_ctx);
1090 *state = homedir_ctx;
1096 struct sss_nss_homedir_ctx *homedir_ctx = talloc_get_type(*state,
1098 if (homedir_ctx == NULL) {
1103 assert_true(check_leaks_pop(homedir_ctx) == true);
1104 talloc_free(homedir_ctx);
1113 struct sss_nss_homedir_ctx *homedir_ctx;
1115 /* following format strings requires data in homedir_ctx */
1123 homedir_ctx = talloc_zero(tmp_ctx, struct sss_nss_homedir_ctx);
1124 assert_non_null(homedir_ctx);
1132 /* missing data in homedir_ctx */
1133 check_expanded_value(tmp_ctx, homedir_ctx, "%%", "%");
1134 check_expanded_value(tmp_ctx, homedir_ctx, "%o", "");
1137 check_expanded_value(tmp_ctx, homedir_ctx, format_strings[i], NULL);
1141 homedir_ctx->username = DUMMY;
1142 check_expanded_value(tmp_ctx, homedir_ctx, "%f", NULL);
1144 homedir_ctx->username = NULL;
1145 homedir_ctx->domain = DUMMY;
1146 check_expanded_value(tmp_ctx, homedir_ctx, "%f", NULL);
1149 check_expanded_value(tmp_ctx, homedir_ctx, "%x", NULL);
1152 check_expanded_value(tmp_ctx, homedir_ctx, "%", NULL);
1159 struct sss_nss_homedir_ctx *homedir_ctx = talloc_get_type(*state,
1167 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY, DUMMY);
1169 check_expanded_value(tmp_ctx, homedir_ctx, "%u", USERNAME);
1170 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%u", DUMMY USERNAME);
1171 check_expanded_value(tmp_ctx, homedir_ctx, "%u"DUMMY, USERNAME DUMMY);
1172 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%u"DUMMY2,
1175 check_expanded_value(tmp_ctx, homedir_ctx, "%U", STR(UID));
1176 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%U", DUMMY STR(UID));
1177 check_expanded_value(tmp_ctx, homedir_ctx, "%U"DUMMY, STR(UID) DUMMY);
1178 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%U"DUMMY2,
1181 check_expanded_value(tmp_ctx, homedir_ctx, "%d", DOMAIN);
1182 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%d", DUMMY DOMAIN);
1183 check_expanded_value(tmp_ctx, homedir_ctx, "%d"DUMMY, DOMAIN DUMMY);
1184 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%d"DUMMY2,
1187 check_expanded_value(tmp_ctx, homedir_ctx, "%f", USERNAME"@"DOMAIN);
1188 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%f",
1190 check_expanded_value(tmp_ctx, homedir_ctx, "%f"DUMMY,
1192 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%f"DUMMY2,
1195 check_expanded_value(tmp_ctx, homedir_ctx, "%o", ORIGINAL_HOME);
1196 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%o", DUMMY ORIGINAL_HOME);
1197 check_expanded_value(tmp_ctx, homedir_ctx, "%o"DUMMY, ORIGINAL_HOME DUMMY);
1198 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%o"DUMMY2,
1201 check_expanded_value(tmp_ctx, homedir_ctx, "%F", FLATNAME);
1202 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%F", DUMMY FLATNAME);
1203 check_expanded_value(tmp_ctx, homedir_ctx, "%F"DUMMY, FLATNAME DUMMY);
1204 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%F"DUMMY2,
1207 check_expanded_value(tmp_ctx, homedir_ctx, "%H", HOMEDIR_SUBSTR);
1208 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%H",
1210 check_expanded_value(tmp_ctx, homedir_ctx, "%H"DUMMY,
1212 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%H"DUMMY2,
1215 check_expanded_value(tmp_ctx, homedir_ctx, "%%", "%");
1216 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%%", DUMMY"%");
1217 check_expanded_value(tmp_ctx, homedir_ctx, "%%"DUMMY, "%"DUMMY);
1218 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%%"DUMMY2,
1221 check_expanded_value(tmp_ctx, homedir_ctx, "%l", FIRST_LETTER);
1222 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%l", DUMMY FIRST_LETTER);
1223 check_expanded_value(tmp_ctx, homedir_ctx, "%l"DUMMY, FIRST_LETTER DUMMY);
1224 check_expanded_value(tmp_ctx, homedir_ctx, DUMMY"%l"DUMMY2,
1228 check_expanded_value(tmp_ctx, homedir_ctx,