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

Title: Disable auto pseudo creation
Post 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?


Title: Re: Disable auto pseudo creation
Post by: martap on April 09, 2008, 06:26:33 PM

Really?

Nobody?
Title: Re: Disable auto pseudo creation
Post by: brianr on April 09, 2008, 08:35:53 PM
Although I have no idea how you might achieve this I'd be interested to know why.
Title: Re: Disable auto pseudo creation
Post by: raem on April 10, 2008, 04:22:17 AM
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
Title: Re: Disable auto pseudo creation
Post by: mercyh on April 10, 2008, 04:10:42 PM
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.
Title: Re: Disable auto pseudo creation
Post by: m on April 11, 2008, 12:28:14 PM
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:
Code: [Select]
#!/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);