Page 1 of 1

What file stores the address book?

Posted: Wed Nov 07, 2007 4:26 pm
by lynchanthony43
I have a need to take the address book and put it into a postgres database for use by another application. What file contains the complete address book and is it accessible as an ascii file?

Posted: Wed Nov 07, 2007 5:23 pm
by kanderson
The best bet would be to have your application make an LDAP call to the scalix server. There really isn't a file that contains that information because it's dynamic.

If you need it as a file, you could dump it out with something like:

omsearch -s -m @ALL-ATTR@ > /tmp/dumpfile.txt

And parse it from there.

Alternately, if you just wanted names, maybe this would work better.

omshowu -m all > /tmp/dumpfile2.txt

Kev.

Posted: Thu Nov 08, 2007 9:01 am
by lynchanthony43
Thanks,

I think the command line would be easier to script. I have not done much with LDAP though I think that would likely be a more efficient manner of getting the information I am trying to keep from having the developer write out too much code. If I can take this and stuff it in our db it will be much easier.

Tony

Posted: Thu Nov 08, 2007 11:08 am
by kanderson
Your dev should be fine using tools like ldapsearch. That's common and a straightforward command to use...

Kev.