Moserr, on 2007-03-24:
> Hello,
>
> I am using LDAPMultiPlugins 1.5 (without the patch in antiloop.plone.org) 
> and LDAPUserFolder 2.7 in Plone 2.5.1.
>
> If I watch all the plugins that are available in LDAPMultiPlugins 
> (/plone_site/acl_users/LDAPMultiplugin_plugin), I have a plugin called 
> UserManagement (doChangeUser).
>
> How can I have the plugin called UserManagement (doDeleteUser), for exemple. 
> Do I have change code in LDAPMultiPlugin.py?

Yes, this is one of the things that the antiloop patch adds:

See class LDAPMultiPlugin in LDAPMultiPlugin.py:

    def doDeleteUser( self
                 , login
                 ):
        """ Remove a user record from a User Manager. """
        acl = self._getLDAPUserFolder()

        if acl is not None:
            user = acl.getUser(login)

            if user is not None:
                user_dn = user.getUserDN()

                acl.manage_deleteUsers(dns=[user_dn])




-- 
Maurits van Rees | http://maurits.vanrees.org/ [NL]
            Work | http://zestsoftware.nl/
"Do not worry about your difficulties in computers,
 I can assure you mine are still greater."


_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup

Reply via email to