collective / pas.plugins.ldap

Zope (and Plone) PAS Plugin providing users and groups from LDAP directory
http://pypi.python.org/pypi/pas.plugins.ldap
Other
13 stars 20 forks source link

Raise RuntimeError instead of KeyError if userid was not found on pwchange #6

Closed saily closed 10 years ago

saily commented 10 years ago

Products.PlonePAS.pas.userSetPassword expects a RuntimeError to be raised if a userid was not found. I'm open for discussion to change that in Products.PlonePAS, but we could change it faster here.

See: https://github.com/plone/Products.PlonePAS/blob/master/Products/PlonePAS/pas.py#L366