Koozali.org: home of the SME Server

Disable auto pseudo creation

Offline martap

  • 2
  • +0/-0
Disable auto pseudo creation
« 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?



Offline martap

  • 2
  • +0/-0
Re: Disable auto pseudo creation
« Reply #1 on: April 09, 2008, 06:26:33 PM »

Really?

Nobody?

Offline brianr

  • *
  • 990
  • +2/-0
Re: Disable auto pseudo creation
« Reply #2 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.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Disable auto pseudo creation
« Reply #3 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
...

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: Disable auto pseudo creation
« Reply #4 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.

Offline m

  • *****
  • 276
  • +0/-0
  • Peet
Re: Disable auto pseudo creation
« Reply #5 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);