|
#1
| |||
| |||
| Need help scripting user import
Hello, I was wondering if someone could help me build a script to import the Client Control Database (CCD) from MacAdministrator 3.0 into Mac OS X Server 10.3. The CCD is stored in directories of XML files. Each XML file is named after the user's login name. This is an example of one of the XML files. We'll say the file is named 'user1': Code: <LoginEnabled>1</LoginEnabled> <PrintCredits>0</PrintCredits> <MacAdminPasswordOn>1</MacAdminPasswordOn> <MacAdminPassword>password</MacAdminPassword> <LoginList></LoginList> Code: 0x0A 0x5C 0x3A 0x2C dsRecTypeStandard:Users 3 dsAttrTypeStandard:RecordName dsAttrTypeStandard:Password dsAttrTypeStandard:RealName user1:password:user1 If you want to read more on the file format, and what the hex numbers at the top are for, look at this PDF. So basically, I need a script to build an XML file by taking the password out of the MacAdministrator XML files, and putting the file's name on either side of the password seperated by ':'. I can then throw the example Record Descriptor in my second example, and import them all into Mac OS X Server 10.3. Any Questions? Thanks! skinlayers |
![]() |
| Bookmarks |
| Thread Tools | |
|
|