X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fhomeview.py;h=6c5ee9a73076df58bc4b3c978f46d6e0da2e96cc;hb=22d09f122df0baa7f9d033e687b0422ea12b0e07;hp=cf3fcbab558f1def7e3e03d2cbcb62e436377a56;hpb=9684bf9151df4050813361ab4816e9c07a1ba08d;p=myslice.git diff --git a/portal/homeview.py b/portal/homeview.py index cf3fcbab..6c5ee9a7 100644 --- a/portal/homeview.py +++ b/portal/homeview.py @@ -64,8 +64,8 @@ class HomeView (FreeAccessView, ThemeView): ################################################# ## first you must open a connection to the server try: - # Connect to NOC - l = ldap.initialize("ldap://10.128.0.50:389") + # Connect to UFRJ + l = ldap.initialize("ldap://200.130.15.186:389") # Bind/authenticate with a root user to search all objects l.simple_bind_s("cn=Manager,dc=br,dc=fibre","fibre2013") @@ -316,8 +316,9 @@ class HomeView (FreeAccessView, ThemeView): else: # log user activity #activity.user.login(self.request, "error") - env['state'] = "Your username and/or password were incorrect." - + + env['state'] = "Your username and/or password were incorrect." + return render_to_response(self.template, env, context_instance=RequestContext(request)) def get (self, request, state=None):