yeah, I’ve used ldapmodify for changing the accounts on our systems. First iterate over all computer objects with home directory /dev/null and create the appropriate LDIF file:
Next take a look at home_dir_changes.ldif. If those look OK, apply the changes:
ldapmodify -D cn=admin,$(ucr get ldap/base) -y /etc/ldap.secret -f home_dir_changes.ldif
I suggest you don’t use anything beneath /tmp or /var/tmp in any permanent manner as those directories might be cleaned/cleared. Just create an empty directory in a more permanent place, e.g. /var/empty
I just noticed that there’s a nice article by Christian about filtering a lot of those unimportant messages caused by computer logins:
That filtering can be used instead of or in addition to changing the home directory. Obviously it filters a lot more messages than just the “Not a directory” ones.