• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/auth/

Lines Matching defs:mem_ctx

30 static struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx,
527 static auth_serversupplied_info *make_server_info(TALLOC_CTX *mem_ctx)
531 result = TALLOC_ZERO_P(mem_ctx, auth_serversupplied_info);
833 static struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx,
846 if (!(result = TALLOC_ZERO_P(mem_ctx, NT_USER_TOKEN))) {
984 TALLOC_CTX *mem_ctx;
989 mem_ctx = talloc_new(NULL);
990 if (mem_ctx == NULL) {
1022 TALLOC_FREE(mem_ctx);
1048 status = log_nt_token(mem_ctx, server_info->ptok);
1050 TALLOC_FREE(mem_ctx);
1073 NTSTATUS create_token_from_username(TALLOC_CTX *mem_ctx, const char *username,
1148 *found_username = talloc_strdup(mem_ctx,
1203 *found_username = talloc_strdup(mem_ctx, pass->pw_name);
1236 *found_username = talloc_strdup(mem_ctx, username);
1268 *token = create_local_nt_token(mem_ctx, &user_sid,
1298 TALLOC_CTX *mem_ctx;
1300 mem_ctx = talloc_new(NULL);
1301 if (mem_ctx == NULL) {
1306 status = create_token_from_username(mem_ctx, username, False,
1317 TALLOC_FREE(mem_ctx);
1324 TALLOC_CTX *mem_ctx;
1328 mem_ctx = talloc_new(NULL);
1329 if (mem_ctx == NULL) {
1334 ret = lookup_name(mem_ctx, groupname, LOOKUP_NAME_ALL,
1336 TALLOC_FREE(mem_ctx);
1360 TALLOC_CTX *mem_ctx = NULL;
1409 mem_ctx = talloc_init("make_server_info_pw_tmp");
1410 if (!mem_ctx) {
1415 qualified_name = talloc_asprintf(mem_ctx, "%s\\%s",
1420 TALLOC_FREE(mem_ctx);
1424 if (!lookup_name(mem_ctx, qualified_name, LOOKUP_NAME_ALL,
1428 TALLOC_FREE(mem_ctx);
1432 TALLOC_FREE(mem_ctx);
1644 static NTSTATUS fill_sam_account(TALLOC_CTX *mem_ctx,
1679 *found_username = talloc_strdup( mem_ctx, real_username );
1696 struct passwd *smb_getpwnam( TALLOC_CTX *mem_ctx, char *domuser,
1720 pw = Get_Pwnam_alloc( mem_ctx, domuser );
1751 pw = Get_Pwnam_alloc(mem_ctx, username);
1764 pw = Get_Pwnam_alloc(mem_ctx, username);
1779 NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
1819 if (!(nt_username = unistr2_tdup(mem_ctx, &(info3->uni_user_name)))) {
1825 if (!(nt_domain = unistr2_tdup(mem_ctx, &(info3->uni_logon_dom)))) {
1849 nt_status = fill_sam_account(mem_ctx, nt_domain, sent_nt_username,
2082 *auth_method = TALLOC_P(auth_context->mem_ctx, auth_methods);
2096 NT_USER_TOKEN *dup_nt_token(TALLOC_CTX *mem_ctx, const NT_USER_TOKEN *ptoken)
2103 token = TALLOC_P(mem_ctx, NT_USER_TOKEN);