mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
winbindd: Use is_domain_offline() where appropriate
That if-condition is precisely covered by the helper routine Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
ea4b40e65a
commit
73b183e138
@ -1123,7 +1123,7 @@ do_query:
|
|||||||
|
|
||||||
/* If its not in cache and we are offline, then fail */
|
/* If its not in cache and we are offline, then fail */
|
||||||
|
|
||||||
if ( get_global_winbindd_state_offline() || !domain->online ) {
|
if (is_domain_offline(domain)) {
|
||||||
DEBUG(8,("resolve_username_to_alias: rejecting query "
|
DEBUG(8,("resolve_username_to_alias: rejecting query "
|
||||||
"in offline mode\n"));
|
"in offline mode\n"));
|
||||||
return NT_STATUS_NOT_FOUND;
|
return NT_STATUS_NOT_FOUND;
|
||||||
@ -1203,7 +1203,7 @@ do_query:
|
|||||||
|
|
||||||
/* If its not in cache and we are offline, then fail */
|
/* If its not in cache and we are offline, then fail */
|
||||||
|
|
||||||
if ( get_global_winbindd_state_offline() || !domain->online ) {
|
if (is_domain_offline(domain)) {
|
||||||
DEBUG(8,("resolve_alias_to_username: rejecting query "
|
DEBUG(8,("resolve_alias_to_username: rejecting query "
|
||||||
"in offline mode\n"));
|
"in offline mode\n"));
|
||||||
return NT_STATUS_NOT_FOUND;
|
return NT_STATUS_NOT_FOUND;
|
||||||
|
Loading…
Reference in New Issue
Block a user