1. Zhang Huangbin
  2. iredadmin-ose

Source

iredadmin-ose / controllers / ldap / basic.py

Diff from to

File controllers/ldap/basic.py

 import web
 from socket import getfqdn
 from urllib import urlencode
-from libs import __url_latest_ldap__, __version_ldap__, __no__, __id__
-from libs import iredutils, languages, settings
-from libs.ldaplib import auth, decorators, admin as adminlib, ldaputils, connUtils, attrs
+from libs import __url_latest_ose__, __version_ose__, __no__, __id__
+from libs import iredutils
+from libs.ldaplib import auth, decorators, admin as adminlib, ldaputils
 
 
 cfg = web.iredconfig
                 if len(r) == 0:
                     urlInfo = {
                         'a': cfg.general.get('webmaster', session.get('username', '')),
-                        'v': __version_ldap__,
+                        'v': __version_ose__,
                         'o': __no__,
                         'f': __id__,
                         'host': getfqdn(),
+                        'backend': cfg.general.get('backend', ''),
                     }
 
-                    url = __url_latest_ldap__ + '?' + urlencode(urlInfo)
+                    url = __url_latest_ose__ + '?' + urlencode(urlInfo)
                     newVersionInfo = iredutils.getNewVersion(url)
 
                     # Always remove all old records, just keep the last one.
 
         return web.render(
             'dashboard.html',
-            version=__version_ldap__,
+            version=__version_ose__,
             hostname=getfqdn(),
             uptime=iredutils.getServerUptime(),
             loadavg=os.getloadavg(),