ud-generate: deal with users without loginShell
[mirror/userdir-ldap.git] / ud-arbimport
index 7d306f7..bfc65e6 100755 (executable)
@@ -39,7 +39,7 @@ if len(arguments) == 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());