Add script for filling directory_name for xnet accounts (Closes #1178)
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sun, 19 Sep 2010 19:44:26 +0000 (21:44 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sun, 19 Sep 2010 19:44:26 +0000 (21:44 +0200)
commit2079bd05a1f8ac0f204ba04c1776c25e78ac78d3
treef2c7701418eb092ba6f3042af88fd6ef063e014e
parent445d244cc8597f6fef76b602dbfe9ec598c84ff7
Add script for filling directory_name for xnet accounts (Closes #1178)

This script tries to guess the directory_name from the full_name.
Any part matching "(...)" or " - ..." will be considered as a comment,
    and added to the 'comment' field of the group this user is a member
    of (only if there is only one such group and no current comment).

All errors are displayed at the end of the run, the 'directory_name'
won't be fixed for them (still 'NULL'); this list can then be accessed
by simply running the script again.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
upgrade/1.0.1/xnet_directory_name.php [new file with mode: 0755]