ud-generate: deal with users without loginShell
[mirror/userdir-ldap.git] / ud-arbimport
index 5d5a37d..bfc65e6 100755 (executable)
@@ -36,10 +36,10 @@ for (switch, val) in options:
        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 = [];
@@ -49,7 +49,7 @@ while(1):
    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());