[Samba] edited tdb... restart samba?

Gerald (Jerry) Carter jerry at samba.org
Fri Feb 17 19:59:45 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joe wrote:

> 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).

First, you really need to upgrade from 3.0.4.  The
capability to delete drivers is one of them.  The amount
of bugs that have been fixed in the past 20 months is
really large.  Secondly, like I said, the driver name is
stored in the printer object.

> 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

That's because this is the security descriptor record and
not the printer object record.




cheers, jerry
=====================================================================
I live in a Reply-to-All world                -----------------------
Samba                                    ------- http://www.samba.org
Centeris                         -----------  http://www.centeris.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD9iswIR7qMdg1EfYRAvxRAKCtZDfxeeUUZXA+Q7HkF6EWdeEpWgCfQXPK
irf5FJnknKW/OyOqxKP0wY8=
=Rl8O
-----END PGP SIGNATURE-----


More information about the samba mailing list