Koozali.org: home of the SME Server

The SME Pseudonyms

Daley

The SME Pseudonyms
« on: April 19, 2003, 04:33:43 PM »
Hi,

The sme server automatically creates pseudonyms of the form firstname.lastname and firstname_lastname for every user on the system, how can i disable this auto feature?

Thank you.
Daley

Ray Mitchell

Re: The SME Pseudonyms
« Reply #1 on: April 20, 2003, 05:01:03 PM »
Do a search on pseudonym, there was a recent post about this.

http://www.e-smith.org/bboard//read.php?f=3&i=29500&t=29500
Regards
Ray

Daley

Re: The SME Pseudonyms
« Reply #2 on: April 20, 2003, 05:11:54 PM »
looks likely we can't get rid or disable the auto create pseudonyms?

Thank you.
Daley

Damien Curtain

Re: The SME Pseudonyms
« Reply #3 on: April 20, 2003, 05:41:23 PM »
The only place I can see that pseudonyms are used is in the file /var/qmail/users/assign

If they bother you, and I'm curious why, why not just disable this file using them by creating an empty template to override 70pseudonyms

ie.
mkdir -p /etc/e-smith/templates-custom/var/qmail/users/assign/
touch /etc/e-smith/templates-custom/var/qmail/users/assign/70pseudonyms
/sbin/e-smith/expand-template /var/qmail/users/assign

When new users are added/users modified no pseudonyms will appear in /var/qmail/users/assign from this point on...
--
 Damien

Daley

Re: The SME Pseudonyms
« Reply #4 on: April 20, 2003, 06:04:33 PM »
Just have a quick tried, but the pseudonyms still create.

Thank you.
Daley

Damien Curtain

Re: The SME Pseudonyms
« Reply #5 on: April 21, 2003, 08:39:31 AM »
As I said that stops the use of them, not the creation. They will no longer appear in /var/qmail/users/assign assuming you did the above correctly. If your sure you want to stop them entirely from being created in /home/e-smith/accounts, and I'm curious as to why, then edit /usr/lib/perl5/site_perl/esmith/FormMagick/Panel/useraccounts.pm directly and either comment out or put conditionals around the creation of the automatic pseudonyms

In 5.6 I can do the following (hopefully this wont be churned in the conversion to html)


bash-2.05a# diff /usr/lib/perl5/site_perl/esmith/FormMagick/Panel/useraccounts.pm.vanilla /usr/lib/perl5/site_perl/esmith/FormMagick/Panel/useraccounts.pm
661c661,665
<         $accountdb->remove_user_auto_pseudonyms($acctName);
---
>         my $pseudonyms = $acct->prop('pseudonyms') || 'no' ;
>         if ($pseudonyms eq "yes")
>         {
>             $accountdb->remove_user_auto_pseudonyms($acctName);
>         }
675c679,683
<         $accountdb->create_user_auto_pseudonyms($acctName);
---
>         my $pseudonyms = $acct->prop('pseudonyms') || 'no' ;
>         if ($pseudonyms eq "yes")
>         {
>             $accountdb->create_user_auto_pseudonyms($acctName);
>         }
744c752,758
<     $accountdb->create_user_auto_pseudonyms($acctName);
---
>
>     my $pseudonyms = $acct->prop('pseudonyms') || 'no' ;
>     if ($pseudonyms eq "yes")
>     {
>         $accountdb->create_user_auto_pseudonyms($acctName);
>     }
>


Now only accounts where I later add a property pseudonyms will have the auto pseudonyms created. I'm not bothered if the above doesn't work for you, as I know it works here, use it merely as an example. You haven't even inidcated the version of e-smith your running...

Pseudonyms are a good idea, the addresses look more professional than account names and hide the account names of users.
--
 Damien