Logo Search packages:      
Sourcecode: zope-cmfldap version File versions

def CMFLDAP::LDAPMemberDataTool::LDAPMemberData::getPassword (   self  ) 

    Retrieve the user's password if there is a valid record in the 
    user folder cache, otherwise create a new one and set it
    on the user object and in LDAP

Definition at line 230 of file LDAPMemberDataTool.py.

00230                          :
        """
            Retrieve the user's password if there is a valid record in the 
            user folder cache, otherwise create a new one and set it
            on the user object and in LDAP
        """
        user_obj = self.getUser()
        pwd = user_obj._getPassword()

        if pwd == 'undef':      # This user object did not result from a login
            reg_tool = getToolByName(self, 'portal_registration')
            pwd = reg_tool.generatePassword()
            self.setSecurityProfile(password=pwd)
            self.acl_users._expireUser(user_obj)

        return pwd

InitializeClass(LDAPMemberData)


def manage_addLDAPMemberDataTool(self, REQUEST=None):


Generated by  Doxygen 1.6.0   Back to index