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

Re: lwat - User löschen , neu anlegen.



Thank you, this works perfectly

Klaus Ade Johnstad schrieb:
lwat will prevent you from creating a new user with the same username that once was on the system, it doesn't help to delete it, lwat "leaves" behind the deleted users personal group, to prevent you from creating a user with the same username.
Why? Is there a special reason?

If you are sure that you want to re-create a user with the same username, you must first delete the personal group. You can use the attached script, and use it like this to see what will be done:
Yes we must. All our teachers have nick-names given by the administration, that are used in all other administration programs.

./ldif_remove_old_primarygroups.pl

And then like this to really remove the groups(all on one line):

./ldif_remove_old_primarygroups.pl | ldapmodify -x -ZZ -W -D cn=admin,ou=People,dc=skole,dc=skolelinux,dc=no

greetings from Austria
Alfred







Reply to: