Home
last modified time | relevance | path

Searched refs:user_name (Results 1 – 25 of 39) sorted by relevance

12

/systemd-251/src/home/
Dhomed-manager-bus.c45 …, "Failed to determine whether home '%s' is candidate for auto-login, ignoring: %m", h->user_name); in property_get_auto_login()
56 r = sd_bus_message_append(reply, "(sso)", h->user_name, *s, home_path); in property_get_auto_login()
71 const char *user_name; in method_get_home_by_name() local
79 r = sd_bus_message_read(message, "s", &user_name); in method_get_home_by_name()
82 if (!valid_user_group_name(user_name, 0)) in method_get_home_by_name()
83 …return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "User name %s is not valid", user_name); in method_get_home_by_name()
85 h = hashmap_get(m->homes_by_name, user_name); in method_get_home_by_name()
87 … return sd_bus_error_setf(error, BUS_ERROR_NO_SUCH_HOME, "No home for user %s known", user_name); in method_get_home_by_name()
136 h->user_name, in method_get_home_by_uid()
175 h->user_name, in method_list_homes()
[all …]
Dhomed-home.c63 if (!hr->user_name) in suitable_home_record()
68 if (!suitable_user_name(hr->user_name)) in suitable_home_record()
106 if (hashmap_contains(m->homes_by_name, hr->user_name)) in home_new()
118 nm = strdup(hr->user_name); in home_new()
134 .user_name = TAKE_PTR(nm), in home_new()
144 r = hashmap_put(m->homes_by_name, home->user_name, home); in home_new()
183 if (h->user_name) in home_free()
184 (void) hashmap_remove_value(h->manager->homes_by_name, h->user_name, h); in home_free()
206 free(h->user_name); in home_free()
232 assert(h->user_name); in home_set_record()
[all …]
Dhomed-varlink.c12 const char *user_name; member
64 if (p->user_name && !streq(p->user_name, h->user_name)) in home_user_match_lookup_parameters()
77 …N_VARIANT_STRING, json_dispatch_const_string, offsetof(LookupParameters, user_name), JSON_SAFE }, in vl_method_get_user_record()
103 else if (p.user_name) in vl_method_get_user_record()
104 h = hashmap_get(m->homes_by_name, p.user_name); in vl_method_get_user_record()
180 if (p->group_name && !streq(h->user_name, p->group_name)) in home_group_match_lookup_parameters()
262 …ON_VARIANT_STRING, json_dispatch_const_string, offsetof(LookupParameters, user_name), JSON_SAFE }, in vl_method_get_memberships()
283 if (p.user_name) { in vl_method_get_memberships()
286 h = hashmap_get(m->homes_by_name, p.user_name); in vl_method_get_memberships()
294 …arlink_replyb(link, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("userName", JSON_BUILD_STRING(h->user_name)), in vl_method_get_memberships()
[all …]
Dpam_systemd_home.c226 if (!streq_ptr(username, ur->user_name)) { in acquire_user_record()
278 const char *user_name, in handle_generic_user_record_error() argument
283 assert(user_name); in handle_generic_user_record_error()
291 …currently absent, please plug in the necessary storage device or backing file system.", user_name); in handle_generic_user_record_error()
292 …pam_syslog(handle, LOG_ERR, "Failed to acquire home for user %s: %s", user_name, bus_error_message… in handle_generic_user_record_error()
296 …ndle, PAM_ERROR_MSG, NULL, "Too frequent login attempts for user %s, try again later.", user_name); in handle_generic_user_record_error()
297 …pam_syslog(handle, LOG_ERR, "Failed to acquire home for user %s: %s", user_name, bus_error_message… in handle_generic_user_record_error()
310 …ERROR_MSG, NULL, "Password incorrect or not sufficient for authentication of user %s.", user_name); in handle_generic_user_record_error()
337 …LL, "Password/recovery key incorrect or not sufficient for authentication of user %s.", user_name); in handle_generic_user_record_error()
360 …oid) pam_prompt(handle, PAM_ERROR_MSG, NULL, "Security token of user %s not inserted.", user_name); in handle_generic_user_record_error()
[all …]
Dhome-util.c73 _cleanup_free_ char *user_name = NULL, *realm = NULL; in split_user_name_realm() local
83 user_name = strdup(t); in split_user_name_realm()
84 if (!user_name) in split_user_name_realm()
87 user_name = strndup(t, c - t); in split_user_name_realm()
88 if (!user_name) in split_user_name_realm()
96 if (!suitable_user_name(user_name)) in split_user_name_realm()
107 *ret_user_name = TAKE_PTR(user_name); in split_user_name_realm()
Dhomed-manager.c384 if (!streq_ptr(hr->user_name, name)) in manager_add_home_by_record()
387 hr->user_name, name); in manager_add_home_by_record()
426 log_info("Added registered home for user %s.", hr->user_name); in manager_add_home_by_record()
555 const char *user_name, in manager_acquire_uid() argument
599 if (!user_name) in manager_acquire_uid()
602 … candidate = UID_CLAMP_INTO_HOME_RANGE(siphash24(user_name, strlen(user_name), hash_key)); in manager_acquire_uid()
617 candidate, other->user_name); in manager_acquire_uid()
655 const char *user_name, in manager_add_home_by_image() argument
670 assert(user_name); in manager_add_home_by_image()
675 h = hashmap_get(m->homes_by_name, user_name); in manager_add_home_by_image()
[all …]
Dhomectl.c203 const char *user_name, in acquire_existing_password() argument
213 assert(user_name); in acquire_existing_password()
232 if (is_this_me(user_name) <= 0) in acquire_existing_password()
238 user_name) < 0) in acquire_existing_password()
265 const char *user_name, in acquire_recovery_key() argument
274 assert(user_name); in acquire_recovery_key()
293 if (is_this_me(user_name) <= 0) in acquire_recovery_key()
296 if (asprintf(&question, "Please enter recovery key for user %s:", user_name) < 0) in acquire_recovery_key()
323 const char *user_name, in acquire_token_pin() argument
332 assert(user_name); in acquire_token_pin()
[all …]
Dhomed-home-bus.c32 h->user_name, in property_get_unix_record()
633 …return sd_bus_reply_method_errnof(message, fd, "Failed to allocate FIFO for %s: %m", h->user_name); in bus_home_method_acquire()
669 …etf(error, BUS_ERROR_HOME_ABSENT, "Home %s is currently missing or not plugged in.", h->user_name); in bus_home_method_ref()
673 … return sd_bus_error_setf(error, BUS_ERROR_HOME_NOT_ACTIVE, "Home %s not active.", h->user_name); in bus_home_method_ref()
675 …turn sd_bus_error_setf(error, BUS_ERROR_HOME_LOCKED, "Home %s is currently locked.", h->user_name); in bus_home_method_ref()
680 …(error, BUS_ERROR_HOME_BUSY, "An operation on home %s is currently being executed.", h->user_name); in bus_home_method_ref()
685 …return sd_bus_reply_method_errnof(message, fd, "Failed to allocate FIFO for %s: %m", h->user_name); in bus_home_method_ref()
719 return sd_bus_path_encode("/org/freedesktop/home1/home", h->user_name, ret); in bus_home_path()
784 NULL, offsetof(Home, user_name),
Duser-record-pwquality.c59 r = sym_pwquality_check(pwq, *pp, *old, hr->user_name, &auxerror); in user_record_quality_check_password()
71 r = sym_pwquality_check(pwq, *pp, NULL, hr->user_name, &auxerror); in user_record_quality_check_password()
Duser-record-util.c19 const char *user_name, in user_record_synthesize() argument
31 assert(user_name); in user_record_synthesize()
42 if (!suitable_user_name(user_name)) in user_record_synthesize()
60 un = strdup(user_name); in user_record_synthesize()
69 user_name_and_realm = strjoin(user_name, "@", realm); in user_record_synthesize()
78 hd = path_join(get_home_root(), user_name); in user_record_synthesize()
84 JSON_BUILD_PAIR("userName", JSON_BUILD_STRING(user_name)), in user_record_synthesize()
97 free_and_replace(h->user_name, un); in user_record_synthesize()
124 un = strdup(h->user_name); in group_record_synthesize()
Dhomework.c357 name = strjoin("homework-user-", h->user_name); in keyring_flush()
876 if (!h->user_name) in home_activate()
948 if (!h->user_name) in home_deactivate()
1320 if (!h->user_name) in home_create()
1413 if (!h->user_name) in home_remove()
1529 if (!h->user_name) in home_validate_update()
1804 if (!h->user_name) in home_lock()
1813 …_errno(SYNTHETIC_ERRNO(ENOEXEC), "Home directory of %s is not mounted, can't lock.", h->user_name); in home_lock()
1830 if (!h->user_name) in home_unlock()
Dhomework-password-cache.c30 name = strjoin("homework-user-", h->user_name); in password_cache_load_keyring()
/systemd-251/src/userdb/
Duserwork.c29 const char *user_name; member
135 …me", JSON_VARIANT_STRING, json_dispatch_const_string, offsetof(LookupParameters, user_name), 0 }, in vl_method_get_user_record()
161 else if (p.user_name) in vl_method_get_user_record()
162 r = userdb_by_name(p.user_name, userdb_flags, &hr); in vl_method_get_user_record()
214 (p.user_name && !streq(hr->user_name, p.user_name))) in vl_method_get_user_record()
355 …ame", JSON_VARIANT_STRING, json_dispatch_const_string, offsetof(LookupParameters, user_name), 0 }, in vl_method_get_memberships()
379 else if (p.user_name) in vl_method_get_memberships()
380 r = membershipdb_by_user(p.user_name, userdb_flags, &iterator); in vl_method_get_memberships()
389 _cleanup_free_ char *user_name = NULL, *group_name = NULL; in vl_method_get_memberships() local
391 r = membershipdb_iterator_get(iterator, &user_name, &group_name); in vl_method_get_memberships()
[all …]
/systemd-251/src/nspawn/
Dnspawn-bind-user.c97 r = check_etc_passwd_collisions(directory, u->user_name, UID_INVALID); in convert_user()
102 … "Sorry, the user '%s' already exists in the container.", u->user_name); in convert_user()
111 h = path_join("/run/host/home/", u->user_name); in convert_user()
123 … JSON_BUILD_PAIR("userName", JSON_BUILD_STRING(u->user_name)), in convert_user()
244 if (u->uid == 0 || streq(u->user_name, "root")) in bind_user_prepare()
246 if (u->uid == UID_NOBODY || STR_IN_SET(u->user_name, NOBODY_USER_NAME, "nobody")) in bind_user_prepare()
250 …RNO(EINVAL), "UID of user '%s' to map is already in container UID range, refusing.", u->user_name); in bind_user_prepare()
254 … return log_error_errno(r, "Failed to resolve group of user '%s': %m", u->user_name); in bind_user_prepare()
266 if (!streq(u->user_name, g->group_name)) in bind_user_prepare()
449 d->payload_user->user_name, in bind_user_setup()
[all …]
/systemd-251/src/machine/
Dmachined-varlink.c10 const char *user_name; member
19 static int build_user_json(const char *user_name, uid_t uid, const char *real_name, JsonVariant **r… in build_user_json() argument
20 assert(user_name); in build_user_json()
26 JSON_BUILD_PAIR("userName", JSON_BUILD_STRING(user_name)), in build_user_json()
40 if (p->user_name && !streq(name, p->user_name)) in user_match_lookup_parameters()
142 …N_VARIANT_STRING, json_dispatch_const_string, offsetof(LookupParameters, user_name), JSON_SAFE }, in vl_method_get_user_record()
169 else if (p.user_name) in vl_method_get_user_record()
170 r = user_lookup_name(m, p.user_name, &found_uid, &found_real_name); in vl_method_get_user_record()
179 un = found_name ?: p.user_name; in vl_method_get_user_record()
360 …ON_VARIANT_STRING, json_dispatch_const_string, offsetof(LookupParameters, user_name), JSON_SAFE }, in vl_method_get_memberships()
/systemd-251/src/core/
Dcore-varlink.c10 const char *user_name; member
24 static int build_user_json(const char *user_name, uid_t uid, JsonVariant **ret) { in build_user_json() argument
25 assert(user_name); in build_user_json()
31 JSON_BUILD_PAIR("userName", JSON_BUILD_STRING(user_name)), in build_user_json()
45 if (p->user_name && !streq(name, p->user_name)) in user_match_lookup_parameters()
253 …N_VARIANT_STRING, json_dispatch_const_string, offsetof(LookupParameters, user_name), JSON_SAFE }, in vl_method_get_user_record()
280 else if (p.user_name) in vl_method_get_user_record()
281 r = dynamic_user_lookup_name(m, p.user_name, &found_uid); in vl_method_get_user_record()
319 un = found_name ?: p.user_name; in vl_method_get_user_record()
444 …ON_VARIANT_STRING, json_dispatch_const_string, offsetof(LookupParameters, user_name), JSON_SAFE }, in vl_method_get_memberships()
/systemd-251/src/network/netdev/
Dtuntap.c74 if (t->user_name) { in netdev_tuntap_add()
75 user = t->user_name; in netdev_tuntap_add()
79 … return log_netdev_error_errno(netdev, r, "Cannot resolve user name %s: %m", t->user_name); in netdev_tuntap_add()
126 t->user_name = mfree(t->user_name); in tuntap_done()
Dtuntap.h11 char *user_name; member
/systemd-251/src/nss-systemd/
Duserdb-glue.c35 assert(hr->user_name); in nss_pack_user_record()
36 required = strlen(hr->user_name) + 1; in nss_pack_user_record()
60 pwd->pw_passwd = stpcpy(pwd->pw_name, hr->user_name) + 1; in nss_pack_user_record()
146 assert(hr->user_name); in nss_pack_user_record_shadow()
147 required = strlen(hr->user_name) + 1; in nss_pack_user_record_shadow()
172 spwd->sp_pwdp = stpcpy(spwd->sp_namp, hr->user_name) + 1; in nss_pack_user_record_shadow()
Dnss-systemd.c787 _cleanup_free_ char *user_name = NULL, *group_name = NULL; in _nss_systemd_getgrent_r() local
789 … r = membershipdb_iterator_get(getgrent_data.iterator, &user_name, &group_name); in _nss_systemd_getgrent_r()
798 if (STR_IN_SET(user_name, root_passwd.pw_name, nobody_passwd.pw_name)) in _nss_systemd_getgrent_r()
823 members = strv_new(user_name); in _nss_systemd_getgrent_r()
952 const char *user_name, in _nss_systemd_initgroups_dyn() argument
967 assert(user_name); in _nss_systemd_initgroups_dyn()
973 if (!valid_user_group_name(user_name, VALID_USER_RELAX)) in _nss_systemd_initgroups_dyn()
977 if (STR_IN_SET(user_name, root_passwd.pw_name, nobody_passwd.pw_name)) in _nss_systemd_initgroups_dyn()
983 r = membershipdb_by_user(user_name, nss_glue_userdb_flags(), &iterator); in _nss_systemd_initgroups_dyn()
/systemd-251/src/login/
Dlogind-user.c52 if (!ur->user_name) in user_new()
166 u->user_record->user_name, in user_save_internal()
372 ur->user_name, in update_slice_callback()
378 log_debug("Successfully set slice parameters of %s.", ur->user_name); in update_slice_callback()
458 log_debug("Starting services for new user %s.", u->user_record->user_name); in user_start()
544 log_debug("User %s logged out.", u->user_record->user_name); in user_finalize()
614 cc = cescape(u->user_record->user_name); in user_check_linger_file()
806 log_debug("Electing new display for user %s", u->user_record->user_name); in user_elect_display()
869 u->user_record->user_name, in user_update_last_session_timer()
Dlogind-session.c234 s->user->user_record->user_name, in session_save()
658 … description = strjoina("Session ", s->id, " of User ", s->user->user_record->user_name); in session_start_scope()
715 "USER_ID=%s", s->user->user_record->user_name, in session_start()
717 … LOG_MESSAGE("New session %s of user %s.", s->id, s->user->user_record->user_name)); in session_start()
769 manager_shall_kill(s->manager, s->user->user_record->user_name)))) { in session_stop_scope()
785 "USER_ID=%s", s->user->user_record->user_name, in session_stop_scope()
843 "USER_ID=%s", s->user->user_record->user_name, in session_finalize()
/systemd-251/src/shared/
Duser-record.c131 free(h->user_name); in user_record_free()
1352 assert(h->user_name); in user_record_augment()
1355 h->user_name_and_realm_auto = strjoin(h->user_name, "@", h->realm); in user_record_augment()
1365 h->home_directory_auto = path_join(get_home_root(), h->user_name); in user_record_augment()
1505 …RING, json_dispatch_user_group_name, offsetof(UserRecord, user_name), … in user_record_load()
1624 if (FLAGS_SET(h->mask, USER_RECORD_REGULAR) && !h->user_name) in user_record_load()
1670 return h->user_name; in user_record_user_name_and_realm()
1709 if (streq_ptr(h->user_name, "root")) in user_record_home_directory()
1729 return h->cifs_user_name ?: h->user_name; in user_record_cifs_user_name()
1746 if (streq_ptr(h->user_name, "root")) in user_record_shell()
[all …]
Duserdb.c222 if (streq_ptr(hr->user_name, "root")) in userdb_on_query_reply()
294 const char *user_name; in userdb_on_query_reply() member
299 …IANT_STRING, json_dispatch_const_string, offsetof(struct membership_data, user_name), JSON_SAFE }, in userdb_on_query_reply()
314 iterator->found_user_name = strdup(membership_data.user_name); in userdb_on_query_reply()
1433 _cleanup_free_ char *user_name = NULL; in membershipdb_by_group_strv() local
1435 r = membershipdb_iterator_get(iterator, &user_name, NULL); in membershipdb_by_group_strv()
1441 r = strv_consume(&members, TAKE_PTR(user_name)); in membershipdb_by_group_strv()
Duser-record-nss.c59 r = free_and_strdup(&hr->user_name, pwd->pw_name); in nss_passwd_to_user_record()
67 if (isempty(pwd->pw_gecos) || streq_ptr(pwd->pw_gecos, hr->user_name)) in nss_passwd_to_user_record()
142 … JSON_BUILD_PAIR("userName", JSON_BUILD_STRING(hr->user_name)), in nss_passwd_to_user_record()

12