Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: martap on April 04, 2008, 01:25:06 PM
-
I'd like SME not to create the first.last name psuedo when creating a new user. Is there a way to disable this? Or disable pseudo creation completely?
-
Really?
Nobody?
-
Although I have no idea how you might achieve this I'd be interested to know why.
-
martap
> Really?
> Nobody?
You really have to do the searching yourself sometimes.
This has been discussed in these forums a few times, there was a significant comment from Charlie Brady.
You need to do some extensive searching of old forum posts to find a possible solution, going back a year or two. Use the advanced search page
http://forums.contribs.org/index.php?action=search;advanced
-
From what I have seen in very......old discussions there is significant code changes involved to achieve this.
One such discussion lives here:
http://forums.contribs.org/index.php?topic=23644.0
I do not reccommend that you try any of the suggestions in those discussions unless you fully understand the SME systems involved. I am only wishing to give you a concept of the complexity of the change that you are dealing with.
-
martap,
the best way to achieve this without modifying any code, is to add an action script 'delete-auto-pseudonyms' that deletes the auto pseudonyms and symbloc link it as 'S99delete-auto-pseudonyms' into the 'user-create' and 'user-modify' event directories.
This script should (please test!) do this:
#!/usr/bin/perl -w
package esmith;
use strict;
use esmith::AccountsDB;
my $accounts = esmith::AccountsDB->open;
my ($event, $userName) = @ARGV;
$accounts->remove_user_auto_pseudonyms($userName);
exit (0);