forked from saratov/diag-domain-client
Fixed ldapsearch timeout limit
This commit is contained in:
parent
04c969ec83
commit
6adac17304
@ -522,7 +522,7 @@ _ldap_get_computer()
|
|||||||
filter="$3"
|
filter="$3"
|
||||||
fi
|
fi
|
||||||
domain_dn=$(echo $DOMAIN_DOMAIN | sed 's/\./,dc=/g' | sed 's/^/dc=/')
|
domain_dn=$(echo $DOMAIN_DOMAIN | sed 's/\./,dc=/g' | sed 's/^/dc=/')
|
||||||
local searchcmd="ldapsearch -Y GSSAPI -N -h $dc -b $domain_dn"
|
local searchcmd="ldapsearch -o nettimeout=30 -Y GSSAPI -N -h $dc -b $domain_dn"
|
||||||
searchcmd="$searchcmd \"(&(ObjectClass=computer)(objectCategory=Computer)(name=$computer))\""
|
searchcmd="$searchcmd \"(&(ObjectClass=computer)(objectCategory=Computer)(name=$computer))\""
|
||||||
__command_msg "$searchcmd $filter"
|
__command_msg "$searchcmd $filter"
|
||||||
_command -q "$searchcmd" "$filter" || retval=2
|
_command -q "$searchcmd" "$filter" || retval=2
|
||||||
|
Loading…
Reference in New Issue
Block a user