[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problem creating users from csv



On 05/09/15 14:24, Mike Gabriel wrote:
Hi Simon,

first of all for your information, I have started working on a very
school-oriented user import tool recently.

We hope to have a first release out by the end of the month [1].

Hi Mike, sounds interesting!


On  Fr 04 Sep 2015 22:21:22 CEST, Simon Oosthoek wrote:

Last week was the first schoolweek, and one of the things that went
wrong was the logins for the new children. They weren't created
properly from the csv file and I didn't have a clue why (still don't
really).

Ok...

The result was that the entries were created in the ldap database, but
no homedirs and no passwords were created.

You probably encountered an error message during import? Probably for
each user?

Anyway, after studying the problem, it seems that the template user
was broken and had a fixed string in the POSIX homedir value.

What exactly was the string for LDAP attribute homeDirectory?

I think you hit the nail on the head there ;-) I went on looking and I found that the template contained a fixed string there :-(


Other stuff was also broken, I think. How can I best fix this?

What other stuff?

Windows compatibility stuff. We do plan on attaching windows computers to the tjener, so I guess that would be a pain to add to 150+ accounts :-(


About fixing: simply edit the newstudent template to your needs and
re-import the accounts. Before you can reimport, you have to:

   o erase the already imported but broken accounts from LDAP
   o erase groups with the same name as those user logins
   o remove all those logins's homes from TJENER's file system

The Teacher template looks in much better shape (that's how I figured
out how the new student template was broken). Can I copy the template
and modify it to fit a student profile?

Simply look at what you see in the newteacher template and edit the
newstudent template accordingly.

OK, I had hoped that wouldn't be necessary.


I noticed the Copy/Cut operations exist, but I never found the Paste
entry anywhere... ;-) Does it exist?

Some items cannot be copied+pasted. The paste menu entry only appears if
you have clicked on Cut or Copy first.

I've never encountered the option "paste" anywhere.

Anyway, I'll just start working on fixing the newstudent template...

Cheers

Simon


Reply to: