LDAP integration: change name/email/password/keys -- Guilherme Iecker
[unfold.git] / portal / homeview.py
index cf3fcba..6c5ee9a 100644 (file)
@@ -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):