"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "linotpd/src/linotp/lib/policy/filter.py" between
LinOTP-release-2.12.tar.gz and LinOTP-release-2.12.1.tar.gz

About: LinOTP is a flexible and versatile OTP-platform for strong user authentication (two-factor authentication with one time passwords).

filter.py  (LinOTP-release-2.12):filter.py  (LinOTP-release-2.12.1)
skipping to change at line 155 skipping to change at line 155
from linotp.lib.resolver import similar_resolver_exists from linotp.lib.resolver import similar_resolver_exists
if not similar_resolver_exists(def_resolver): if not similar_resolver_exists(def_resolver):
return False return False
# if we have no user part and came that far, we are done # if we have no user part and came that far, we are done
if def_resolver == user_def[:-1]: if def_resolver == user_def[:-1]:
return True return True
user_resolver = user_def[:-1] user_resolver = user_def[:-1]
# remove the resolver from the user and compare # remove the resolver from the user and compare
simple_user_def, _sep, _res = user_resolver.rpartition(".") simple_user_def = user_resolver
if '.' in user_resolver:
simple_user_def, _sep, _res = user_resolver.rpartition(".")
return self._compareUser(userObj, simple_user_def) return self._compareUser(userObj, simple_user_def)
class AttributeCompare(object): class AttributeCompare(object):
""" """
Policy Attribute Comparison to support user filter like Policy Attribute Comparison to support user filter like
pas.*@myDefReal#mobil ~= 1234 pas.*@myDefReal#mobil ~= 1234
support for comparrison operation like support for comparrison operation like
* exist: has this attribute * exist: has this attribute
 End of changes. 1 change blocks. 
1 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)