user = User(raw_user, raw_atts)
if ARGS.dump_ldap:
dump_data(raw_atts)
+ print("dn = '%s'" % (raw_user))
if ARGS.create_users:
res = create_evergreen_user(auth, user)
if res:
results = ldap_query(con, AUTHTOKEN)
except ldap.LDAPError, exc:
- print >> sys.stderr, "Could not connect: " + exc.message['info']
+ print >> sys.stderr, "Could not connect: "
+ print >> sys.stderr, exc.message
if type(exc.message) == dict and exc.message.has_key('desc'):
print >> sys.stderr, exc.message['desc']
else: