projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DNS Stuff
[mirror/userdir-ldap.git]
/
ud-arbimport
diff --git
a/ud-arbimport
b/ud-arbimport
index
cf57cbc
..
5b64ed8
100755
(executable)
--- a/
ud-arbimport
+++ b/
ud-arbimport
@@
-29,13
+29,12
@@
l = ldap.open(LDAPServer);
UserDn = "uid=" + AdminUser + "," + BaseDn;
l.simple_bind_s(UserDn,Password);
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;
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]))];
Split = re.split("[:\n]",Line);
Rec = [(ldap.MOD_REPLACE,arguments[0],string.strip(Split[1]))];