Gerald (Jerry) Carter wrote:

My system is leading me to believe otherwise however
I am on 3.0.4.

You'll have to be more clear.  If you used tdbtool to
remove an entry you bypass any constency checking that
smbd would do for printers and drivers.  So you could
say delete a driver record but the driver name is still
stored in the printer record.

The tdb files trhemselves are mmap()'d so there is no
caching of driver objects in memory.  There was some
caching of printer objects up to 3.0.20 or so.

For whatever reason, at least on 3.0.4 you cannot remove
a printer _driver_ once added via windows.  I removed the
driver files manually and then used tdbtool to remove
reference to the drivers.  The printer is still defined
in ntprinters.tdb.  I expect windows to not be able to
recognize the printer and prompt me to find the drivers.
Instead windows explicitly says the drivers for printer
"HP 4050tn PCL 6" cannot be found. Even when you point
windows to the correct driver it would respond with "cannot
locate suitable driver".  That description was found in
ntdrivers.tdb not ntprinters.tdb.  Once I removed it from
ntdrivers.tdb the same problem resulted.  To fix it I was
forced to install the driver (not the printer) into samba
(via windows).

Here is the ntprinters.tdb record after I removed the driver
reference in ntdrivers.tdb.  I do not see the driver name
stored as you say it is.

key 12 bytes
SECDESC/p37
data 160 bytes
[000] 94 00 00 00 01 00 00 00  94 00 00 00 01 00 04 80  ....... ........
[010] 78 00 00 00 00 00 00 00  00 00 00 00 14 00 00 00  x...... .......
[020] 02 00 64 00 03 00 00 00  00 02 14 00 00 00 00 E0  ..d.... ........
[030] 01 01 00 00 00 00 00 01  00 00 00 00 00 09 24 00  ........ ......$
[040] 00 00 00 10 01 05 00 00  00 00 00 05 15 00 00 00  ....... .......
[050] D4 A1 11 E3 58 D3 6B 19  2B 2A A2 31 F4 01 00 00  ....X.k. +*.1...
[060] 00 02 24 00 00 00 00 10  01 05 00 00 00 00 00 05  ..$..... ........
[070] 15 00 00 00 D4 A1 11 E3  58 D3 6B 19 2B 2A A2 31  ........ X.k.+*.1
[080] F4 01 00 00 01 05 00 00  00 00 00 05 15 00 00 00  ....... .......
[090] D4 A1 11 E3 58 D3 6B 19  2B 2A A2 31 F4 01 00 00  ....X.k. +*.1...
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Reply via email to