<div dir="ltr"><pre>Hi Christian,<br><br>The answer to your 4th question is that you will need to modify the function "generate_uid" <br>in /usr/share/kolab-webadmin/lib/api/kolab_api_service_form_value.php.<br><br>
In my case I wanted it to be surname+intial where intial will be the first letters in the first name that makes<br>the UID unique e.g Mark Jones, Marjie Jones and Mary Jones become jonesm, jonesma, jonesmar respectively.<br>
<br>Below is the modified function:<br><br>8<--------------------------------------------------<br> private function generate_uid($postdata, $attribs = array())<br> {<br> if (isset($attribs['auto_form_fields']) && isset($attribs['auto_form_fields']['uid'])) {<br>
// Use Data Please<br> foreach ($attribs['auto_form_fields']['uid']['data'] as $key) {<br> if (!isset($postdata[$key])) {<br> throw new Exception("Key not set: " . $key, 12356);<br>
}<br> }<br><br> // TODO: Use preferredlanguage<br> if (isset($postdata['preferredlanguage'])) {<br> //console("Using locale for " . $postdata['preferredlanguage']);<br>
setlocale(LC_ALL, $postdata['preferredlanguage']);<br> }<br>/* else {<br> //console("No locale specified...!");<br> }<br>*/<br><br> $firstname = iconv('UTF-8', 'ASCII//TRANSLIT', $postdata['givenname']);<br>
$firstname = strtolower($firstname);<br> $firstname = preg_replace('/[^a-z-_]/i', '', $firstname);<br><br><br> $sirname = iconv('UTF-8', 'ASCII//TRANSLIT', $postdata['sn']);<br>
$sirname = strtolower($sirname);<br> $sirname = preg_replace('/[^a-z-_]/i', '', $sirname);<br><br> $x = 1;<br> <br> $uid = $sirname . substr($firstname, 0, $x);<br>
<br> $auth = Auth::get_instance($_SESSION['user']->get_domain());<br> $unique_attr = $this->unique_attribute();<br><br> while (($user_found = $auth->user_find_by_attribute(array('uid' => $uid)))) {<br>
if (!empty($postdata['id'])) {<br> $user_found_dn = key($user_found);<br> $user_found_unique_attr = $auth->get_entry_attribute($user_found_dn, $unique_attr);<br>
//console("user with uid $uid found", $user_found_unique_attr);<br> if ($user_found_unique_attr == $postdata['id']) {<br> //console("that's us.");<br>
break;<br> }<br> }<br><br> $x++;<br> $uid = $sirname . substr($firstname, 0, $x);<br> }<br><br> return $uid;<br> }<br>
}<br>8<-----------------------------------------------<br><br>I hope it helps.<br><br>Regards,<br><br>Blessing<br><br><br>Greetings to all,
first of all a huge thank you for this awesome software. We are testing
a kolab 3 installation with the goal to migrate our
Postfix/Postfixadmin/Roundcubemail/Dovecot/Dspam/MySQL solution to
kolab.
We are using about 100 mailboxes with 10 different domains. I have a few
question though:
1. How can I import existing Mailboxes/Users (about 20GB data) in kolab
3? Kolab 3 uses Cyrus-IMAP which has, as far as I know, a different
format to dovecot.
2. Thereīs already postfix and mysql running on our server. How good or,
lets say easy does kolab 3 integrate into a installation with existing
components like postfix/mysql/ldap etc.
3. While testing iīve notice that all created domains (besides the
primary domain) cannot be deleted anymore. Is this a bug?
4. The UID is not unique. It uses always the given name as UID. We have
a couple of users with the same given name so this leads to a problem.
Sure, you can edit the UID field and make it writeable but why not use
the givenname and a part of the surname as UID?
It took me some time to understand that created domains through the
webgui arenīt multi-domains as I would expect. There are only domain
aliases to the primary domain.
The feature of multi-domains ca only be configured through CLI </pre><br clear="all"><br>-- <br><div dir="ltr"><font face="Arial"><br>Blessing Chisvo (Managing Member)<br><br>Randalli
Investments cc</font><br><div><font face="Arial"><div><font face="Arial"><br>Cell: +27 74 569 0227</font></div><div><font face="Arial"> +27 78 051 2006<br>Fax: +27 86 552 5484</font></div></font></div></div>
</div>