Changeset 731
- Timestamp:
- Apr 17, 2008, 4:10:17 AM (16 years ago)
- Location:
- server/common/oursrc/accountadm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
server/common/oursrc/accountadm/configure.in
r544 r731 18 18 19 19 LOCATE(hesinfo) 20 LOCATE(sort)21 LOCATE(head)22 20 LOCATE(ldapadd) 23 21 LOCATE(sudo) -
server/common/oursrc/accountadm/signup-scripts-backend.in
r501 r731 36 36 close(BANNEDUSERS); 37 37 38 my $homedir; 39 my $filsys = `@hesinfo_path@ $username filsys | @sort_path@ -nk5 | @head_path@ -n1`; 40 # AFS /afs/athena.mit.edu/user/j/b/jbarnold w /mit/jbarnold 41 if($filsys =~ /^AFS\s(\/afs\/[\w\._\/-]+)\s.*\s\/mit\/$username(?: [0-9]+)?$/) { 42 $homedir = $1; 38 my %filsys; 39 open HESINFO, '-|', '@hesinfo_path@', '--', $username, 'filsys' or 40 complain("internal error"); 41 while (<HESINFO>) { 42 chomp; 43 my %f; @f{qw(type path rw mount order)} = split / /; 44 %filsys = %f if (($f{order} || 9999) <= ($filsys{order} || 9999)); 43 45 } 44 else { 46 close HESINFO; 47 unless (defined(%filsys) && 48 $filsys{type} eq 'AFS' && 49 $filsys{path} =~ /^\/afs\/[\w\._\/-]+/ && 50 $filsys{mount} eq "/mit/$username") { 45 51 complain("athena user not found"); 46 52 } 53 my $homedir = $filsys{path}; 47 54 48 55 # Tell AFS that we don't want to trigger fakestat, and confirm user's homedir … … 50 57 51 58 # Obtain user's homedir uid 52 my ( $spam, $spam, $spam, $spam, $uid1, $gid1, $spam, $spam, $spam, $spam, $spam, $egg, $spam) = stat '.' or complain("athena homedir not found");59 my (undef, undef, undef, undef, $uid1, $gid1, undef, undef, undef, undef, undef, undef, undef) = stat '.' or complain("athena homedir not found"); 53 60 54 61 # Complain if user's uid is too low or too high
Note: See TracChangeset
for help on using the changeset viewer.