In addition I removed a "talloc_free(req)" since we never free elsewhere the
requests explicitly and do it only indirectly with freeing the "conn" object
when the testsuite terminates.
-static bool test_search_rootDSE(struct ldap_connection *conn, char **basedn)
+static bool test_search_rootDSE(struct ldap_connection *conn, const char **basedn)
{
bool ret = true;
struct ldap_message *msg, *result;
{
bool ret = true;
struct ldap_message *msg, *result;
const char *host = torture_setting_string(torture, "host", NULL);
const char *userdn = torture_setting_string(torture, "ldap_userdn", NULL);
const char *secret = torture_setting_string(torture, "ldap_secret", NULL);
const char *host = torture_setting_string(torture, "host", NULL);
const char *userdn = torture_setting_string(torture, "ldap_userdn", NULL);
const char *secret = torture_setting_string(torture, "ldap_secret", NULL);
- char *url;
- char *basedn;
+ const char *url;
+ const char *basedn;
mem_ctx = talloc_init("torture_ldap_basic");
mem_ctx = talloc_init("torture_ldap_basic");