From 94fb514376e7cb1c3ba4f89e10289350052d1294 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 3 Aug 2004 05:47:24 +0000 Subject: r1630: - fixed the replacement timegm() function to work correctly for DST changes - got rid of global_myname(), using lp_netbios_name() instead (This used to be commit e8d4b390884e487163d81f66a5a7ac1de1305d9a) --- source4/libads/ldap.c | 2 +- source4/libads/sasl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/libads') diff --git a/source4/libads/ldap.c b/source4/libads/ldap.c index 2954c286ab..f038b23d23 100644 --- a/source4/libads/ldap.c +++ b/source4/libads/ldap.c @@ -228,7 +228,7 @@ got_connection: if (!ads->auth.user_name) { /* by default use the machine account */ fstring myname; - fstrcpy(myname, global_myname()); + fstrcpy(myname, lp_netbios_name()); strlower_m(myname); asprintf(&ads->auth.user_name, "HOST/%s", myname); } diff --git a/source4/libads/sasl.c b/source4/libads/sasl.c index ce787400f7..b79f54c86d 100644 --- a/source4/libads/sasl.c +++ b/source4/libads/sasl.c @@ -96,7 +96,7 @@ static ADS_STATUS ads_sasl_spnego_ntlmssp_bind(ADS_STRUCT *ads) nthash, 24, lp_workgroup(), ads->auth.user_name, - global_myname(), + lp_netbios_name(), sess_key, 16, neg_flags); -- cgit