diff --git a/ldap_servers/LdapServerAdmin.class.php b/ldap_servers/LdapServerAdmin.class.php
index 2b161d1..610b589 100644
--- a/ldap_servers/LdapServerAdmin.class.php
+++ b/ldap_servers/LdapServerAdmin.class.php
@@ -688,7 +688,7 @@ public function drupalFormSubmit($op, $values) {
           '#size' => 80,
           '#states' => array(
              'enabled' => array(   // action to take.
-               ':input[name=bind_method]' => array('value' => LDAP_SERVERS_BIND_METHOD_SERVICE_ACCT),
+               ':input[name=bind_method]' => array('value' => (string)LDAP_SERVERS_BIND_METHOD_SERVICE_ACCT),
               ),
             ),
         ),
@@ -706,7 +706,7 @@ public function drupalFormSubmit($op, $values) {
           '#size' => 20,
           '#states' => array(
              'enabled' => array(   // action to take.
-               ':input[name=bind_method]' => array('value' => LDAP_SERVERS_BIND_METHOD_SERVICE_ACCT),
+               ':input[name=bind_method]' => array('value' => (string)LDAP_SERVERS_BIND_METHOD_SERVICE_ACCT),
               ),
             ),
         ),
