"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "linotpd/src/linotp/lib/user.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).

user.py  (LinOTP-release-2.12):user.py  (LinOTP-release-2.12.1)
skipping to change at line 311 skipping to change at line 311
userlist = [] userlist = []
for resolver in resolvers: for resolver in resolvers:
(resId, resClass, resConf) = self.getResolverConf(resolver) (resId, resClass, resConf) = self.getResolverConf(resolver)
uid = self.getResolverUId(resolver) uid = self.getResolverUId(resolver)
n_user = User(self.login) n_user = User(self.login)
n_user.addResolverUId(resClass, uid, resConf, resId, resClass) n_user.addResolverUId(resClass, uid, resConf, resId, resClass)
userlist.append(n_user) userlist.append(n_user)
return userlist return userlist
def get_full_qalified_names(self):
"""Get full qualified names.
:return: list of full qualified names
"""
fqn = []
fqn.append(self.login)
if self.realm:
fqn.append("%s@%s" % (self.login, self.realm))
if self.resolver_config_identifier:
fqn.append(
"%s.%s:" % (self.login, self.resolver_config_identifier))
return fqn
def exists(self): def exists(self):
""" """
check if a user exists in the given realm check if a user exists in the given realm
""" """
if self._exists in [True, False]: if self._exists in [True, False]:
return self._exists return self._exists
self._exists = False self._exists = False
realms = getRealms(self.realm.lower()) realms = getRealms(self.realm.lower())
skipping to change at line 559 skipping to change at line 578
res = getResolversOfUser(usr) res = getResolversOfUser(usr)
# #
# if nothing is found, we try to find fall back to the # if nothing is found, we try to find fall back to the
# user definition like u@r # user definition like u@r
if not res and 'realm' not in param and '@' in usr.login: if not res and 'realm' not in param and '@' in usr.login:
ulogin, _, urealm = usr.login.rpartition('@') ulogin, _, urealm = usr.login.rpartition('@')
if urealm in getRealms(): if urealm.lower() in getRealms():
realm = urealm realm = urealm
login = ulogin login = ulogin
usr = User(ulogin, urealm) usr = User(ulogin, urealm)
res = getResolversOfUser(usr) res = getResolversOfUser(usr)
usr.resolvers_list = res usr.resolvers_list = res
log.debug("[getUserFromParam] creating user object %r,%r,%r", log.debug("[getUserFromParam] creating user object %r,%r,%r",
login, realm, resolver_config_id) login, realm, resolver_config_id)
log.debug("[getUserFromParam] created user object %r ", usr) log.debug("[getUserFromParam] created user object %r ", usr)
 End of changes. 2 change blocks. 
1 lines changed or deleted 20 lines changed or added

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