开发者

Open Directory directory domain name on Mac OS X [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
开发者_Python百科

Want to improve this question? Add details and clarify the problem by editing this post.

Closed last year.

Improve this question

I can retrieve the logged in user name using NSUserName(), but how do I get the Open Directory "directory domain name" or other domain he is a member of? i.e. similar to the notion in Windows where a logged-in user is DOMAIN\USERNAME, where DOMAIN is his local machine, workgroup or Active Directory domain.


You may be able to do this with Directory Services. Alternatively, check out the new Open Directory APIs introduced in 10.6; you have a choice between a Core-Foundation-based API and a Cocoa-based API.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜