The "wins hook" parameter doesn't seem to work with Samba 3.0.0. When I set
"wins hook = /usr/local/bin/test_prg", the test_prg script (a bash script) is
not called when a new system comes online. This DOES work with Samba 2.2.8a.
What happens at debug level 10? I just set up a shell script at debug level 10
and get the following output:
find_name_on_subnet: on subnet WINS_SERVER_SUBNET - found name ERIS<20> source=1
is_myname("ERIS") returns 1
calling wins hook for ERIS<20>
sh: -c: line 1: syntax error near unexpected token `20'
sh: -c: line 1: `/home/tpot/work/systems/eris/winshook.sh refresh ERIS<20> 20
259200 192.168.1.130 172.16.118.1'
We should be escaping the < and > characters before calling system(). I wonder
how this worked under 2.2.8?
OK I've run up a samba 2.2.28 system and the bug is that the name should
definitely not include the nametype in angle brackets as it appears as the next
This will be in 3.0.1.
Created attachment 169 [details]
Fix wins hook operation in 3.0.0
I've committed a fix to CVS and will be available in Samba 3.0.1. In the
meantime you might like to apply the patch above.
Marking as fixed.
*** Bug 766 has been marked as a duplicate of this bug. ***
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.