summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index b716966c1b..c81f2474ae 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -557,7 +557,7 @@ BOOL ads_server_info(ADS_STRUCT *ads)
int rc;
void *res;
char **values;
- char *ret, *p;
+ char *p;
rc = ads_do_search(ads, "", LDAP_SCOPE_BASE, "(objectclass=*)", attrs, &res);
if (rc || ads_count_replies(ads, res) != 1) return False;
@@ -594,7 +594,8 @@ BOOL ads_server_info(ADS_STRUCT *ads)
ads->bind_path = ads_build_dn(ads->realm);
}
- DEBUG(3,("got ldap server name %s@%s\n", ret, ads->realm));
+ DEBUG(3,("got ldap server name %s@%s\n",
+ ads->ldap_server_name, ads->realm));
return True;
}