X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-arbimport;h=7d306f7afb3053594ad24e63272ac027d76fe078;hb=198bda079d03f7251b50f95e6a28c1fb046e616a;hp=ab3af80e27c80d074560665b14817abf6f48ff88;hpb=d8db058585fa257e2c725f159d399e2613adfb4a;p=mirror%2Fuserdir-ldap.git diff --git a/ud-arbimport b/ud-arbimport index ab3af80..7d306f7 100755 --- a/ud-arbimport +++ b/ud-arbimport @@ -22,7 +22,7 @@ # the form of: # uid: -import string, re, time, ldap, getopt, sys; +import re, time, ldap, getopt, sys; from userdir_ldap import *; # Process options @@ -36,7 +36,7 @@ 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) @@ -52,7 +52,7 @@ while(1): if User == None: User = Split[0]; if Split[0] == User: - Set.append(string.strip(Split[1])); + Set.append(Split[1].strip()); continue; else: if len(Set) == 0: @@ -74,4 +74,4 @@ while(1): if Line == "": break; User = Split[0]; - Set = [string.strip(Split[1])]; + Set = [Split[1].strip()];