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-userimport
diff --git
a/ud-userimport
b/ud-userimport
index
cbb6bac
..
3359782
100755
(executable)
--- a/
ud-userimport
+++ b/
ud-userimport
@@
-220,13
+220,9
@@
for (switch, val) in options:
AdminUser = val
# Main program starts here
AdminUser = val
# Main program starts here
-print "Accessing LDAP directory as '" + AdminUser + "'";
-Password = getpass(AdminUser + "'s password: ");
# Connect to the ldap server
# Connect to the ldap server
-l = ldap.open(LDAPServer);
-UserDn = "uid=" + AdminUser + "," + BaseDn;
-l.simple_bind_s(UserDn,Password);
+l = passwdAccessLDAP(LDAPServer, BaseDn, User)
if (Passwd != ""):
DoPasswd(l,Passwd);
if (Passwd != ""):
DoPasswd(l,Passwd);