I am trying to replicate at least some of the functionality of Workgroup Manager using the NSOpenDirectory.h API, available in 10.6. I can communicate normally with my local directory, but no matter what I try, I cannot establish a connection with the remote machine. Here is my installation code ODSessionand ODNode.
NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:@"remote.server.com", @"kODSessionProxyAddress",
@"username", @"kODSessionProxyUsername",
@"password", @"kODSessionProxyPassword", nil];
ODSession *session = [ODSession sessionWithOptions:options error:&error];
NSLog(@"Node names: %@", [session nodeNamesAndReturnError:&error]);
ODNode *node = [ODNode nodeWithSession:session type:kODNodeTypeNetwork error:&error];
Does anyone have experience with this structure or do I know what I'm doing wrong?
source
share