[Setup] Re: remove LDAP users from Plone...
Maurits van Rees
m.van.rees at zestsoftware.nl
Mon Mar 26 13:07:28 UTC 2007
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."
More information about the Setup
mailing list