==================================================================
Please DO NOT REPLY to this mail or send email to the developers
about this bug. Please follow-up to Bugzilla using this link:
http://bugs.contribs.org/show_bug.cgi?id=7161
Have you checked the Frequently Asked Questions (FAQ)?
http://wiki.contribs.org/SME_Server:Documentation:FAQ
Please also take the time to read the following useful guide:
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================
--- Comment #2 from Unnilennium <[email protected]> ---
numerical uid could change from one installation to another for a same
username, unless it is specified AND available
the test is :
if ( &TestName($username))
{
[...]
}
else { print "User '$username' already exists on this server.\a\n";
}
TestName function do the following :
# Test name for illegal characters and length
sub TestName {
if ( ! $_[0] =~ /^[a-z][a-z\-\d]*$/ ) {
print "The name '$_[0]' contains illegal characters.\n";
print "User names should contain only lower-case letters, ";
print "numbers, hyphens or periods\n";
print "and should start with a lower-case letter.\n\a";
return 0;
}
if ( length($_[0]) > 31 ) {
print "The name '$_[0]' is too long. The maximum is 31 characters.\n";
return 0;
}
return -1;
}
which mean that when the error $username already exist is returned it is when
the username is simply illegal, not when it already exists. By the way, the
text returned is just inaccurate, I need to update the code.
The lines you point out are only to decide if the user need to be created or
updated.
Numerical UID are tested before using the functions FindUid and TestUid.
--
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at http://lists.contribs.org/mailman/public/contribteam/