Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Use dscl to write to file a list of user recordNames and MailAttribute

Hello All,


osx server 10.4


I'm attempting to export a list of user specific account keys to a file. So far I can export a list of user names:

A) dscl /LDAPv3/127.0.0.1 -list /Users >> aFile.txt


I can read the requested attributes for a single user:

B) dscl /LDAPv3/127.0.0.1 -read /Users/MyUser recordName MailAttribute >> aFile.txt


What I can't work out, due to my lack of Mac Terminal/Scripting knowledge, is how to export the recordName and MailAttribute keys for each user in the exported users list.


All help greatly appreciated.....


PS I don;t need the workgroup manager export as that has far too much "fluff" in it for my purpose.

Xserve, Mac OS X (10.4.1)

Posted on Jul 24, 2012 3:52 AM

Reply

There are no replies.

Use dscl to write to file a list of user recordNames and MailAttribute

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.