]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/user-record-nss.h
catalog: update Polish translation
[thirdparty/systemd.git] / src / shared / user-record-nss.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <pwd.h>
5 #include <shadow.h>
6
7 #include "user-record.h"
8
9 /* Synthesizes a UserRecord object from NSS data */
10
11 int nss_passwd_to_user_record(const struct passwd *pwd, const struct spwd *spwd, UserRecord **ret);
12 int nss_spwd_for_passwd(const struct passwd *pwd, struct spwd *ret_spwd, char **ret_buffer);
13
14 int nss_user_record_by_name(const char *name, bool with_shadow, UserRecord **ret);
15 int nss_user_record_by_uid(uid_t uid, bool with_shadow, UserRecord **ret);