0 Replies Latest reply: Jul 24, 2012 3:52 AM by Martin Rogers
Martin Rogers Level 1 (5 points)

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/ -list /Users >> aFile.txt


I can read the requested attributes for a single user:

B) dscl /LDAPv3/ -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)