diff --git a/include/class_msgPool.inc b/include/class_msgPool.inc
index 8d84b5f98e24725559daf7c94393eccf12737ea0..1a165134dc2a98362ea11fe6e21a838f377958e1 100644
--- a/include/class_msgPool.inc
+++ b/include/class_msgPool.inc
@@ -24,13 +24,6 @@
  * Source code for class msgPool
  */
 
-define('LDAP_READ',   1);
-define('LDAP_ADD',    2);
-define('LDAP_MOD',    3);
-define('LDAP_DEL',    4);
-define('LDAP_SEARCH', 5);
-define('LDAP_AUTH',   6);
-
 /*!
  * \brief This class contains all the messages for the various actions
  */
diff --git a/include/functions.inc b/include/functions.inc
index 72a3601c8dcbd472c1ef2a2c0974d52a307c3b5b..7d5a3daadf12f59d7c23768d2fbdeceb3b63f643 100644
--- a/include/functions.inc
+++ b/include/functions.inc
@@ -45,6 +45,14 @@ define('DEBUG_SI',       256); /*! Debug level for communication with Argonaut *
 define('DEBUG_MAIL',     512); /*! Debug level for all about mail (mailAccounts, imap, sieve etc.) */
 define('DEBUG_FAI',      1024); /* FAI (incomplete) */
 
+/* Define constants for LDAP operations */
+define('LDAP_READ',   1);
+define('LDAP_ADD',    2);
+define('LDAP_MOD',    3);
+define('LDAP_DEL',    4);
+define('LDAP_SEARCH', 5);
+define('LDAP_AUTH',   6);
+
 /* Rewrite german 'umlauts' and spanish 'accents'
    to get better results */
 $REWRITE = [ "ä" => "ae",