X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-arbimport;h=5b64ed83c063d10dc21f81a274b3b2e84c37ea66;hb=7551db8f6bec556aa7d0246e29b67c91788bb7d3;hp=cf57cbc0c0c3eddb0718088facda3cf62826bff6;hpb=c50d88536a4feb3087d1aa802e110250cb2861fc;p=mirror%2Fuserdir-ldap.git diff --git a/ud-arbimport b/ud-arbimport index cf57cbc..5b64ed8 100755 --- a/ud-arbimport +++ b/ud-arbimport @@ -29,13 +29,12 @@ l = ldap.open(LDAPServer); UserDn = "uid=" + AdminUser + "," + BaseDn; l.simple_bind_s(UserDn,Password); -# Read the override file into the unknown map. The override file is a list -# of colon delimited entires mapping PGP email addresess to local users List = open(arguments[1],"r"); while(1): Line = List.readline(); if Line == "": break; + Split = re.split("[:\n]",Line); Rec = [(ldap.MOD_REPLACE,arguments[0],string.strip(Split[1]))];