Lines 407-413
class School(UCSSchoolHelperAbstractClass):
|
Link Here
|
---|
|
407 |
schools.append(cls.from_dn(cls(name=ou).dn, lo)) |
407 |
schools.append(cls.from_dn(cls(name=ou).dn, lo)) |
408 |
except noObject: |
408 |
except noObject: |
409 |
pass |
409 |
pass |
410 |
return cls._filter_local_schools(schools) |
410 |
return cls._filter_local_schools(schools, lo) |
411 |
|
411 |
|
412 |
if 'ou=' in lo.binddn: |
412 |
if 'ou=' in lo.binddn: |
413 |
# user has no ucsschoolSchool attribute (not migrated yet) |
413 |
# user has no ucsschoolSchool attribute (not migrated yet) |
Lines 418-424
class School(UCSSchoolHelperAbstractClass):
|
Link Here
|
---|
|
418 |
logger.debug('Schools from binddn: Found an OU in the LDAP binddn. Restricting schools to only show %s', school_dn) |
418 |
logger.debug('Schools from binddn: Found an OU in the LDAP binddn. Restricting schools to only show %s', school_dn) |
419 |
school = cls.from_dn(school_dn, None, lo) |
419 |
school = cls.from_dn(school_dn, None, lo) |
420 |
logger.debug('Schools from binddn: Found school: %r', school) |
420 |
logger.debug('Schools from binddn: Found school: %r', school) |
421 |
return cls._filter_local_schools([school]) |
421 |
return cls._filter_local_schools([school], lo) |
422 |
|
422 |
|
423 |
logger.warning('Schools from binddn: Unable to identify OU of this account - showing all local OUs!') |
423 |
logger.warning('Schools from binddn: Unable to identify OU of this account - showing all local OUs!') |
424 |
return School.get_all(lo) |
424 |
return School.get_all(lo) |