--- /usr/share/univention-s4-connector/univention-s4-position-sync.orig 2012-05-25 11:19:01.000000000 +0200 +++ /usr/share/univention-s4-connector/univention-s4-position-sync 2012-05-30 08:59:21.000000000 +0200 @@ -100,9 +100,12 @@ ucr = config_registry.ConfigRegistry() ucr.load() - s4_ldap_bindpw=open(ucr['%s/s4/ldap/bindpw' % CONFIGBASENAME]).read() - if s4_ldap_bindpw[-1] == '\n': - s4_ldap_bindpw=s4_ldap_bindpw[0:-1] + s4_ldap_bindpw=None + bindpw_file=ucr['%s/s4/ldap/bindpw' % CONFIGBASENAME] + if bindpw_file: + s4_ldap_bindpw=open(bindpw_file).read() + if s4_ldap_bindpw[-1] == '\n': + s4_ldap_bindpw=s4_ldap_bindpw[0:-1] univention.s4connector.s4.s4.__init__(self, CONFIGBASENAME,