"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/identity/backends/ldap/core.py" between
keystone-15.0.0.tar.gz and keystone-15.0.1.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Stein" series (maintained release).

core.py  (keystone-15.0.0):core.py  (keystone-15.0.1)
skipping to change at line 311 skipping to change at line 311
values['enabled'] = orig_enabled values['enabled'] = orig_enabled
values['options'] = {} # options always empty values['options'] = {} # options always empty
return values return values
def get(self, user_id, ldap_filter=None): def get(self, user_id, ldap_filter=None):
obj = super(UserApi, self).get(user_id, ldap_filter=ldap_filter) obj = super(UserApi, self).get(user_id, ldap_filter=ldap_filter)
obj['options'] = {} # options always empty obj['options'] = {} # options always empty
return obj return obj
def get_filtered(self, user_id): def get_filtered(self, user_id):
user = self.get(user_id) try:
return self.filter_attributes(user) user = self.get(user_id)
return self.filter_attributes(user)
except ldap.NO_SUCH_OBJECT:
raise self.NotFound(user_id=user_id)
def get_all(self, ldap_filter=None, hints=None): def get_all(self, ldap_filter=None, hints=None):
objs = super(UserApi, self).get_all(ldap_filter=ldap_filter, objs = super(UserApi, self).get_all(ldap_filter=ldap_filter,
hints=hints) hints=hints)
for obj in objs: for obj in objs:
obj['options'] = {} # options always empty obj['options'] = {} # options always empty
return objs return objs
def get_all_filtered(self, hints): def get_all_filtered(self, hints):
query = self.filter_query(hints, self.ldap_filter) query = self.filter_query(hints, self.ldap_filter)
 End of changes. 1 change blocks. 
2 lines changed or deleted 5 lines changed or added

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