Commits

Zhang Huangbin  committed c5ff611

Mark all admins are global admin.

  • Participants
  • Parent commits 52988e4

Comments (0)

Files changed (1)

File libs/ldaplib/admin.py

         self.cn = data.get('cn')
         self.mail = web.safestr(data.get('username')) + '@' + web.safestr(data.get('domain'))
 
-        self.domainGlobalAdmin = data.get('domainGlobalAdmin', 'no')
+        self.domainGlobalAdmin = data.get('domainGlobalAdmin', 'yes')
         if self.domainGlobalAdmin not in ['yes', 'no',]:
-            self.domainGlobalAdmin = 'no'
+            self.domainGlobalAdmin = 'yes'
 
         # Check password.
         self.newpw = web.safestr(data.get('newpw'))