Rather than ldapdriver.get_user() returning None for non-existent
user, this change implements exception.LDAPUserNotFound to more
closely match the behavior of other drivers (db).
Change was made in public method only, and _check_user_exists()
which uses get_user() now catches and returns None if applicable.
Implemented test of NotFound exception in base auth test class.
Reviewed: https:/ /review. openstack. org/3741 github. com/openstack/ nova/commit/ fa295d1278ef43f e2e90902006a5d0 73d78173ad
Committed: http://
Submitter: Jenkins
Branch: master
commit fa295d1278ef43f e2e90902006a5d0 73d78173ad
Author: john-griffith <email address hidden>
Date: Thu Feb 2 22:15:58 2012 -0700
get_user behavior in ldapdriver
* Addresses bug 744462
Rather than ldapdriver. get_user( ) returning None for non-existent LDAPUserNotFoun d to more
user, this change implements exception.
closely match the behavior of other drivers (db).
Change was made in public method only, and _check_ user_exists( )
which uses get_user() now catches and returns None if applicable.
Implemented test of NotFound exception in base auth test class.
Change-Id: Ia13af759931ca0 c7327d541847305 37bafbe52ae