Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > DirectoryService Framework

DirectoryService Framework
Thread Tools
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Dec 25, 2004, 04:04 PM
 
Has anyone had any experience working with this framework to interact with (and modify) Open Directory?

I'm wanting to write software to do something that Apple forgot in Workgroup Manager.

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Dec 25, 2004, 06:22 PM
 
Yes. It's a horrendous disgusting vomitous piece of <insert expletive of choice>.

What are you trying to do?
     
Detrius  (op)
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Dec 25, 2004, 08:38 PM
 
Originally posted by Angus_D:
Yes. It's a horrendous disgusting vomitous piece of <insert expletive of choice>.

What are you trying to do?
It's been a while since I've been here in the developer forums, but I have the general Cocoa stuff down. I've recently been working in OS X Server (hence the ACSA certification). Apple has no useful interface for editing the contact information for a person in Open Directory. The fields exist and work if you insert the data one field at a time by hand (I have this much working on my server). I want to write a program to make this significantly easier--so that people don't have to use MS Exchange to do this. Once I have that code down (and I know what the options are), I'm probably also going to make an AddressBook plugin to simplify the process even further.

In a few minutes of searching, I didn't find any other programs out there that do this. I know how to do this by hand at the command line using dscl, but after looking at the NSTask documentation, I figure it may be better to go through the DirectoryService framework. However, your description applies very well even to the documentation.

I was hoping I'd get lucky and find someone that could save me a few days of research with just a few sentences of input.

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Dec 26, 2004, 08:01 AM
 
I was under the impression that you could set all of this in Address Book, which I have been told talks DS.

Also look at tools that modify LDAP, since Open Directory in OS X Server is just LDAPv3 with extra crazy Apple schemas and other proprietary evil. Even the LDAP library is probably a better bet than the DS framework.

I kind of have an ongoing project to sanitize the DS API and make it usable/documented, but it's kind of not very interesting.
     
Detrius  (op)
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Dec 26, 2004, 09:52 AM
 
Address Book reads from DirectoryService, but it won't write to it. If it will, I haven't figured out how. I have the DirectoryService portion of AddressBook working with my OpenDirectory server, but the way to make this work would be out of the question for any group with more than a few people. Therefore, it seems to me that it's effectively useless without a nice UI written on top of it.

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:02 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2