• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/samba-3.5.8/source3/passdb/

Lines Matching refs:pwd

143 static NTSTATUS samu_set_unix_internal(struct samu *user, const struct passwd *pwd, bool create)
150 if ( !pwd ) {
156 pdb_set_username(user, pwd->pw_name, PDB_SET);
160 if (count_commas(pwd->pw_gecos) == 3) {
167 talloc_tos(), pwd->pw_gecos,
168 strchr(pwd->pw_gecos, ',') - pwd->pw_gecos);
174 pdb_set_fullname(user, pwd->pw_gecos, PDB_SET);
185 gid_to_sid(&group_sid, pwd->pw_gid);
191 user->unix_pw = tcopy_passwd( user, pwd );
195 if ( strequal( pwd->pw_name, guest_account ) ) {
204 if (pwd->pw_name[strlen(pwd->pw_name)-1] == '$') {
209 pwd->pw_name));
218 pwd->pw_name));
225 lp_logon_path(), pwd->pw_name, domain, pwd->pw_uid, pwd->pw_gid),
228 lp_logon_home(), pwd->pw_name, domain, pwd->pw_uid, pwd->pw_gid),
231 lp_logon_drive(), pwd->pw_name, domain, pwd->pw_uid, pwd->pw_gid),
234 lp_logon_script(), pwd->pw_name, domain, pwd->pw_uid, pwd->pw_gid),
278 NTSTATUS samu_set_unix(struct samu *user, const struct passwd *pwd)
280 return samu_set_unix_internal( user, pwd, False );
283 NTSTATUS samu_alloc_rid_unix(struct samu *user, const struct passwd *pwd)
285 return samu_set_unix_internal( user, pwd, True );
375 void pdb_sethexpwd(char p[33], const unsigned char *pwd, uint32 acct_ctrl)
377 if (pwd != NULL) {
380 slprintf(&p[i*2], 3, "%02X", pwd[i]);
394 bool pdb_gethexpwd(const char *p, unsigned char *pwd)
417 pwd[i / 2] = (hinybble << 4) | lonybble;
2300 char *pwd;
2348 pwd = secrets_fetch_machine_password(lp_workgroup(), &last_set_time, channel);
2350 if (pwd != NULL) {
2351 *ret_pwd = pwd;
2373 char *pwd = NULL;
2376 if (get_trust_pw_clear(domain, &pwd, account_name, channel)) {
2377 E_md4hash(pwd, ret_pwd);
2378 SAFE_FREE(pwd);
2384 /* as a fallback, try to get the hashed pwd directly from the tdb... */