+
+
+/*
+ * This function is a replacement for all calls to ldap_init() in this file.
+ * It fills in the required fields with those from the server's global config.
+ */
+LDAP *ctdl_ldap_init(void) {
+ return ldap_init(config.c_ldap_host, config.c_ldap_port);
+}
+
+
+
+/*
+ * Look up a username in the LDAP directory to see if it's valid for logging in.
+ */