added openldap support