Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 5 of 5
  1. #1
    rharder's Avatar
    rharder is offline Do not read this sign.
    Join Date
    Mar 2001
    Location
    Virginia, USA
    Posts
    1,189
    Thanks
    0
    Thanked 3 Times in 3 Posts

    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

  2. #2
    cabbage is offline Registered User
    Join Date
    Jun 2002
    Posts
    349
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I thought the point of using LDAP was to getaway from NetInfo?
    ~Cabbage

  3. #3
    rharder's Avatar
    rharder is offline Do not read this sign.
    Join Date
    Mar 2001
    Location
    Virginia, USA
    Posts
    1,189
    Thanks
    0
    Thanked 3 Times in 3 Posts
    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 Attached Files

  4. #4
    rharder's Avatar
    rharder is offline Do not read this sign.
    Join Date
    Mar 2001
    Location
    Virginia, USA
    Posts
    1,189
    Thanks
    0
    Thanked 3 Times in 3 Posts
    I've refined the script a bit. Cheers.

    -Rob
    Attached Files Attached Files

  5. #5
    lostinspace2011 is offline Registered User
    Join Date
    Oct 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

 

 

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •