X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-arbimport;h=5b64ed83c063d10dc21f81a274b3b2e84c37ea66;hp=cf57cbc0c0c3eddb0718088facda3cf62826bff6;hb=ee3eb0677056b25df70d8fe93a74cb2e6c0e38f5;hpb=1ce0a5aba586b442d937fe33289c35b002e0dc28 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]))];