Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quick Open Directory question



From: Finlay Dobbie <email@hidden>

For dsOpenDirProxy, you're supposed to provide a tDataNode and two
tDataBuffers for authentication purposes. How are you meant to allocate
those without a dir ref? Or am I going to have to create a throw away
local dir reference to allocate those structures, open the remote
directory proxy, then close the local dir reference?

If you look at the sources to the DirectoryService framework, you'll notice that the dir ref is ignored for the various allocation functions. So you can simply pass in zero for that when calling dsDataBufferAllocate() for example.


http://www.opensource.apple.com/darwinsource/10.3.5/ DirectoryService-257.1/APIFramework/DirServicesUtils.cpp

-Jason
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.