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.
Retrieving data ...