--- a/misc/scripts/ldapuser2ldapfeed.py Fri Aug 31 16:58:08 2012 +0200
+++ b/misc/scripts/ldapuser2ldapfeed.py Fri Aug 31 12:52:45 2012 +0200
@@ -4,6 +4,7 @@
"""
import sys
from collections import defaultdict
+from logilab.common.shellutils import generate_password
try:
source_name, = __args__
@@ -57,7 +58,7 @@
if not entity.modification_date:
entity.cw_edited['modification_date'] = datetime.now()
if not entity.upassword:
- entity.cw_edited['upassword'] = u''
+ entity.cw_edited['upassword'] = generate_password()
extid = entity.cw_metainformation()['extid']
if not entity.cwuri:
entity.cw_edited['cwuri'] = '%s/?dn=%s' % (