Home
last modified time | relevance | path

Searched refs:passwd (Results 1 – 25 of 62) sorted by relevance

123

/haiku/headers/posix/
H A Dpwd.h15 struct passwd { struct
26 extern struct passwd *getpwent(void); argument
27 extern int getpwent_r(struct passwd* pwbuf, char* buf, size_t buflen,
28 struct passwd** pwbufp);
33 extern struct passwd *getpwnam(const char *name);
34 extern int getpwnam_r(const char *name, struct passwd *passwd, char *buffer,
35 size_t bufferSize, struct passwd **result);
36 extern struct passwd *getpwuid(uid_t uid);
37 extern int getpwuid_r(uid_t uid, struct passwd *passwd, char *buffer,
38 size_t bufferSize, struct passwd **result);
/haiku/src/system/libroot/posix/
H A Dpwd.cpp29 static passwd** sPasswdEntries = NULL;
33 static struct passwd sPasswdBuffer;
38 query_passwd_entry(const char* name, uid_t _uid, struct passwd *passwd, in query_passwd_entry() argument
39 char *buffer, size_t bufferSize, struct passwd **_result) in query_passwd_entry()
73 shell, realName, passwd, buffer, bufferSize); in query_passwd_entry()
75 *_result = passwd; in query_passwd_entry()
96 passwd** entries; in init_passwd_db()
107 passwd* entry = relocate_pointer(baseAddress, entries[i]); in init_passwd_db()
125 struct passwd*
128 struct passwd* result = NULL; in getpwent()
[all …]
H A Dpwd_query.c93 struct passwd pwent;
348 int fill_pwent_default(struct passwd *pwbuf) in fill_pwent_default()
362 int fill_pwent_from_fd(int fd, struct passwd *pwbuf, char *buf, size_t buflen) in fill_pwent_from_fd()
470 int getpwent_r(struct passwd *pwbuf, char *buf, size_t buflen, struct passwd **pwbufp) in getpwent_r()
511 struct passwd *getpwent(void) in getpwent()
514 struct passwd *ent; in getpwent()
535 struct passwd *getpwuid(uid_t uid) in getpwuid()
578 struct passwd *getpwnam(const char *name) in getpwnam()
/haiku/src/bin/multiuser/
H A Dmultiuser_utils.cpp89 verify_password(passwd* passwd, spwd* spwd, const char* plainPassword) in verify_password() argument
91 if (passwd == NULL) in verify_password()
95 const char* requiredPassword = passwd->pw_passwd; in verify_password()
127 authenticate_user(const char* prompt, passwd* passwd, spwd* spwd, int maxTries, in authenticate_user() argument
131 if (verify_password(passwd, spwd, "")) in authenticate_user()
143 bool ok = verify_password(passwd, spwd, plainPassword); in authenticate_user()
156 authenticate_user(const char* prompt, const char* user, passwd** _passwd, in authenticate_user()
159 struct passwd* passwd = getpwnam(user); in authenticate_user() local
162 status_t error = authenticate_user(prompt, passwd, spwd, maxTries, in authenticate_user()
166 *_passwd = passwd; in authenticate_user()
[all …]
H A Dmultiuser_utils.h18 bool verify_password(passwd* passwd, spwd* spwd, const char* plainPassword);
20 status_t authenticate_user(const char* prompt, passwd* passwd, spwd* spwd,
23 passwd** _passwd, spwd** _spwd, int maxTries, bool useStdio);
25 status_t setup_environment(struct passwd* passwd, bool preserveEnvironment,
H A Dlogin.cpp55 login(const char* user, struct passwd** _passwd) in login()
90 struct passwd* passwd = getpwnam(user); in login() local
93 bool ok = verify_password(passwd, spwd, password); in login()
99 *_passwd = passwd; in login()
170 struct passwd* passwd = NULL; in main() local
173 status = login(user, &passwd); in main()
187 if (status < B_OK || passwd == NULL) { in main()
190 passwd->pw_name); in main()
196 status = setup_environment(passwd, preserveEnvironment); in main()
202 passwd->pw_name); in main()
[all …]
H A Dsu.cpp79 struct passwd* passwd = NULL; in main() local
81 status = authenticate_user("password: ", user, &passwd, NULL, in main()
84 if (status < B_OK || !passwd) { in main()
85 if (passwd != NULL) in main()
86 syslog(LOG_NOTICE, "su failed for \"%s\"", passwd->pw_name); in main()
94 status = setup_environment(passwd, true, false); in main()
99 syslog(LOG_NOTICE, "su refused for \"%s\"", passwd->pw_name); in main()
103 syslog(LOG_INFO, "su as \"%s\"", passwd->pw_name); in main()
H A Dpasswd.cpp109 struct passwd* passwd; in main() local
111 passwd = getpwnam(user); in main()
112 if (passwd == NULL) { in main()
117 if (uid != 0 && passwd->pw_uid != uid) { in main()
123 passwd = getpwuid(uid); in main()
124 if (passwd == NULL) { in main()
130 user = passwd->pw_name; in main()
135 if (authenticate_user("old password: ", passwd, getspnam(user), 1, in main()
181 if (message.AddInt32("uid", passwd->pw_uid) != B_OK in main()
H A DJamfile17 BinCommand passwd : passwd.cpp : libmultiuser_utils.a libbsd.so ;
29 # set set-uid bit on passwd, su
30 MODE on passwd = 04755 ;
/haiku/src/bin/
H A Dautologin.cpp23 struct passwd* passwd = getpwuid(0); in main() local
24 if (passwd == NULL) in main()
27 status_t status = BLaunchRoster().StartSession(passwd->pw_name); in main()
H A Dlogger.cpp133 struct passwd* passwd = getpwuid(geteuid()); in main() local
163 if (tag == NULL && passwd != NULL) in main()
164 tag = passwd->pw_name; in main()
H A Did.c43 struct passwd *euidName;
44 struct passwd *ruidName;
58 struct passwd *userIDName; in print_user_info()
203 struct passwd *suppliedName; in main()
/haiku/headers/compatibility/bsd/
H A Dlibutil.h111 int pw_copy(int _ffd, int _tfd, const struct passwd *_pw, struct passwd *_old_pw);
112 struct passwd *pw_dup(const struct passwd *_pw);
114 int pw_equal(const struct passwd *_pw1, const struct passwd *_pw2);
117 char *pw_make(const struct passwd *_pw);
120 struct passwd *pw_scan(const char *_line, int _flags);
/haiku/src/add-ons/mail_daemon/inbound_protocols/imap/
H A DSettings.cpp68 char* passwd = get_passwd(&fMessage, "cpasswd"); in Password() local
69 if (passwd != NULL) { in Password()
70 password = passwd; in Password()
71 delete[] passwd; in Password()
/haiku/src/bin/unzip/
H A Dcryptf.c155 void init_keys(__G__ passwd)
157 ZCONST char *passwd; /* password string with which to modify keys */
162 while (*passwd != '\0') {
163 update_keys(__G__ (int)*passwd);
164 passwd++;
175 void crypthead(passwd, crc, zfile) in crypthead() argument
176 ZCONST char *passwd; /* password string */ in crypthead()
194 init_keys(passwd);
200 init_keys(passwd);
218 int zipcloak(z, source, dest, passwd) in zipcloak() argument
[all …]
H A Dcrypt.c152 void init_keys(__G__ passwd)
154 ZCONST char *passwd; /* password string with which to modify keys */
159 while (*passwd != '\0') {
160 update_keys(__G__ (int)*passwd);
161 passwd++;
172 void crypthead(passwd, crc, zfile) in crypthead() argument
173 ZCONST char *passwd; /* password string */ in crypthead()
191 init_keys(passwd);
197 init_keys(passwd);
215 int zipcloak(z, source, dest, passwd) in zipcloak() argument
[all …]
/haiku/src/system/libroot/posix/unistd/
H A Dgetlogin.cpp23 struct passwd *pw; in getlogin()
35 struct passwd* pw = NULL; in getlogin_r()
36 struct passwd passwdBuffer; in getlogin_r()
/haiku/headers/private/libroot/
H A Duser_group.h109 passwd* entry, char* buffer, size_t bufferSize);
110 status_t copy_passwd_to_buffer(const passwd* from, passwd* entry, char* buffer,
/haiku/src/system/libroot/posix/crypt/
H A Dcrypto_scrypt.cpp53 crypto_scrypt(const uint8_t * passwd, size_t passwdlen, in crypto_scrypt() argument
127 PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, 1, B, p * 128 * r); in crypto_scrypt()
136 PBKDF2_SHA256(passwd, passwdlen, B, p * 128 * r, 1, buf, buflen); in crypto_scrypt()
H A Dpbkdf2.cpp132 PBKDF2_SHA256(const uint8_t * passwd, size_t passwdlen, const uint8_t * salt, in PBKDF2_SHA256() argument
148 HMAC_SHA256_Init(&PShctx, passwd, passwdlen); in PBKDF2_SHA256()
166 HMAC_SHA256_Init(&hctx, passwd, passwdlen); in PBKDF2_SHA256()
/haiku/src/apps/codycam/
H A DSftpClient.cpp86 const string& passwd) in Connect() argument
104 if (!SpawningUploadClient::Connect(server, login, passwd)) in Connect()
129 write(OutputPipe(), passwd.c_str(), strlen(passwd.c_str())); in Connect()
/haiku/src/servers/registrar/
H A DAuthenticationManager.cpp238 passwd* WriteFlatPasswd(FlatStore& store) const in WriteFlatPasswd()
240 struct passwd passwd; in WriteFlatPasswd() local
242 passwd.pw_uid = fUID; in WriteFlatPasswd()
243 passwd.pw_gid = fGID; in WriteFlatPasswd()
244 passwd.pw_name = store.AppendString(fName); in WriteFlatPasswd()
245 passwd.pw_passwd = store.AppendString(fPassword); in WriteFlatPasswd()
246 passwd.pw_dir = store.AppendString(fHome); in WriteFlatPasswd()
247 passwd.pw_shell = store.AppendString(fShell); in WriteFlatPasswd()
248 passwd.pw_gecos = store.AppendString(fRealName); in WriteFlatPasswd()
250 return store.AppendData(passwd); in WriteFlatPasswd()
[all …]
/haiku/src/libs/libtelnet/
H A Dkrb4encpwd.c404 int passwdok(name, passwd) in passwdok() argument
405 char *name, *passwd; in passwdok()
409 struct passwd *pwd;
416 p = crypt(passwd, salt);
H A Drsaencpwd.c451 int rsaencpwd_passwdok(name, passwd) in rsaencpwd_passwdok() argument
452 char *name, *passwd; in rsaencpwd_passwdok()
456 struct passwd *pwd;
463 p = crypt(passwd, salt);
/haiku/src/add-ons/kernel/file_systems/nfs4/idmapper/
H A DIdMapper.cpp81 struct passwd* userInfo = NULL; in NameToUID()
100 struct passwd* userInfo = getpwuid(userId); in UIDToName()
266 struct passwd* userInfo = getpwnam(kNobodyName); in main()

123