In this blog post, you’ll learn more about the Sybase Error Prevented removal of LDAP server because it is referenced by login policy \”%1\” which is the only login policy with an LDAP server and the value of login_mode is \”LDAPUA\”. and the reason for receiving this error
Sybase SQL Error Message
Prevented removal of LDAP server because it is referenced by login policy \”%1\” which is the only login policy with an LDAP server and the value of login_mode is \”LDAPUA\”.
Reason for this Error
The setting for server-wide login_mode option is LDAPUA so to avoid locking out users from connecting, prevent the only login policy supporting LDAPUA reference removal. Change login_mode before proceeding to DROP LDAP SERVER <server name> WITH DROP ALL REFERENCES.