Page 1 of 1

Adding external contacts to Global Address Book

Posted: Thu Aug 09, 2007 4:38 pm
by clawes
Is it possible to add external contacts to the Scalix Global Addressbook from the command line (CLI)?

If so, what command do I use?
:?:

Posted: Fri Aug 10, 2007 5:29 am
by Valerion
omaddent is the one you're looking for here.

Posted: Fri Aug 10, 2007 4:19 pm
by dwerthmu
Little more assistance for you. As we've been down this road before.

use omshowatt to see what all the parameters are.

There are a few required fields
Required Fields:

* OU1=internet
* CN
* S
* G

and OU1 needs to be unique, though you can turn off unique checking in general.cfg


omaddent and be run for single entries or with -f for a file full of entries. File format is 1 entire per line, with a new line between entries.

hope this helps.

its fairly quick tool. We added 7k records in under 5 minutes on a low end server.

Still no dice with omaddent

Posted: Tue Aug 21, 2007 11:46 am
by clawes
I ran the command below to add an external contact to the Scalix directory.

#sudo omaddent -t S -e G=Ken/S=Smith/IA=ken.smith@externalcompany.com/PHONE-1=555-1155
[OM 16958] Added 1 entry to the Directory


However, this entry does not show up in the Scalix Global Addressbook. What am I missing?
:?:

Posted: Tue Aug 21, 2007 1:09 pm
by mikethebike
if you run "omsearch -e s=smith/g=ken" does that contact show up?
Is the problem it not showing in Outlook?

Run omexeccda (see man page) which will re-sort your directory and it will appear.

Posted: Tue Aug 21, 2007 3:26 pm
by clawes
Yes, omsearch finds the entry. However, neither Outlook nor the Scalix Web Mail Client shows the entry in the System Addressbook.

I ran omexecccda but it did not seem to make a difference.

$ sudo omexeccda -d SYSTEM
Fetching all entries from Directory ... Please wait
Sorting Directory entries ... Please wait
Building Directory Access Tables ... Please wait


Again, my objective is to simply store external contacts in the Scalix Directory for ease of email and phone number lookups.
:?:

Posted: Tue Aug 21, 2007 3:58 pm
by mikethebike
The client will need to log out and back in again to see the entry, as they have the cut-down directory locked.

Mick

Posted: Tue Aug 21, 2007 4:35 pm
by dwerthmu
Logout being just close outlook and reopen.


I'm seeing an issue here that I didn't mention earlier.
If you place external users in the SYSTEM directory, then your internal users or "premium" users can't differentiate from an internal or external user.

This problem happens in two cases:(Annoys users and causes mistakes)

1) when using outlook with auto compete - the entire system directory is searched and if an entriy exists for Jon Internal and Jon External the user needs to continue to select the correct one.(not just type Jon) As when external entries are in a separate directory the user can tell outlook to search one address book prior to the other.
Can a virtual directory be created based on a query? like premium users.

2) When looking up entries in the system directory via the address book the user needs to be able to identify who is internal and who is external. Exchange puts an icon for external users. The partial solution we have come up with is external users CN is last name, first name
and internal are firstname, last name

Posted: Tue Aug 21, 2007 5:12 pm
by mikethebike
Try to avoid seperate directories, is a pain.
Something I have used in the past is using upper case for externals, or prefixing with EXT...like EXT-Smith

Mick

Thanks!

Posted: Tue Aug 21, 2007 10:26 pm
by clawes
Restarting Outlook and the Scalix Web Client did the trick.

Thanks again!

Next question:
How do I create a mailing list (aka Distribution List) from the command line?

Posted: Wed Aug 22, 2007 4:25 am
by mikethebike
clawes,

omaddpdl -l <listname>
omaddpdln -l <listname> -n "john smith"

or create a file with the usernames, then

omaddpdln -l <listname> -f filename

Mick

Thanks Again!

Posted: Thu Aug 23, 2007 12:50 pm
by clawes
Thanks Again!