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

Re: problem creating users from csv



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].

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?

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

What other stuff?

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.

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'm not looking forward to defining a new template by hand (I don't know enough yet). And I wonder if the earlier logins were in a good enough shape, what happens if I apply a template to an existing user?

Applying a template to an existing use does not work (no-such-feature). The templates are only for creating / importing new accounts.

Is it safe?

Safety is always relative ;-)

Mike

[1] https://code.it-zukunft-schule.de/gitweb?p=upstream/gosa-plugin-schoolmanager.git;a=summary
--

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

Attachment: pgp6U8WlTa9Bm.pgp
Description: Digitale PGP-Signatur


Reply to: