Commits

sqbell  committed 4fb4fee

Removed debug statements, redundant sambaSid generation.

  • Participants
  • Parent commits 3e60f58

Comments (0)

Files changed (1)

File libs/ldaplib/user.py

 
             connutils = connUtils.Utils()
             connutils.updateAttrSingleValue(self.domainDN, 'domainCurrentUserNumber', len(self.users))
-            import pdb; pdb.set_trace()
 
             return (True, self.users)
         except ldap.NO_SUCH_OBJECT:
             if connutils.uidNumberExists(domain=self.domain, uidNumber=self.uidNumber,):
                 return (False, 'UID_ALREADY_EXISTS')
 
-            self.sambaSid = cfg.samba.sid + '-' + str(self.uidNumber*2+1000)
-
         if not iredutils.isDomain(self.domain) or not iredutils.isEmail(self.mail):
             return (False, 'MISSING_DOMAIN_OR_USERNAME')