Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dsimport file format and group membership




On Dec 6, 2007, at 12:32 PM, Josh Wisenbaker wrote:


On Dec 6, 2007, at 11:16 AM, Axel Luttgens wrote:

On 6/12/07 15:45, Simon Slavin wrote:

So I was trying to work out the dsimport file format. Couldn't find it in any of the manuals so I ran dsexport and look at that. I'm puzzled.

I exported three users and two groups and I could pick out the parts of the file which corresponded to my three users. But before those parts of the file I found a couple of things:

1) 0x0A 0x5C 0x3A 0x2C
2) a description of the setup of the Open Directory server I exported from.


Can I just miss those things out of files I import ?


If I correctly understood your question, I would say: no.
But you would need to adapt those parts, depending on the info you want to import.


The man page for dsimport(1) as well as the "Mac OS X Server User Management" guide provide informations about the format o be used for the import file.

Yeah that can be confusing. I did about 20 slides last year at MacWorld just on the header.


If you leave the header out you can import with WGM and will get a field matching dialog similar to filemaker.

exactly!

i keep a running header that I append to a list of names and import from a file often.

example  header

0x0A 0x5C 0x3A 0x2C dsRecTypeStandard:Users 21 dsAttrTypeStandard:RecordName dsAttrTypeStandard:AuthMethod dsAttrTypeStandard:Password dsAttrTypeStandard:UniqueID dsAttrTypeStandard:PrimaryGroupID dsAttrTypeStandard:Comment dsAttrTypeStandard:Expire dsAttrTypeStandard:Change dsAttrTypeStandard:RealName dsAttrTypeStandard:NFSHomeDirectory dsAttrTypeStandard:HomeDirectoryQuota dsAttrTypeStandard:UserShell dsAttrTypeStandard:PrintServiceUserData dsAttrTypeStandard:HomeDirectory dsAttrTypeStandard:FirstName dsAttrTypeStandard:LastName dsAttrTypeStandard:AddressLine1 dsAttrTypeStandard:EMailAddress dsAttrTypeStandard:IMHandle dsAttrTypeNative:mailHost

<here is where i add my users to import>

very scriptable :)


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macos-x-server mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >dsimport file format and group membership (From: Simon Slavin <email@hidden>)
 >Re: dsimport file format and group membership (From: Axel Luttgens <email@hidden>)
 >Re: dsimport file format and group membership (From: Josh Wisenbaker <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.