Changeset 844
- Timestamp:
- Oct 2, 2008, 3:33:27 PM (17 years ago)
- File:
- 
          - 1 edited
 
 - 
          server/common/oursrc/accountadm/vhostadd (modified) (1 diff)
 
Legend:
- Unmodified
- Added
- Removed
- 
        server/common/oursrc/accountadm/vhostaddr833 r844 20 20 fi 21 21 22 pw=$( getent passwd"$user")22 pw=$(perl -e '$, = ":"; print getpwnam($ARGV[0]);' -- "$user") 23 23 if [ $? -ne 0 ]; then 24 24 echo "User not found." >&2 25 25 exit $? 26 26 fi 27 IFS=: read user x uid gid x home x <<< "$pw"27 IFS=: read user x uid gid x x x home x <<< "$pw" 28 28 29 29 user_dn=$(ldapsearch -LLL -x -b ou=People,dc=scripts,dc=mit,dc=edu "(uid=$user)" dn | perl -0pe 's/\n //g; s/^dn: //') 
Note: See TracChangeset
          for help on using the changeset viewer.
      
