Koozali.org: home of the SME Server

lat-pseudonym is failing

Offline shawnbishop

  • *****
  • 298
  • +0/-0
lat-pseudonym is failing
« on: July 25, 2007, 02:20:08 PM »
Good Day

I am trying to add over 1000 pseudonyms to SME Server.

This is the format of my file

lgomarp|lg.omarp|omarp@3logics.co.za|lg_omarp

when i do the following

#lat-pseudonym -a -i Pseudonyms

I get the following error

The pseudonym 'omarp@3logics.co.za' contains illegal characters. The name should contain only
lower-case letters, numbers, hyphens, periods and underscores, and should
start with a lower-case letter.
Creating pseudonym 'lg_omarp' for user lgomarp...

So it is adding all the other pseudonyms, but not the pseudonym with the "@" symbol in it, but this should be valid as it is an email address

Anybody know how to go about fixing this???

Offline shawnbishop

  • *****
  • 298
  • +0/-0
Re: lat-pseudonym is failing
« Reply #1 on: October 27, 2010, 11:33:06 AM »
I keep coming up with the error and it is so hard to find the solutions, I have decided to post it here


Code: [Select]

cp /usr/sbin/lat-pseudonyms /root/my-lat-script

pico /root/my-lat-script


Then Edit

sub TestName

go to line

Code: [Select]

 if ( $_[0] =~ /^[a-z][a-z\-\_\d\.]*$/ ) {


Change to

Code: [Select]

 if ( $_[0] =~ /^[a-z][a-z\-\_\d\.\@]*$/ ) {


Then run

Code: [Select]

/root/my-lat-script options

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: lat-pseudonym is failing
« Reply #2 on: October 27, 2010, 12:26:28 PM »
IIRC, there should already be something similar in the forum.. did you search? :-)

Offline shawnbishop

  • *****
  • 298
  • +0/-0
Re: lat-pseudonym is failing
« Reply #3 on: October 27, 2010, 05:01:17 PM »
Nope Stefano..It is "hidden" in the Italian forum, and if you cant read Italian..:-)

I knew it was somewhere and took an hour to find via a link to the Italian forum, so just posted it here, should probably go into the wiki?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: lat-pseudonym is failing
« Reply #4 on: October 27, 2010, 05:13:20 PM »
doh.. I didn't remember it was in italian forum :-)

IMHO this should be in bugzilla (if lat-tools is in cvs) or directly to the package coder

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: lat-pseudonym is failing
« Reply #5 on: October 27, 2010, 05:24:50 PM »
shawnbishop

Quote
....and if you cant read Italian..:-)

Then you just use babelfish to translate it !
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.


Offline shawnbishop

  • *****
  • 298
  • +0/-0
Re: lat-pseudonym is failing
« Reply #7 on: October 29, 2010, 01:20:43 PM »
Then I used the "Improbability Drive" to load it.. :lol:

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: lat-pseudonym is failing
« Reply #8 on: October 29, 2010, 11:00:42 PM »
I get the following error
...
Anybody know how to go about fixing this???

Report the problem to the contrib author, via the bug tracker.