• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/router/samba/source/smbd/

Lines Matching defs:user

26 /* this holds info on user ids that are already validated for this VC */
118 * @param smb_name The untranslated name of the user
180 fstrcpy(vuser->user.unix_name, server_info->unix_name);
183 alpha_strcpy(vuser->user.smb_name, smb_name, ". _-$", sizeof(vuser->user.smb_name));
185 fstrcpy(vuser->user.domain, pdb_get_domain(server_info->sam_account));
186 fstrcpy(vuser->user.full_name, pdb_get_fullname(server_info->sam_account));
199 struct passwd *passwd = getpwnam_alloc(vuser->user.unix_name);
219 vuser->user.unix_name, vuser->user.smb_name, vuser->user.domain, vuser->guest ));
221 DEBUG(3, ("User name: %s\tReal name: %s\n",vuser->user.unix_name,vuser->user.full_name));
240 DEBUG(3,("UNIX uid %d is UNIX user %s, and will be vuid %u\n",(int)vuser->uid,vuser->user.unix_name, vuser->vuid));
253 /* Register a home dir service for this user iff
261 && (lp_servicenumber(vuser->user.unix_name) == -1) )
263 DEBUG(3, ("Adding/updating homes service for user '%s' using home directory: '%s'\n",
264 vuser->user.unix_name, vuser->unix_homedir));
266 vuser->homes_snum = add_home_service(vuser->user.unix_name,
267 vuser->user.unix_name, vuser->unix_homedir);
284 void add_session_user(const char *user)
289 if (!(passwd = Get_Pwnam(user)))
308 BOOL user_ok(const char *user,int snum, gid_t *groups, size_t n_groups)
320 ret = !user_in_list(user, (const char **)invalid, groups, n_groups);
331 ret = user_in_list(user, (const char **)valid, groups, n_groups);
341 ret = user_in_list(user, (const char **)user_list, groups, n_groups);
357 char *host, *user, *domain;
359 while (getnetgrent(&host, &user, &domain)) {
360 if (user) {
361 if (user_ok(user, snum, NULL, 0) &&
362 password_ok(user,password)) {
364 return(user);
440 BOOL authorise_login(int snum, fstring user, DATA_BLOB password,
446 DEBUG(100,("authorise_login: checking authorisation on user=%s pass=%s\n",
447 user,password.data));
453 1) login as the given user with given password
456 4) login as a previously validated user/password pair
457 5) login as the "user =" user with given password
458 6) login as the "user =" user with no password (guest connection)
459 7) login as guest user with no password
480 fstrcpy(user,user2);
482 and given password ok\n", user));
489 /* check the user= fields and the given password */
503 fstrcpy(user,auser);
505 and given password ok (%s)\n", user));
512 fstrcpy(user,user2);
513 DEBUG(3,("authorise_login: ACCEPTED: user list username \
514 and given password ok (%s)\n", user));
525 fstrcpy(user,guestname);
528 user));
535 if (ok && !user_ok(user, snum, NULL, 0)) {
536 DEBUG(0,("authorise_login: rejected invalid user %s\n",user));