/haiku/headers/posix/ |
H A D | pwd.h | 15 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 D | pwd.cpp | 29 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 D | pwd_query.c | 93 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 D | multiuser_utils.cpp | 89 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 D | multiuser_utils.h | 18 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 D | login.cpp | 55 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 D | su.cpp | 79 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 D | passwd.cpp | 109 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 D | Jamfile | 17 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 D | autologin.cpp | 23 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 D | logger.cpp | 133 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 D | id.c | 43 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 D | libutil.h | 111 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 D | Settings.cpp | 68 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 D | cryptf.c | 155 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 D | crypt.c | 152 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 D | getlogin.cpp | 23 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 D | user_group.h | 109 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 D | crypto_scrypt.cpp | 53 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 D | pbkdf2.cpp | 132 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 D | SftpClient.cpp | 86 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 D | AuthenticationManager.cpp | 238 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 D | krb4encpwd.c | 404 int passwdok(name, passwd) in passwdok() argument 405 char *name, *passwd; in passwdok() 409 struct passwd *pwd; 416 p = crypt(passwd, salt);
|
H A D | rsaencpwd.c | 451 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 D | IdMapper.cpp | 81 struct passwd* userInfo = NULL; in NameToUID() 100 struct passwd* userInfo = getpwuid(userId); in UIDToName() 266 struct passwd* userInfo = getpwnam(kNobodyName); in main()
|