- Rec = [(ldap.MOD_REPLACE,arguments[0],string.strip(Split[1]))];
- Dn = "uid=" + Split[0] + "," + BaseDn;
+ # Generate the command..
+ Rec = [(ldap.MOD_REPLACE,arguments[0],Set[0])];
+ for x in Set[1:]:
+ Rec.append((ldap.MOD_ADD,arguments[0],x))
+
+ Dn = "uid=" + User + "," + BaseDn;