Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: shawnbishop on July 25, 2007, 02:20:08 PM

Title: lat-pseudonym is failing
Post by: shawnbishop 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???
Title: Re: lat-pseudonym is failing
Post by: shawnbishop 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
Title: Re: lat-pseudonym is failing
Post by: Stefano on October 27, 2010, 12:26:28 PM
IIRC, there should already be something similar in the forum.. did you search? :-)
Title: Re: lat-pseudonym is failing
Post by: shawnbishop 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?
Title: Re: lat-pseudonym is failing
Post by: Stefano 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
Title: Re: lat-pseudonym is failing
Post by: janet on October 27, 2010, 05:24:50 PM
shawnbishop

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

Then you just use babelfish to translate it !
Title: Re: lat-pseudonym is failing
Post by: mmccarn on October 29, 2010, 01:33:20 AM
http://wiki.contribs.org/Lazy_Admin_Tools

And, from that page:
http://forums.contribs.org/index.php?topic=37885.msg170809#msg170809
Title: Re: lat-pseudonym is failing
Post by: shawnbishop on October 29, 2010, 01:20:43 PM
Then I used the "Improbability Drive" to load it.. :lol:
Title: Re: lat-pseudonym is failing
Post by: CharlieBrady 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.