image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old September 4th, 2002, 12:51 PM
rharder's Avatar
Do not read this sign.
 
Join Date: Mar 2001
Location: Virginia, USA
Posts: 1,186
Thanks: 0
Thanked 0 Times in 0 Posts
rharder is on a distinguished road
Yes, you CAN share your Address Book with LDAP!

It's a round-about way, and I'm writing an AppleScript to make it easier, but basically you can use the 'nicl' command to create a NetInfo database that consists wholly of your Address Book names, emails, and phone numbers. Then you tell your /etc/openldap/slapd.conf file to read this "NetInfo" datasource, and voila: your Address Book is available to other family members, work associates, hackers, etc. Of course you don't get live updates as you update your Address Book, but you can always "sync" your phony NetInfo database file whenever you need to.

If you want to jump the gun, start playing around with commands like this:
Code:
% nicl -raw addressbook.nidb -create
% nicl -raw addressbook.nidb -create /users
% nicl -raw addressbook.nidb -create /users/id1234
% nicl -raw addressbook.nidb -create /users/id1234 realname "John Doe"
% nicl -raw addressbook.nidb -create /users/id1234 mail john@doe.com
% nicl -raw addressbook.nidb -create /users/id1234 phonenumber 444-555-1212
I'll post the AppleScript as soon as I finish it. I'm maybe a day or two away.

-Rob
__________________
There are only 10 kinds of people in the world:
Those who understand binary, and those who don't.
Reply With Quote
  #2  
Old September 4th, 2002, 06:17 PM
Registered User
 
Join Date: Jun 2002
Posts: 349
Thanks: 0
Thanked 0 Times in 0 Posts
cabbage is on a distinguished road
I thought the point of using LDAP was to getaway from NetInfo?
__________________
~Cabbage
Reply With Quote
  #3  
Old September 4th, 2002, 08:03 PM
rharder's Avatar
Do not read this sign.
 
Join Date: Mar 2001
Location: Virginia, USA
Posts: 1,186
Thanks: 0
Thanked 0 Times in 0 Posts
rharder is on a distinguished road
Yes, that's how Apple uses it, if you have it configured that way for your network. You can have your login name and password served up from an LDAP server or something, but for the rest of us, it can be useful to share our addressbook with other users (like family).

Attached is the script. It creates an AddressBook.nidb folder in your Documents folder (you can move it). Then you update your /etc/openldap/slapd.conf file to point to that AddressBook.nidb folder instead of /var/db/netinfo/network.nidb, and voila you have an LDAP server giving up your email and phone numbers. Of course you have to start the ldap server with something like sudo /usr/libexec/slapd or by adding LDAPSERVER=-YES- to /etc/hostconfig and restarting.

-Rob
Attached Files
File Type: zip address book to ldap.sit.zip (27.9 KB, 52 views)
__________________
There are only 10 kinds of people in the world:
Those who understand binary, and those who don't.
Reply With Quote
  #4  
Old October 30th, 2002, 01:13 PM
rharder's Avatar
Do not read this sign.
 
Join Date: Mar 2001
Location: Virginia, USA
Posts: 1,186
Thanks: 0
Thanked 0 Times in 0 Posts
rharder is on a distinguished road
I've refined the script a bit. Cheers.

-Rob
Attached Files
File Type: zip address_book_to_ldap_sit.zip (27.9 KB, 79 views)
__________________
There are only 10 kinds of people in the world:
Those who understand binary, and those who don't.
Reply With Quote
  #5  
Old March 24th, 2008, 08:47 PM
Registered User
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
lostinspace2011 is on a distinguished road
Address Book X LDAP

You might find ABxLDAP very useful to keep you LDAP directory updated. It synchronised your LDAP directory as / when changes are mode to the clients local Address Book. Instructions for configuring and using LDAP on both OS X and OS X server are also available on the web site, although some require a medium level of comfort with terminal :-)

On the same website you can also get Address Book Server which uses a relational database instead and synchronised in both directions.

The web site is : http://www.addressbookserver.com

Have fun
Alex
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP directories in Address Book Dekatophil Mac OS X System & Mac Software 0 August 16th, 2003 04:11 AM
converting quickmail address book for Apple Mail wapstar Mac OS X System & Mac Software 0 May 21st, 2003 03:17 PM
Modem and reboot kgraph Mac OS X System & Mac Software 10 March 22nd, 2003 07:20 AM
Disable Sent Mail Addresses in Address Book? dricci Mac OS X System & Mac Software 1 April 21st, 2002 03:43 PM
Any LDAP address book software? rharder Mac OS X System & Mac Software 0 June 21st, 2001 06:02 AM


All times are GMT -5. The time now is 09:55 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.