MagerValp / CreateUserPkg

This project has been archived and is no longer maintained
262 stars 43 forks source link

Feature Request - Create guest type accounts #29

Open ghost opened 11 years ago

ghost commented 11 years ago

I would like to have the option to create a guest account using CreateUserPkg. In some environments might be useful to create a custom guest account so that the user data is deleted on logout.

Currently I am doing this using a postflight script . The script is very raw but I think it should be easy to include the feature in the app

Noel

MagerValp commented 11 years ago

What specific feature is missing if you generate a package that creates a user named e.g. "MyGuest" with CreateUserPkg?

ghost commented 11 years ago

A guest type account has specific properties in OSX . The main benefit for us is that the user home directory is deleted once the user logs out or reboots. OSX prompts with a message explaining this, which makes it ideal for machines in public locations or kiosks logout message reboot message shutdown message

MagerValp commented 11 years ago

OK so the actual missing piece is a checkbox that sets dsAttrTypeNative:_guest to true?

ghost commented 11 years ago

actually all the extra dsAttrTypeNative attributes are necessary. Each OS X version requires different ones. Plus the system.keychain trick on anything >10.6 to work around the kerberos key generation.

Because of the target specific version I am not sure whether it is doable to add this feature with the current approach.

MagerValp commented 11 years ago

Interesting. In that case no, the current approach with deploying plists won't work.