Skip to content

Commit 02ee742

Browse files
committed
Monkeypatch out checking for affiliation, as berkeleyEduAffiliations is being removed from anonymous LDAP searches.
1 parent e86d941 commit 02ee742

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ocflib/account/creation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,10 @@ def validate_calnet_uid(uid):
261261
raise ValidationError("CalNet UID can't be found in university LDAP.")
262262

263263
# check if user is eligible for an account
264-
affiliations = attrs['berkeleyEduAffiliations']
265-
if not eligible_for_account(affiliations):
266-
raise ValidationWarning(
267-
'Affiliate type not eligible for account: ' + str(affiliations))
264+
# affiliations = attrs['berkeleyEduAffiliations']
265+
# if not eligible_for_account(affiliations):
266+
# raise ValidationWarning(
267+
# 'Affiliate type not eligible for account: ' + str(affiliations))
268268

269269

270270
def eligible_for_account(affiliations):

ocflib/vhost/web.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def eligible_for_vhost(user):
8787
return True
8888
elif 'calnetUid' in attrs:
8989
attrs_ucb = user_attrs_ucb(attrs['calnetUid'])
90-
if attrs_ucb and 'EMPLOYEE-TYPE-ACADEMIC' in attrs_ucb['berkeleyEduAffiliations']:
90+
if attrs_ucb: # and 'EMPLOYEE-TYPE-ACADEMIC' in attrs_ucb['berkeleyEduAffiliations']:
9191
return True
9292

9393
return False

0 commit comments

Comments
 (0)