NoAct = 1;
if len(arguments) == 0:
print "Give the key to assignt to then the file to import";
- os.exit(0);
+ sys.exit(0)
# Main program starts here
-l = passwdAccessLDAP(LDAPServer, BaseDn, AdminUser)
+l = passwdAccessLDAP(BaseDn, AdminUser)
List = open(arguments[1],"r");
Set = [];
if Line != "":
# Glob similar lines
Split = re.split("[:\n]",Line);
- if User == None:
+ if User is None:
User = Split[0];
if Split[0] == User:
Set.append(Split[1].strip());