#!/usr/bin/perl
$version = 2 ;

# AddUser
# This is the post-add user script.  This script
# is run after a user has been added to the password file. 
# This is where you put any site specific commands required
# when adding a new user, such as setting accounting information.

# --- Initialization ---
# Deal with possible spaces in the input 
$data = "" ;
foreach $i (0 .. $#ARGV) {
   $data .= "@ARGV[$i] " ;
}
chop($data) ;

# Output the version if requested
if($data eq "-v") {
    print "$version\n" ;
    exit(0) ;
}

($LOGIN, $UID, $GID, $COMMENT, $HOME, $SHELL) = split(/\:/, $data, 6) ;
print "Running site specific user add script\n" ;

# Debugging flag, set to 0 to turn off debugging
$debug = 0 ;

print "Login = $LOGIN\n" if $debug ;
print "UID = $UID\n" if $debug ;
print "GID = $GID\n" if $debug ;
print "COMMENT = $COMMENT\n" if $debug ;
print "HOME = $HOME\n" if $debug ;
print "SHELL = $SHELL\n" if $debug ;

# ----  Add the site specific commands here  ----




