git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8be2e28
)
s3:libads: make use of ads_connect_anon() in ldap.c where possible
author
Stefan Metzmacher
<metze@samba.org>
Thu, 28 Apr 2022 16:43:00 +0000
(18:43 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 8 May 2024 08:17:05 +0000
(10:17 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/libads/ldap.c
patch
|
blob
|
history
diff --git
a/source3/libads/ldap.c
b/source3/libads/ldap.c
index 5c0594de9c289771d393f1183d55d275821ea2d6..07736c3b2afb86b1d77e03c7ef0649c3407e7b55 100644
(file)
--- a/
source3/libads/ldap.c
+++ b/
source3/libads/ldap.c
@@
-3704,8
+3704,7
@@
ADS_STATUS ads_current_time(ADS_STRUCT *ads)
*/
ads_s->config.flags = 0;
- ads_s->auth.flags = ADS_AUTH_ANON_BIND;
- status = ads_connect( ads_s );
+ status = ads_connect_anon(ads_s);
if ( !ADS_ERR_OK(status))
goto done;
}
@@
-3794,8
+3793,7
@@
ADS_STATUS ads_domain_func_level(ADS_STRUCT *ads, uint32_t *val)
*/
ads_s->config.flags = 0;
- ads_s->auth.flags = ADS_AUTH_ANON_BIND;
- status = ads_connect( ads_s );
+ status = ads_connect_anon(ads_s);
if ( !ADS_ERR_OK(status))
goto done;
}