userassociation table in askbot db
 

Whats the importance of the below code in deps/django_authopenid/backends.py ? I have integrated LDAP and LDAP server seems to be returning response but code fails over here and user is hence not able to login.

Does below code expects some predefined data in table "django_authopenid_userassociation" ?

assoc = UserAssociation.objects.get(
openid_url = ldap_username + '@ldap',
provider_name = 'ldap'
)
print "backend.py - " + str(assoc)
user = assoc.user

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
manish's avatar
53
manish
asked 9 years ago, updated 9 years ago

Comments

To display blocks of code, either indent them with 4 spaces, or select the corresponding lines and click the "code" button (the icon with '101 010'). Can you edit your question to do that? To display inline code, surround it within "backticks" or "backquotes" `.

slelievre's avatar slelievre (9 years ago)
see more comments