Adding external contacts to Global Address Book

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

clawes

Adding external contacts to Global Address Book

Postby clawes » Thu Aug 09, 2007 4:38 pm

Is it possible to add external contacts to the Scalix Global Addressbook from the command line (CLI)?

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

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Fri Aug 10, 2007 5:29 am

omaddent is the one you're looking for here.

dwerthmu
Posts: 84
Joined: Wed Apr 04, 2007 11:19 am

Postby dwerthmu » Fri Aug 10, 2007 4:19 pm

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.

clawes

Still no dice with omaddent

Postby clawes » Tue Aug 21, 2007 11:46 am

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?
:?:

mikethebike
Posts: 566
Joined: Mon Nov 28, 2005 4:16 pm
Location: England

Postby mikethebike » Tue Aug 21, 2007 1:09 pm

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.

clawes

Postby clawes » Tue Aug 21, 2007 3:26 pm

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.
:?:

mikethebike
Posts: 566
Joined: Mon Nov 28, 2005 4:16 pm
Location: England

Postby mikethebike » Tue Aug 21, 2007 3:58 pm

The client will need to log out and back in again to see the entry, as they have the cut-down directory locked.

Mick

dwerthmu
Posts: 84
Joined: Wed Apr 04, 2007 11:19 am

Postby dwerthmu » Tue Aug 21, 2007 4:35 pm

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

mikethebike
Posts: 566
Joined: Mon Nov 28, 2005 4:16 pm
Location: England

Postby mikethebike » Tue Aug 21, 2007 5:12 pm

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

clawes

Thanks!

Postby clawes » Tue Aug 21, 2007 10:26 pm

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?

mikethebike
Posts: 566
Joined: Mon Nov 28, 2005 4:16 pm
Location: England

Postby mikethebike » Wed Aug 22, 2007 4:25 am

clawes,

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

or create a file with the usernames, then

omaddpdln -l <listname> -f filename

Mick

clawes

Thanks Again!

Postby clawes » Thu Aug 23, 2007 12:50 pm

Thanks Again!


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 5 guests