[K12OSN] Bulk User Add

Mark Sarria marksarria at socal.rr.com
Sun May 29 16:54:06 UTC 2005


Thanks for your input, I will try this on Tuesday, and I will post my 
results.

-mark

----- Original Message ----- 
From: "Brian Chivers" <brian at portsmouth-college.ac.uk>
To: <mes4294 at lausd.k12.ca.us>; "Support list for opensource software in 
schools." <k12osn at redhat.com>
Sent: Saturday, May 28, 2005 12:37 PM
Subject: Re: [K12OSN] Bulk User Add


> The idealx smbldap-useradd script include a -B switch (try 
> smbldap-useradd -h for a list of options) if you set it to 1 the user is 
> forced to change there password at login so you could `hack / customise` 
> the smbldap-useradd-bulk script to include this.
>
> If you look at line 221 in the script you'll see something like this
>
>  my $rc = system("smbldap-useradd -a -m -g $gid -c \"$first $last\" -s 
> $shell -d $home $uname");
>
> You could change it to look like this
>
>  my $rc = system("smbldap-useradd -B1 -a -m -g $gid -c \"$first $last\" -s 
> $shell -d $home $uname");
>
> Notice the added -B1 switch after the useradd bit.
>
> I did this for custom home directories before I talked to Matt about add 
> this as and option. I realise it's a bit of a `bodge` but if it works who 
> cares *grin*
>
> Brian
>
>
>
> Mark Sarria wrote:
>
>>Yeahh.. I ran the scripts successfully, to add bulk users - great job on 
>>the
>>scripts guys. It worked like a charm. I noticed that the script also
>>generates a unique password for each user. Is there a way to force a user 
>>to
>>change password at next login. I can see how to do individual users but 
>>how
>>about bulk. Next semester I will be adding 3000 users, I would hate to 
>>have
>>to enter each user one by one to allow password change.
>>
>>--mark
>>
>>
>>
>>-----Original Message-----
>>From: k12osn-bounces at redhat.com [mailto:k12osn-bounces at redhat.com] On 
>>Behalf
>>Of Mark Sarria
>>Sent: Friday, May 27, 2005 9:00 AM
>>To: 'David Trask'
>>Cc: 'Huck'; 'Support list for opensource software in schools.'
>>Subject: RE: [K12OSN] Bulk User Add
>>
>>I knew it was already on my server, I was going crazy looking for it
>>yesterday, thanks for the jumpstart.
>>Question - In my network environment, we use a combination of last name 
>>and
>>student Id numbers. To be more specific, we use the last four letters of a
>>students name and the last four numbers of their student ID, and to make
>>sure that only that student logs in to change there password, we assign 
>>the
>>default password as their date of birth. So for example a student:
>>First Name: Sally
>>Last Name: Jones
>>Student ID: 88781234
>>
>>Her user name would be
>>Username: Jone1234
>>Password: 101384
>>
>>Is there a way to accomplish this using the Bulk add user scripts. Or do 
>>you
>>have alternatives that you can throw my way on how to format user 
>>accounts.
>>As you know in this type of environment with over 3000 students, assigning
>>every student the same default password, is just not safe and will cause
>>intense administrative work load.
>>
>>--mark
>>
>>-----Original Message-----
>>From: David Trask [mailto:dtrask at vcs.u52.k12.me.us] Sent: Thursday, May 
>>26, 2005 4:27 PM
>>To: mes4294 at lausd.k12.ca.us
>>Cc: 'Huck'; 'Support list for opensource software in schools.'
>>Subject: Re: [K12OSN] Bulk User Add
>>
>>go here and get the smbldap-installer....untar it and you'll find a couple
>>in there ( http://web.vcs.u52.k12.me.us/linux/smbldap )  The docs (near
>>the bottom) explain all the different ways you can use it.
>>
>>David N. Trask
>>Technology Teacher/Coordinator
>>Vassalboro Community School
>>dtrask at vcs.u52.k12.me.us
>>(207)923-3100
>>
>>
>>_______________________________________________
>>K12OSN mailing list
>>K12OSN at redhat.com
>>https://www.redhat.com/mailman/listinfo/k12osn
>>For more info see <http://www.k12os.org>
>>
>>_______________________________________________
>>K12OSN mailing list
>>K12OSN at redhat.com
>>https://www.redhat.com/mailman/listinfo/k12osn
>>For more info see <http://www.k12os.org>
>>
>
>
> ---------------------------------------------------------------
>    The views expressed here are my own and not necessarily the views of 
> Portsmouth College
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org> 




More information about the K12OSN mailing list