projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use the common routine from userdir_ldap.py which asks for the
[mirror/userdir-ldap.git]
/
ud-arbimport
diff --git
a/ud-arbimport
b/ud-arbimport
index
02430fb
..
0574f79
100755
(executable)
--- a/
ud-arbimport
+++ b/
ud-arbimport
@@
-21,13
+21,7
@@
if len(arguments) == 0:
os.exit(0);
# Main program starts here
os.exit(0);
# Main program starts here
-print "Accessing LDAP directory as '" + AdminUser + "'";
-Password = getpass(AdminUser + "'s password: ");
-
-# Connect to the ldap server
-l = ldap.open(LDAPServer);
-UserDn = "uid=" + AdminUser + "," + BaseDn;
-#l.simple_bind_s(UserDn,Password);
+l = passwdAccessLDAP(LDAPServer, BaseDn, AdminUser)
List = open(arguments[1],"r");
Set = [];
List = open(arguments[1],"r");
Set = [];