Package ZenUtils :: Module Security
[hide private]
[frames] | no frames]

Module Security

source code

Functions [hide private]
 
backupACLUserFolder(context) source code
 
_createInitialUser(self)
Note: copied and adapted from AccessControl.User.BasicUser
source code
 
createPASFolder(context) source code
 
setupBasciAuthHelper(context) source code
 
setupCookieHelper(context) source code
 
setupRoleManager(context) source code
 
setupUserManager(context) source code
 
setupTypeSniffer(context) source code
 
setupProtocolChooser(context) source code
 
setupPASFolder(context) source code
 
replaceACLWithPAS(context, deleteBackup=False) source code
 
migratePAS(context) source code
Variables [hide private]
  ZENOSS_ROLES = ['ZenUser', 'ZenManager']
Function Details [hide private]

_createInitialUser(self)

source code 

Note: copied and adapted from AccessControl.User.BasicUser

If there are no users or only one user in this user folder, populates from the 'inituser' file in the instance home. We have to do this even when there is already a user just in case the initial user ignored the setup messages. We don't do it for more than one user to avoid abuse of this mechanism. Called only by OFS.Application.initialize().