You could look in the documentation for my Win32API::Net (its in the
standard distribution) - most of the stuff that you require is in there.

Bret
--
Bret Giddings, Systems Manager, Computing Service, University of Essex
Tel: (01206) 872577     Email: [EMAIL PROTECTED]      Fax: (01206) 860585



-----Original Message-----
From: Timothy Johnson [mailto:[EMAIL PROTECTED]] 
Sent: 24 July 2002 00:41
To: Timothy Johnson; 'Jason Hemak';
[EMAIL PROTECTED]
Subject: RE: NetUserAdd argument



Actually, looking at this example again, the only ones you would set are

name
comment
usr_comment
full_name
flags
home_dir
script_path
workstations
acct_expires
max_storage
primary_group_id
profile
home_dir_drive
logon_hours

but I think that all except for name are optional.  I would recommend
obtaining the Platform SDK from Microsoft.  You'll find  that alot of these
hashes correspond directly with a C struct somewhere in there.

-----Original Message-----
From: Timothy Johnson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 4:21 PM
To: 'Jason Hemak'; [EMAIL PROTECTED]
Subject: RE: NetUserAdd argument



I assume you're talking about the function from Win32::Lanman.  The hash
should be similar to the hashes returned by NetUserEnum().  This is from the
example for that function:


 foreach $user (@users)
 {

        $hours = unpack("b168", ${$user}{'logon_hours'});

        print "${$user}{'name'}\n";
        print "${$user}{'comment'}\n";
        print "${$user}{'usr_comment'}\n";
        print "${$user}{'full_name'}\n";
        print "${$user}{'password_age'}\n";
        print "${$user}{'priv'}\n";
        print "${$user}{'home_dir'}\n";
        print "${$user}{'flags'}\n";
        print "${$user}{'script_path'}\n";
        print "${$user}{'auth_flags'}\n";
        print "${$user}{'parms'}\n";
        print "${$user}{'workstations'}\n";
        print "${$user}{'last_logon'}\n";
        print "${$user}{'last_logoff'}\n";
        print "${$user}{'acct_expires'}\n";
        print "${$user}{'max_storage'}\n";
        print "${$user}{'units_per_week'}\n";
        print "$hours\n";
        print "${$user}{'bad_pw_count'}\n";
        print "${$user}{'num_logons'}\n";
        print "${$user}{'logon_server'}\n";
        print "${$user}{'country_code'}\n";
        print "${$user}{'code_page'}\n";
        print "${$user}{'user_id'}\n";
        print "${$user}{'primary_group_id'}\n";
        print "${$user}{'profile'}\n";
        print "${$user}{'home_dir_drive'}\n";
        print "${$user}{'password_expired'}\n";
 }



-----Original Message-----
From: Jason Hemak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 4:15 PM
To: [EMAIL PROTECTED]
Subject: NetUserAdd argument


I cannot seem to find documentation for the items that can/should be in the
hash passed into the NetUserAdd function.  I've seen examples, but i'm
looking for a comprehensive list explaining my options.  Thank you.
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to